summaryrefslogtreecommitdiff
path: root/net-wireless/crda/files/crda-3.18-openssl.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2016-11-01 22:02:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2016-11-02 05:37:28 -0500
commitfc42e192508508b2c49434fd700f833c15eabbb0 (patch)
treea57e0bf02df139d194588414c8042f01fe88fa1b /net-wireless/crda/files/crda-3.18-openssl.patch
parentea0c23ff8553b9da77fae8ee3c84459a926c40d7 (diff)
downloadpackages-fc42e192508508b2c49434fd700f833c15eabbb0.tar.gz
packages-fc42e192508508b2c49434fd700f833c15eabbb0.tar.bz2
packages-fc42e192508508b2c49434fd700f833c15eabbb0.tar.xz
packages-fc42e192508508b2c49434fd700f833c15eabbb0.zip
net-wireless/crda: Py3, and keyword pycrypto dep
Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com> Signed-off-by: Elizabeth Myers <elizabeth@interlinked.me> Signed-off-by: Horst Burkhardt <horst@adelielinux.org>
Diffstat (limited to 'net-wireless/crda/files/crda-3.18-openssl.patch')
-rw-r--r--net-wireless/crda/files/crda-3.18-openssl.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/net-wireless/crda/files/crda-3.18-openssl.patch b/net-wireless/crda/files/crda-3.18-openssl.patch
new file mode 100644
index 000000000..9147e862e
--- /dev/null
+++ b/net-wireless/crda/files/crda-3.18-openssl.patch
@@ -0,0 +1,44 @@
+From af009b7599d705a1023d7bc95c485e5a8776d2b8 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@chromium.org>
+Date: Wed, 4 Mar 2015 14:07:37 -0500
+Subject: [PATCH] fix openssl generation
+
+This file uses BN_ULONG but doesn't include the openssl headers leading
+to build failures:
+keys-ssl.c:2:8: error: unknown type name 'BN_ULONG'
+ static BN_ULONG e_0[1] = {
+
+The large unqualified constants also break building:
+keys-ssl.c:8:2: warning: overflow in implicit constant conversion [-Woverflow]
+ 0x63a2705416a0d8e1, 0xdc9fca11c8ba757b,
+ ^
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ utils/key2pub.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/utils/key2pub.py b/utils/key2pub.py
+index 3e84cd2..c504aca 100755
+--- a/utils/key2pub.py
++++ b/utils/key2pub.py
+@@ -24,7 +24,7 @@ def print_ssl_64(output, name, val):
+ for v1, v2, v3, v4, v5, v6, v7, v8 in vnew:
+ if not idx:
+ output.write('\t')
+- output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2x, ' % (ord(v1), ord(v2), ord(v3), ord(v4), ord(v5), ord(v6), ord(v7), ord(v8)))
++ output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2xULL, ' % (ord(v1), ord(v2), ord(v3), ord(v4), ord(v5), ord(v6), ord(v7), ord(v8)))
+ idx += 1
+ if idx == 2:
+ idx = 0
+@@ -60,6 +60,7 @@ def print_ssl_32(output, name, val):
+ def print_ssl(output, name, val):
+ import struct
+ output.write('#include <stdint.h>\n')
++ output.write('#include <openssl/bn.h>\n')
+ if len(struct.pack('@L', 0)) == 8:
+ return print_ssl_64(output, name, val)
+ else:
+--
+2.3.1
+