openssl/fips/fips_check_sha1

9 lines
266 B
Text
Raw Normal View History

2004-05-11 12:46:24 +00:00
#!/bin/sh
FP=$1
shift
egrep 'define OPENSSL_FIPS' $TOP/include/openssl/opensslconf.h > /dev/null || exit 0
2004-12-10 16:30:34 +00:00
$TOP/fips/sha1/fips_standalone_sha1 $@ | diff -w $FP - || { echo; echo "*** Your source code does not match the FIPS validated source ***"; echo; exit 1; }