From: Dr. Matthias St. Pierre Date: Tue, 15 Dec 2020 18:41:58 +0000 (+0100) Subject: Configure/Makefile: fix the `-macopt` argument of the fipsinstall command X-Git-Tag: openssl-3.0.0-alpha16~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59cf2869199b695cace97869c578d40fafff24c6;p=thirdparty%2Fopenssl.git Configure/Makefile: fix the `-macopt` argument of the fipsinstall command The FIPS hmac key is provided as a hexadezimal string, which needs to be be prefixed with `hexkey:`, not `key:`. Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13684) --- diff --git a/Configurations/descrip.mms.tmpl b/Configurations/descrip.mms.tmpl index 065854d2eaa..920c0abfeb8 100644 --- a/Configurations/descrip.mms.tmpl +++ b/Configurations/descrip.mms.tmpl @@ -544,7 +544,7 @@ install_fips: install_sw openssl fipsinstall - -module ossl_installroot:[MODULES{- $sover_dirname.$target{pointer_size} -}.'arch']$(FIPSMODULENAME) - -out ossl_installroot:[MODULES{- $sover_dirname.$target{pointer_size} -}.'arch']$(FIPSMODULENAME).cnf - - -macopt "key:$(FIPSKEY)" + -macopt "hexkey:$(FIPSKEY)" uninstall_fips: uninstall_sw @ WRITE SYS$OUTPUT "*** Uninstalling FIPS module configuration" diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index e2df304061f..e7287b6290d 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -590,7 +590,7 @@ install_fips: install_sw @$(ECHO) "fipsinstall $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf" @openssl fipsinstall -module $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME) \ -out $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf \ - -macopt 'key:$(FIPSKEY)' + -macopt 'hexkey:$(FIPSKEY)' uninstall_fips: uninstall_sw @$(ECHO) "*** Uninstalling FIPS module configuration" diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl index 2cd003cf89a..24db68fa06f 100644 --- a/Configurations/windows-makefile.tmpl +++ b/Configurations/windows-makefile.tmpl @@ -475,7 +475,7 @@ install_fips: install_sw @$(ECHO) "fipsinstall $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf" @openssl fipsinstall -module $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME) \ -out $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf \ - -macopt "key:$(FIPSKEY)" + -macopt "hexkey:$(FIPSKEY)" uninstall_fips: uninstall_sw @$(ECHO) "*** Uninstalling FIPS module configuration"