diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-09 19:29:24 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-09 19:30:33 -0400 |
commit | 47b0c6e7d657409964c4b0186bb95ebe927b541f (patch) | |
tree | 633cc6a5f31e61fe829809565c5dafbf4d309ce9 /src | |
parent | 801999fe6ba5391b098a20047d7f2644c57bcf4c (diff) | |
download | cryptography-47b0c6e7d657409964c4b0186bb95ebe927b541f.tar.gz cryptography-47b0c6e7d657409964c4b0186bb95ebe927b541f.tar.bz2 cryptography-47b0c6e7d657409964c4b0186bb95ebe927b541f.zip |
remove RAND_pseudo_bytes + make EGD conditional for 1.1.0
Diffstat (limited to 'src')
-rw-r--r-- | src/_cffi_src/openssl/rand.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/rand.py b/src/_cffi_src/openssl/rand.py index 91e1a396..0a94d705 100644 --- a/src/_cffi_src/openssl/rand.py +++ b/src/_cffi_src/openssl/rand.py @@ -22,7 +22,6 @@ int RAND_load_file(const char *, long); int RAND_write_file(const char *); void RAND_cleanup(void); int RAND_bytes(unsigned char *, int); -int RAND_pseudo_bytes(unsigned char *, int); """ MACROS = """ @@ -32,7 +31,7 @@ int RAND_query_egd_bytes(const char *, unsigned char *, int); """ CUSTOMIZATIONS = """ -#if defined(LIBRESSL_VERSION_NUMBER) +#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER >= 0x10100000L static const long Cryptography_HAS_EGD = 0; int (*RAND_egd)(const char *) = NULL; int (*RAND_egd_bytes)(const char *, int) = NULL; |