Blame SOURCES/0011-Fix-conversions-of-bit-lengths-to-byte-lengths.patch

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