Skip to content

Commit 1418191

Browse files
committed
asn1.py: treat asn1_string_st as opaque
OpenSSL 4 plans to make ASN1_STRING opaque [1]. Using a forward declaration rather than a redefinition avoids the build breakage in cryptography's cffi when it tries to validate the sizes of the members. [1]: openssl/openssl#29117
1 parent ac5e3eb commit 1418191

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/_cffi_src/openssl/asn1.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
1414
typedef ... ASN1_INTEGER;
1515
16-
struct asn1_string_st {
17-
int length;
18-
int type;
19-
unsigned char *data;
20-
long flags;
21-
};
16+
struct asn1_string_st;
2217
2318
typedef struct asn1_string_st ASN1_OCTET_STRING;
2419
typedef struct asn1_string_st ASN1_IA5STRING;

0 commit comments

Comments
 (0)