diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-09-27 21:14:27 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-09-27 21:14:27 +0200 |
commit | 9f1d112d1282216f16b2f673c8213d2839e39b7a (patch) | |
tree | 890d036d75ae0d38ebff39a4be000959e71409ec /gnu/packages/patches/python-acme-dont-use-openssl-rand.patch | |
parent | 859620e51db0b7ffb666cd47146eca4fd4d6ba63 (diff) | |
parent | cb1e0cfc2f32e6811da588231497d896491ceabb (diff) | |
download | guix-9f1d112d1282216f16b2f673c8213d2839e39b7a.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/patches/python-acme-dont-use-openssl-rand.patch')
-rw-r--r-- | gnu/packages/patches/python-acme-dont-use-openssl-rand.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gnu/packages/patches/python-acme-dont-use-openssl-rand.patch b/gnu/packages/patches/python-acme-dont-use-openssl-rand.patch deleted file mode 100644 index 78920629c0..0000000000 --- a/gnu/packages/patches/python-acme-dont-use-openssl-rand.patch +++ /dev/null @@ -1,28 +0,0 @@ -Fix build with PyOpenSSL > 17.2.0. - -See <https://github.com/certbot/certbot/issues/5111>. - -Patch copied from upstream source repository: -https://github.com/certbot/certbot/commit/f6be07da74c664b57ac8c053585f919c79f9af44 - -diff --git a/acme/crypto_util.py b/acme/crypto_util.py -index de15284c03..b8fba03488 100644 ---- a/acme/crypto_util.py -+++ b/acme/crypto_util.py -@@ -2,6 +2,7 @@ - import binascii - import contextlib - import logging -+import os - import re - import socket - import sys -@@ -243,7 +244,7 @@ def gen_ss_cert(key, domains, not_before=None, - """ - assert domains, "Must provide one or more hostnames for the cert." - cert = OpenSSL.crypto.X509() -- cert.set_serial_number(int(binascii.hexlify(OpenSSL.rand.bytes(16)), 16)) -+ cert.set_serial_number(int(binascii.hexlify(os.urandom(16)), 16)) - cert.set_version(2) - - extensions = [ |