openssl/fips/openssl_fips_fingerprint
2003-09-07 11:13:54 +00:00

14 lines
402 B
Bash
Executable file

#!/bin/sh
#
# Check the library fingerprint and generate an executable fingerprint, or
# return an error
lib=$1
exe=$2
elib=`echo $lib| sed 's/\//\\\\\//g'`
echo "Checking library fingerprint for $lib"
openssl sha1 $lib | sed "s/$elib/libcrypto.a/" | diff -u ${lib%.a}.sha1 - || { echo "$libs fingerprint mismatch"; exit 1; }
echo "Making fingerprint for $exe"
openssl sha1 -binary $exe > $exe.sha1