forked from pool/pesign-obs-integration
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:
parent
b4df4cf6ef
commit
45f8223933
24
gen-hmac
24
gen-hmac
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user