openssl/fips/fips_check_sha1

9 lines
234 B
Text
Raw Normal View History

#!/bin/sh
FP=$1
shift
egrep '^CFLAG=.*-DFIPS( |$)' $TOP/Makefile || exit 0
2003-09-06 10:41:27 +00:00
$TOP/fips/sha1/fips_standalone_sha1 $@ | diff -u $FP - || { echo; echo "*** Your source code does not match the FIPS certified source ***"; echo; exit 1; }