From 81be38bf3b45cf8d26d4ee340c67e519a40ce3696c25f2f1cc0a8acfd175a23e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 14 Apr 2014 14:02:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/security/hmaccalc?expand=0&rev=4 --- hmaccalc-susekey.patch | 16 ++++++++++++++++ hmaccalc.spec | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 hmaccalc-susekey.patch diff --git a/hmaccalc-susekey.patch b/hmaccalc-susekey.patch new file mode 100644 index 0000000..12fff74 --- /dev/null +++ b/hmaccalc-susekey.patch @@ -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; diff --git a/hmaccalc.spec b/hmaccalc.spec index bfcbf41..1caf6a0 100644 --- a/hmaccalc.spec +++ b/hmaccalc.spec @@ -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}