diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-08-20 10:09:21 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-08-20 11:09:21 -0400 |
commit | 45784ea3194e72cc14a83b5b0fb668d3524bb8bc (patch) | |
tree | 1666d5631342f785b57fe597fd2639fd93c0e946 /src/_cffi_src | |
parent | 3d271fa4987db3519b244b3b42686fe3d151c2ec (diff) | |
download | cryptography-45784ea3194e72cc14a83b5b0fb668d3524bb8bc.tar.gz cryptography-45784ea3194e72cc14a83b5b0fb668d3524bb8bc.tar.bz2 cryptography-45784ea3194e72cc14a83b5b0fb668d3524bb8bc.zip |
add bindings for SCT creation (#4407)
Diffstat (limited to 'src/_cffi_src')
-rw-r--r-- | src/_cffi_src/openssl/ct.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/ct.py b/src/_cffi_src/openssl/ct.py index 21018d7e..4aa36899 100644 --- a/src/_cffi_src/openssl/ct.py +++ b/src/_cffi_src/openssl/ct.py @@ -52,6 +52,14 @@ int sk_SCT_num(const Cryptography_STACK_OF_SCT *); SCT *sk_SCT_value(const Cryptography_STACK_OF_SCT *, int); void SCT_LIST_free(Cryptography_STACK_OF_SCT *); + +int sk_SCT_push(Cryptography_STACK_OF_SCT *, SCT *); +Cryptography_STACK_OF_SCT *sk_SCT_new_null(void); +SCT *SCT_new(void); +int SCT_set1_log_id(SCT *, unsigned char *, size_t); +void SCT_set_timestamp(SCT *, uint64_t); +int SCT_set_version(SCT *, sct_version_t); +int SCT_set_log_entry_type(SCT *, ct_log_entry_type_t); """ CUSTOMIZATIONS = """ @@ -89,5 +97,12 @@ int (*sk_SCT_num)(const Cryptography_STACK_OF_SCT *) = NULL; SCT *(*sk_SCT_value)(const Cryptography_STACK_OF_SCT *, int) = NULL; void (*SCT_LIST_free)(Cryptography_STACK_OF_SCT *) = NULL; +int (*sk_SCT_push)(Cryptography_STACK_OF_SCT *, SCT *) = NULL; +Cryptography_STACK_OF_SCT *(*sk_SCT_new_null)(void) = NULL; +SCT *(*SCT_new)(void) = NULL; +int (*SCT_set1_log_id)(SCT *, unsigned char *, size_t) = NULL; +void (*SCT_set_timestamp)(SCT *, uint64_t) = NULL; +int (*SCT_set_version)(SCT *, sct_version_t) = NULL; +int (*SCT_set_log_entry_type)(SCT *, ct_log_entry_type_t) = NULL; #endif """ |