diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-06-30 20:46:51 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-06-30 20:46:51 -0500 |
commit | 0a4c9ccf944cad5767a45f542ff170177b9b76dd (patch) | |
tree | 05841433bd2970d38dc0a69e06a495ddcc38d476 /src/_cffi_src/openssl/osrandom_engine.py | |
parent | 902e55cbcb5d379cbddd3e55e8eece5ac5d46ad4 (diff) | |
parent | b18fc3912682d39ba5a4addfab963e50736e689c (diff) | |
download | cryptography-0a4c9ccf944cad5767a45f542ff170177b9b76dd.tar.gz cryptography-0a4c9ccf944cad5767a45f542ff170177b9b76dd.tar.bz2 cryptography-0a4c9ccf944cad5767a45f542ff170177b9b76dd.zip |
Merge pull request #2073 from glyph/no-c-random
Replace C implementation of OS Random engine with Python one that just calls os.urandom
Diffstat (limited to 'src/_cffi_src/openssl/osrandom_engine.py')
-rw-r--r-- | src/_cffi_src/openssl/osrandom_engine.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/_cffi_src/openssl/osrandom_engine.py b/src/_cffi_src/openssl/osrandom_engine.py deleted file mode 100644 index a8479b07..00000000 --- a/src/_cffi_src/openssl/osrandom_engine.py +++ /dev/null @@ -1,31 +0,0 @@ -# This file is dual licensed under the terms of the Apache License, Version -# 2.0, and the BSD License. See the LICENSE file in the root of this repository -# for complete details. - -from __future__ import absolute_import, division, print_function - -import os - -with open(os.path.join( - os.path.dirname(__file__), "src/osrandom_engine.h" -)) as f: - INCLUDES = f.read() - -TYPES = """ -static const char *const Cryptography_osrandom_engine_name; -static const char *const Cryptography_osrandom_engine_id; -""" - -FUNCTIONS = """ -int Cryptography_add_osrandom_engine(void); -""" - -MACROS = """ -""" - -with open(os.path.join( - os.path.dirname(__file__), "src/osrandom_engine.c" -)) as f: - CUSTOMIZATIONS = f.read() - -CONDITIONAL_NAMES = {} |