aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <mozo@mozo.jp>2017-04-06 20:12:29 +0900
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-04-06 19:12:29 +0800
commitef027a69808d045dffc3b4db274d67cea1be9f3a (patch)
tree0736a90c5c4ef361c08c2590b7a7d4a517dd6dce /src/_cffi_src/openssl
parenteba67506bb813f900c102fe62bb9bc01acfb53d6 (diff)
downloadcryptography-ef027a69808d045dffc3b4db274d67cea1be9f3a.tar.gz
cryptography-ef027a69808d045dffc3b4db274d67cea1be9f3a.tar.bz2
cryptography-ef027a69808d045dffc3b4db274d67cea1be9f3a.zip
Add some ASN1_TIME related functions for the relevant PyOpenSSL patch. (#3491)
* Add ASN1_TIME related functions for the relevant PyOpenSSL patch. * Move ASN1_TIME_check() to MACROS as the argument's constness varies between 1.0.x and 1.1.0~.
Diffstat (limited to 'src/_cffi_src/openssl')
-rw-r--r--src/_cffi_src/openssl/asn1.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/asn1.py b/src/_cffi_src/openssl/asn1.py
index 4afca3de..5034c398 100644
--- a/src/_cffi_src/openssl/asn1.py
+++ b/src/_cffi_src/openssl/asn1.py
@@ -80,6 +80,7 @@ void ASN1_TIME_free(ASN1_TIME *);
ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *,
ASN1_GENERALIZEDTIME **);
ASN1_TIME *ASN1_TIME_set(ASN1_TIME *, time_t);
+int ASN1_TIME_set_string(ASN1_TIME *, const char *);
/* ASN1 UTCTIME */
ASN1_UTCTIME *ASN1_UTCTIME_new(void);
@@ -146,6 +147,7 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *, ASN1_INTEGER *);
/* These isn't a macro the arg is const on openssl 1.0.2+ */
int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *);
int ASN1_UTCTIME_check(ASN1_UTCTIME *);
+int ASN1_TIME_check(ASN1_TIME *);
/* Not a macro, const on openssl 1.0 */
int ASN1_STRING_set_default_mask_asc(char *);