From 81dd6416ca695abe274499f345f1898837a13047 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 7 Aug 2024 18:45:38 -0400 Subject: [PATCH 1/2] Added d2i_X509_NAME binding for pyOpenSSL --- src/_cffi_src/openssl/x509name.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_cffi_src/openssl/x509name.py b/src/_cffi_src/openssl/x509name.py index 81d897d27255..ee065b1a7bab 100644 --- a/src/_cffi_src/openssl/x509name.py +++ b/src/_cffi_src/openssl/x509name.py @@ -26,6 +26,7 @@ unsigned long X509_NAME_hash(X509_NAME *); int i2d_X509_NAME(X509_NAME *, unsigned char **); +X509_NAME *d2i_X509_NAME(X509_NAME **, unsigned char **, long); X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *, int); void X509_NAME_ENTRY_free(X509_NAME_ENTRY *); int X509_NAME_get_index_by_NID(X509_NAME *, int, int); From 4d19e5fc31cfeface9f7f8b30dac8eb3b82ed266 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 7 Aug 2024 18:47:44 -0400 Subject: [PATCH 2/2] Update x509name.py --- src/_cffi_src/openssl/x509name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_cffi_src/openssl/x509name.py b/src/_cffi_src/openssl/x509name.py index ee065b1a7bab..8c3c4de758dc 100644 --- a/src/_cffi_src/openssl/x509name.py +++ b/src/_cffi_src/openssl/x509name.py @@ -26,7 +26,7 @@ unsigned long X509_NAME_hash(X509_NAME *); int i2d_X509_NAME(X509_NAME *, unsigned char **); -X509_NAME *d2i_X509_NAME(X509_NAME **, unsigned char **, long); +X509_NAME *d2i_X509_NAME(X509_NAME **, const unsigned char **, long); X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *, int); void X509_NAME_ENTRY_free(X509_NAME_ENTRY *); int X509_NAME_get_index_by_NID(X509_NAME *, int, int);