Marcus Meissner 2014-04-14 14:02:23 +00:00 committed by Git OBS Bridge
parent c2f6fcb4b2
commit 81be38bf3b
2 changed files with 18 additions and 0 deletions

16
hmaccalc-susekey.patch Normal file
View File

@ -0,0 +1,16 @@
Index: src/hmac.c
===================================================================
--- src/hmac.c.orig
+++ src/hmac.c
@@ -555,9 +555,9 @@ main(int argc, char **argv)
"(sha512/sha384/sha256/sha1)\n";
#endif
- /* Default settings: SHA-512, key = "FIPS-FTW-RHT2009". */
+ /* Default settings: SHA-512, key = "FIPS-FTW-SUSE2014". */
configdir = DEFAULT_CONFIG_DIR;
- Kopt = default_key = "FIPS-FTW-RHT2009";
+ Kopt = default_key = "FIPS-FTW-SUSE2014";
kopt = NULL;
copt = NULL;
ret = 0;

View File

@ -37,6 +37,7 @@ Url: https://fedorahosted.org/hmaccalc/
Source0: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz
Source1: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz.sig
Source2: %name.keyring
Patch1: hmaccalc-susekey.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mozilla-nss-devel
@ -52,6 +53,7 @@ meant to mimic the sha*sum tools provided by the coreutils package.
%prep
%setup -q
%patch1 -p0
%build
%configure --enable-sum-directory=%{_libdir}/%{name}