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.

28 lines
868 B

  1. From 7eefc9c72f522e414f953fee2d6ca9242c566107 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Fri, 7 Jun 2019 18:18:46 -0700
  4. Subject: [PATCH 1/7] Add new ASN1_STRING_get0_data API
  5. Introduced with OpenSSL 1.1
  6. ---
  7. src/_cffi_src/openssl/asn1.py | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. --- a/src/_cffi_src/openssl/asn1.py
  10. +++ b/src/_cffi_src/openssl/asn1.py
  11. @@ -45,6 +45,7 @@ void ASN1_OBJECT_free(ASN1_OBJECT *);
  12. /* ASN1 STRING */
  13. unsigned char *ASN1_STRING_data(ASN1_STRING *);
  14. +const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *);
  15. int ASN1_STRING_set(ASN1_STRING *, const void *, int);
  16. /* ASN1 OCTET STRING */
  17. @@ -105,4 +106,7 @@ ASN1_NULL *ASN1_NULL_new(void);
  18. """
  19. CUSTOMIZATIONS = """
  20. +#if (OPENSSL_API_COMPAT >= 0x10100000L) && !CRYPTOGRAPHY_IS_LIBRESSL
  21. +#define ASN1_STRING_data ASN1_STRING_get0_data
  22. +#endif
  23. """