#!/bin/sh

# keyid.ck

q=`diff -q keyid.out keyid.save 2>/dev/null |grep -c differ`
result=`diff -I "PEM routines:PEM_read_bio:no start line" keyid.out keyid.save 2>/dev/null |wc -l`

if [ "$q" = "1" -a "$result" = "6" ]; then
    return 0
else
    return 1
fi


# ignore
#
#< 615eb760e357ac4bd010dd4cab41c6734c07280f
#< 10947:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:650:Expecting: CERTIFICATE
#---
#> cb53efdb302f06bcbcd6166d28b10f7bad994a74
#> 10868:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:650:Expecting: CERTIFICATE
#5c5
#< 10948:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:650:Expecting: CERTIFICATE
#---
#> 10869:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:650:Expecting: CERTIFICATE
#
#

