diff options
-rw-r--r-- | src/_cffi_src/openssl/ct.py | 7 | ||||
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/_conditional.py | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/ct.py b/src/_cffi_src/openssl/ct.py index eec6e1d7..1ea31386 100644 --- a/src/_cffi_src/openssl/ct.py +++ b/src/_cffi_src/openssl/ct.py @@ -41,6 +41,9 @@ ct_log_entry_type_t SCT_get_log_entry_type(const SCT *); size_t SCT_get0_log_id(const SCT *, unsigned char **); uint64_t SCT_get_timestamp(const SCT *); + +int sk_SCT_num(const Cryptography_STACK_OF_SCT *); +SCT *sk_SCT_value(const Cryptography_STACK_OF_SCT *, int); """ CUSTOMIZATIONS = """ @@ -59,10 +62,14 @@ typedef enum { CT_LOG_ENTRY_TYPE_PRECERT } ct_log_entry_type_t; typedef void SCT; +typedef void Cryptography_STACK_OF_SCT; sct_version_t (*SCT_get_version)(const SCT *) = NULL; ct_log_entry_type_t (*SCT_get_log_entry_type)(const SCT *) = NULL; size_t (*SCT_get0_log_id)(const SCT *, unsigned char **) = NULL; uint64_t (*SCT_get_timestamp)(const SCT *) = NULL; + +int (*sk_SCT_num)(const Cryptography_STACK_OF_SCT *) = NULL; +SCT *(*sk_SCT_value)(const Cryptography_STACK_OF_SCT *, int) = NULL; #endif """ diff --git a/src/cryptography/hazmat/bindings/openssl/_conditional.py b/src/cryptography/hazmat/bindings/openssl/_conditional.py index 0693ac2d..5f9bdc54 100644 --- a/src/cryptography/hazmat/bindings/openssl/_conditional.py +++ b/src/cryptography/hazmat/bindings/openssl/_conditional.py @@ -161,5 +161,7 @@ CONDITIONAL_NAMES = { "SCT_get_log_entry_type", "SCT_get0_log_id", "SCT_get_timestamp", + "sk_SCT_num", + "sk_SCT_value", ], } |