You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
876 B

  1. From e7a6229b332969d621aaf25f3fc5cdd99e3c9072 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Sun, 18 Nov 2018 18:04:01 -0800
  4. Subject: [PATCH] Adjust DTLS check (#4593)
  5. OpenSSL defines these even with OPENSSL_NO_DTLS.
  6. ---
  7. src/_cffi_src/openssl/ssl.py | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py
  10. index c921dbee..f0b8939c 100644
  11. --- a/src/_cffi_src/openssl/ssl.py
  12. +++ b/src/_cffi_src/openssl/ssl.py
  13. @@ -709,7 +709,7 @@ static const long TLS_ST_BEFORE = 0;
  14. static const long TLS_ST_OK = 0;
  15. #endif
  16. -#if defined(OPENSSL_NO_DTLS) || CRYPTOGRAPHY_OPENSSL_LESS_THAN_102
  17. +#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102
  18. static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0;
  19. const SSL_METHOD *(*DTLS_method)(void) = NULL;
  20. const SSL_METHOD *(*DTLS_server_method)(void) = NULL;