aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanisław Pitucha <stanislaw.pitucha@hp.com>2015-06-03 16:39:51 +1000
committerStanisław Pitucha <stanislaw.pitucha@hp.com>2015-06-03 16:41:38 +1000
commit3020ccb6d098641b0df9ab8fb6d237a392391566 (patch)
treede74e80cc537ca5ed0ff132579f95ac379a5a5bf
parent43cd3d2e386b99b52bcda67e5699043244089372 (diff)
downloadcryptography-3020ccb6d098641b0df9ab8fb6d237a392391566.tar.gz
cryptography-3020ccb6d098641b0df9ab8fb6d237a392391566.tar.bz2
cryptography-3020ccb6d098641b0df9ab8fb6d237a392391566.zip
Remove remaining UTCTIME variables
set_not{Before,After} use ASN1_TIME in openssl. UTCTIME has been removed in 0.9.6. get_... functions have been fixed before, but set_... bindings still used the old type.
-rw-r--r--src/cryptography/hazmat/bindings/openssl/x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/x509.py b/src/cryptography/hazmat/bindings/openssl/x509.py
index e0f42fbb..534f5b08 100644
--- a/src/cryptography/hazmat/bindings/openssl/x509.py
+++ b/src/cryptography/hazmat/bindings/openssl/x509.py
@@ -299,8 +299,8 @@ Cryptography_STACK_OF_X509_REVOKED *X509_CRL_get_REVOKED(X509_CRL *);
/* These aren't macros these arguments are all const X on openssl > 1.0.x */
int X509_CRL_set_lastUpdate(X509_CRL *, ASN1_TIME *);
int X509_CRL_set_nextUpdate(X509_CRL *, ASN1_TIME *);
-int X509_set_notBefore(X509 *, ASN1_UTCTIME *);
-int X509_set_notAfter(X509 *, ASN1_UTCTIME *);
+int X509_set_notBefore(X509 *, ASN1_TIME *);
+int X509_set_notAfter(X509 *, ASN1_TIME *);
/* These use STACK_OF(X509_EXTENSION) in 0.9.8e. Once we drop support for
RHEL/CentOS 5 we should move these back to FUNCTIONS. */