This commit is contained in:
Dr. Stephen Henson 2009-10-05 13:32:56 +00:00
parent 381a9f04a0
commit 2e8026b65a

View file

@ -118,14 +118,11 @@ lib*|*.dll) # must be linking a shared lib...
# generate signature...
SIG=`"${THERE}/fips/fips_premain_dso" "${TARGET}"`
echo $TARGET: $SIG >>/tmp/fipsld.log
incore $TARGET >>/tmp/fipsld.log 2>&1
/bin/rm -f "${TARGET}"
if [ -z "${SIG}" ]; then
echo "unable to collect signature"; exit 1
fi
# recompile with signature...
${CC} ${CANISTER_O_CMD:+"${CANISTER_O_CMD}"} \
-DHMAC_SHA1_SIG=\"${SIG}\" "${PREMAIN_C}" \
@ -160,8 +157,6 @@ incore $TARGET >>/tmp/fipsld.log 2>&1
# generate signature...
SIG=`"${TARGET}"`
echo $TARGET: $SIG >>/tmp/fipsld.log
incore $TARGET >>/tmp/fipsld.log 2>&1
/bin/rm -f "${TARGET}"
if [ -z "${SIG}" ]; then
echo "unable to collect signature"; exit 1