aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/rand.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-07-08 20:47:34 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2017-07-08 21:47:34 -0400
commitae487bb5c70516505653a7884b5be5de26c5d96e (patch)
tree2a4bc16445778ecddd660252283c077f5dad7f74 /src/_cffi_src/openssl/rand.py
parentb4d6370cf704aa21c4ef962beb0dfc95dfb5bc80 (diff)
downloadcryptography-ae487bb5c70516505653a7884b5be5de26c5d96e.tar.gz
cryptography-ae487bb5c70516505653a7884b5be5de26c5d96e.tar.bz2
cryptography-ae487bb5c70516505653a7884b5be5de26c5d96e.zip
remove egd (#3771)
* remove egd * oops * keep Cryptography_HAS_EGD for compat just in case This shouldn't really be necessary but maybe we can fully remove it in 2018 or 2019...
Diffstat (limited to 'src/_cffi_src/openssl/rand.py')
-rw-r--r--src/_cffi_src/openssl/rand.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/_cffi_src/openssl/rand.py b/src/_cffi_src/openssl/rand.py
index ed4c6c3c..089da8b3 100644
--- a/src/_cffi_src/openssl/rand.py
+++ b/src/_cffi_src/openssl/rand.py
@@ -28,19 +28,8 @@ void ERR_load_RAND_strings(void);
/* RAND_cleanup became a macro in 1.1.0 */
void RAND_cleanup(void);
-
-int RAND_egd(const char *);
-int RAND_egd_bytes(const char *, int);
-int RAND_query_egd_bytes(const char *, unsigned char *, int);
"""
CUSTOMIZATIONS = """
-#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_OPENSSL_110_OR_GREATER
static const long Cryptography_HAS_EGD = 0;
-int (*RAND_egd)(const char *) = NULL;
-int (*RAND_egd_bytes)(const char *, int) = NULL;
-int (*RAND_query_egd_bytes)(const char *, unsigned char *, int) = NULL;
-#else
-static const long Cryptography_HAS_EGD = 1;
-#endif
"""