1
0

Accepting request 244346 from home:msmeissn:branches:Base:System

- switch gen-hmac to use fipscheck instead of sha256hmac

OBS-URL: https://build.opensuse.org/request/show/244346
OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign-obs-integration?expand=0&rev=33
This commit is contained in:
Gary Ching-Pang Lin 2014-08-13 09:59:54 +00:00 committed by Git OBS Bridge
parent b4df4cf6ef
commit 45f8223933
3 changed files with 20 additions and 10 deletions

View File

@ -17,15 +17,19 @@ if ($buildroot) {
}
my $fn = shift @ARGV;
my $out = `sha512hmac "$buildroot$fn"`;
if ($?) {
exit 1;
}
my @t = split(" ", $out);
my $hmac = $t[0];
(my $hmacfn = "$buildroot$fn") =~ s|([^/]*)$|.$1.hmac|;
open(my $fd, '>', $hmacfn) or die "$0: Cannot open $hmacfn: $!\n";
print $fd "$hmac $fn\n";
close($fd);
system("fipshmac $buildroot$fn");
#my $out = `sha512hmac "$buildroot$fn"`;
#if ($?) {
# exit 1;
#}
#my @t = split(" ", $out);
#my $hmac = $t[0];
#(my $hmacfn = "$buildroot$fn") =~ s|([^/]*)$|.$1.hmac|;
#open(my $fd, '>', $hmacfn) or die "$0: Cannot open $hmacfn: $!\n";
#print $fd "$hmac $fn\n";
#close($fd);
exit 0;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 12 13:38:14 UTC 2014 - meissner@suse.com
- switch gen-hmac to use fipscheck instead of sha256hmac
-------------------------------------------------------------------
Mon Aug 4 12:52:40 UTC 2014 - mmarek@suse.cz

View File

@ -24,6 +24,7 @@ License: GPL-2.0
Group: Development/Tools/Other
Version: 10.0
Release: 0.<RELEASE15>
Requires: fipscheck
Requires: mozilla-nss-tools
Requires: openssl
%ifarch %ix86 x86_64 ia64