Blame SOURCES/0011-Fix-conversions-of-bit-lengths-to-byte-lengths.patch
|
|
7a8c6d |
From 42586b51e34519f18fadef2ad3c9c9d77fde0409 Mon Sep 17 00:00:00 2001
|
|
|
7a8c6d |
From: Rob Crittenden <rcritten@redhat.com>
|
|
|
7a8c6d |
Date: Mon, 5 Mar 2018 15:54:10 -0400
|
|
|
7a8c6d |
Subject: [PATCH] Fix conversions of bit lengths to byte lengths
|
|
|
7a8c6d |
|
|
|
7a8c6d |
Fix a number of places where we weren't correctly converting from length
|
|
|
7a8c6d |
in bits to length in bytes, and one in the self-tests where the newest
|
|
|
7a8c6d |
version of NSS complains if the size of a signature was too large
|
|
|
7a8c6d |
because it was not converted at all.
|
|
|
7a8c6d |
|
|
|
7a8c6d |
Based on upstream change dd537bcc644dea163b4c8f3de08d73a60876449d
|
|
|
7a8c6d |
---
|
|
|
7a8c6d |
tests/tools/checksig.c | 2 ++
|
|
|
7a8c6d |
1 file changed, 2 insertions(+)
|
|
|
7a8c6d |
|
|
|
7a8c6d |
diff --git a/tests/tools/checksig.c b/tests/tools/checksig.c
|
|
|
7a8c6d |
index e690911..ab8bb11 100644
|
|
|
7a8c6d |
--- a/tests/tools/checksig.c
|
|
|
7a8c6d |
+++ b/tests/tools/checksig.c
|
|
|
7a8c6d |
@@ -18,6 +18,7 @@
|
|
|
7a8c6d |
#include "../../src/config.h"
|
|
|
7a8c6d |
|
|
|
7a8c6d |
#include <sys/types.h>
|
|
|
7a8c6d |
+#include <sys/param.h>
|
|
|
7a8c6d |
#include <sys/select.h>
|
|
|
7a8c6d |
#include <errno.h>
|
|
|
7a8c6d |
#include <limits.h>
|
|
|
7a8c6d |
@@ -101,6 +102,7 @@ main(int argc, char **argv)
|
|
|
7a8c6d |
printf("error finding public key\n");
|
|
|
7a8c6d |
return 1;
|
|
|
7a8c6d |
}
|
|
|
7a8c6d |
+ signed_data.signature.len = howmany(signed_data.signature.len, 8);
|
|
|
7a8c6d |
if (VFY_VerifyDataWithAlgorithmID(signed_data.data.data,
|
|
|
7a8c6d |
signed_data.data.len,
|
|
|
7a8c6d |
pubkey,
|
|
|
7a8c6d |
--
|
|
|
7a8c6d |
1.8.3.1
|
|
|
7a8c6d |
|