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
983 B

  1. From d7293d64d503fcbde442d69a3e11c55bf6f1374a Mon Sep 17 00:00:00 2001
  2. From: Paul Kehrer <paul.l.kehrer@gmail.com>
  3. Date: Mon, 25 Feb 2019 11:05:46 +0800
  4. Subject: [PATCH] set Cryptography_HAS_NEXTPROTONEG to 0 for pyOpenSSL
  5. we can remove this symbol in like...5 years.
  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 0e8610f988..e3a7790ee1 100644
  11. --- a/src/_cffi_src/openssl/ssl.py
  12. +++ b/src/_cffi_src/openssl/ssl.py
  13. @@ -623,7 +623,7 @@
  14. static const long Cryptography_HAS_SSL_OP_MSIE_SSLV2_RSA_PADDING = 1;
  15. static const long Cryptography_HAS_SSL_OP_NO_TICKET = 1;
  16. static const long Cryptography_HAS_SSL_SET_SSL_CTX = 1;
  17. -static const long Cryptography_HAS_NEXTPROTONEG = 1;
  18. +static const long Cryptography_HAS_NEXTPROTONEG = 0;
  19. /* SSL_get0_param was added in OpenSSL 1.0.2. */
  20. #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER