From 54dd37bf077c4b5efbd0444ed0acb0691c5f2dbc Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 19 Apr 2026 16:29:04 -0400 Subject: [PATCH] Make OpenSSL ASN.1 string types opaque for OpenSSL 4 compat --- src/_cffi_src/openssl/asn1.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/_cffi_src/openssl/asn1.py b/src/_cffi_src/openssl/asn1.py index 39e8fef82064..f9cba775d855 100644 --- a/src/_cffi_src/openssl/asn1.py +++ b/src/_cffi_src/openssl/asn1.py @@ -13,18 +13,11 @@ typedef ... ASN1_INTEGER; -struct asn1_string_st { - int length; - int type; - unsigned char *data; - long flags; -}; - -typedef struct asn1_string_st ASN1_OCTET_STRING; -typedef struct asn1_string_st ASN1_IA5STRING; -typedef struct asn1_string_st ASN1_TIME; +typedef ... ASN1_OCTET_STRING; +typedef ... ASN1_IA5STRING; +typedef ... ASN1_TIME; typedef ... ASN1_OBJECT; -typedef struct asn1_string_st ASN1_STRING; +typedef ... ASN1_STRING; typedef ... ASN1_GENERALIZEDTIME; typedef ... ASN1_ENUMERATED;