提交 64f5178d 编写于 作者: D Dr. Stephen Henson

Use FIPSLD_LIBCRYPTO for consistency with other env variables in fipsld.

Use current directory for fips_premain_dso
上级 e558c2aa
...@@ -94,7 +94,7 @@ lib*|*.dll) # must be linking a shared lib... ...@@ -94,7 +94,7 @@ lib*|*.dll) # must be linking a shared lib...
PREMAIN_DSO="${THERE}/fips/fips_premain_dso" PREMAIN_DSO="${THERE}/fips/fips_premain_dso"
elif [ -x "${THERE}/bin/fips_standalone_sha1" ]; then elif [ -x "${THERE}/bin/fips_standalone_sha1" ]; then
FINGERTYPE="${THERE}/bin/fips_standalone_sha1" FINGERTYPE="${THERE}/bin/fips_standalone_sha1"
PREMAIN_DSO="fips_premain_dso" PREMAIN_DSO="./fips_premain_dso"
fi fi
# verify fipspremain.c against its detached signature... # verify fipspremain.c against its detached signature...
...@@ -106,17 +106,17 @@ lib*|*.dll) # must be linking a shared lib... ...@@ -106,17 +106,17 @@ lib*|*.dll) # must be linking a shared lib...
diff -w "${CANISTER_O}.sha1" - || \ diff -w "${CANISTER_O}.sha1" - || \
{ echo "${CANISTER_O} fingerprint mismatch"; exit 1; } { echo "${CANISTER_O} fingerprint mismatch"; exit 1; }
[ -z "${FIPSLIBCRYPTO}" -a -f "${THERE}/libcrypto.a" ] && \ [ -z "${FIPSLD_LIBCRYPTO}" -a -f "${THERE}/libcrypto.a" ] && \
FIPSLIBCRYPTO = -f "${THERE}/libcrypto.a" FIPSLD_LIBCRYPTO = -f "${THERE}/libcrypto.a"
# Temporarily remove fipscanister.o from libcrypto.a! # Temporarily remove fipscanister.o from libcrypto.a!
# We are required to use the standalone copy... # We are required to use the standalone copy...
if [ -n "${FIPSLIBCRYPTO}" ]; then if [ -n "${FIPSLD_LIBCRYPTO}" ]; then
if ar d "${FIPSLIBCRYPTO}" fipscanister.o; then if ar d "${FIPSLD_LIBCRYPTO}" fipscanister.o; then
(ranlib "${FIPSLIBCRYPTO}") 2>/dev/null || : (ranlib "${FIPSLD_LIBCRYPTO}") 2>/dev/null || :
trap 'ar r "${FIPSLIBCRYPTO}" "${CANISTER_O}"; trap 'ar r "${FIPSLD_LIBCRYPTO}" "${CANISTER_O}";
(ranlib "${FIPSLIBCRYPTO}") 2>/dev/null || :; (ranlib "${FIPSLD_LIBCRYPTO}") 2>/dev/null || :;
sleep 1; sleep 1;
touch -c "${TARGET}"' 0 touch -c "${TARGET}"' 0
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册