From 60ace8f3fc4519f4e79d358a518e87dda8428353 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Wed, 3 Mar 2004 15:10:09 +0000 Subject: [PATCH] In FIPS mode ranlib before hashing. --- Makefile.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.org b/Makefile.org index 34bb3e97c3..19b5c243ba 100644 --- a/Makefile.org +++ b/Makefile.org @@ -227,6 +227,7 @@ all: Makefile.ssl sub_all openssl.pc sigs: $(SIGS) libcrypto.sha1: libcrypto.a if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ + $(RANLIB) libcrypto.a; \ fips/sha1/fips_standalone_sha1 libcrypto.a > libcrypto.sha1; \ fi @@ -814,7 +815,9 @@ install: all install_docs if [ -f "$$i" ]; then \ ( echo installing $$i; \ cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ - $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ + if ! egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ + $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ + fi \ chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \ mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \ fi; \ -- 2.25.1