aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-01-12 12:47:05 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2019-01-12 09:47:05 -0800
commit9b198104db8b53178212b5849919b6a61ca794ab (patch)
tree3a035cfb5981e68d8081e767f3a276d25c5561a3 /src/_cffi_src
parent19b5d248f2122ace443d2d3596f9dd14f78a4d30 (diff)
downloadcryptography-9b198104db8b53178212b5849919b6a61ca794ab.tar.gz
cryptography-9b198104db8b53178212b5849919b6a61ca794ab.tar.bz2
cryptography-9b198104db8b53178212b5849919b6a61ca794ab.zip
Fixes #4683 -- fixed linux kernel version that has getrandom (#4684)
Diffstat (limited to 'src/_cffi_src')
-rw-r--r--src/_cffi_src/openssl/src/osrandom_engine.c2
-rw-r--r--src/_cffi_src/openssl/src/osrandom_engine.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/src/osrandom_engine.c b/src/_cffi_src/openssl/src/osrandom_engine.c
index 315d5f1f..697381c8 100644
--- a/src/_cffi_src/openssl/src/osrandom_engine.c
+++ b/src/_cffi_src/openssl/src/osrandom_engine.c
@@ -4,7 +4,7 @@
* macOS >= 10.12 getentropy()
* OpenBSD 5.6+ getentropy()
* other BSD getentropy() if SYS_getentropy is defined
- * Linux 3.4.17+ getrandom() with fallback to /dev/urandom
+ * Linux 3.17+ getrandom() with fallback to /dev/urandom
* other /dev/urandom with cached fd
*
* The /dev/urandom, getrandom and getentropy code is derived from Python's
diff --git a/src/_cffi_src/openssl/src/osrandom_engine.h b/src/_cffi_src/openssl/src/osrandom_engine.h
index e7a55c5e..53f957fa 100644
--- a/src/_cffi_src/openssl/src/osrandom_engine.h
+++ b/src/_cffi_src/openssl/src/osrandom_engine.h
@@ -41,7 +41,7 @@
* to urandom */
#define CRYPTOGRAPHY_OSRANDOM_ENGINE CRYPTOGRAPHY_OSRANDOM_ENGINE_GETENTROPY
#elif defined(__linux__) && defined(SYS_getrandom)
- /* Linux 3.4.17+ */
+ /* Linux 3.17+ */
#define CRYPTOGRAPHY_OSRANDOM_ENGINE CRYPTOGRAPHY_OSRANDOM_ENGINE_GETRANDOM
#else
/* Keep this as last entry, fall back to /dev/urandom */