summaryrefslogtreecommitdiffstats
path: root/fips/fips_check_sha1
blob: bc3f24a32425a88164bf04bb07299cedbcca945d (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

FP=$1
shift

egrep 'define OPENSSL_FIPS' $TOP/include/openssl/opensslconf.h > /dev/null || exit 0

$TOP/fips/sha1/fips_standalone_sha1 $@ | diff $FP - || { echo; echo "*** Your source code does not match the FIPS validated source ***"; echo; exit 1; }