X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ctypescrypto%2Fx509.py;h=44919f1ff9a26be49f66b80570872018c319f84c;hb=0d459cdcbd6957d9eaef790e605f8af767d483e5;hp=358ce7d81d7d244ca1d44b2dfc34769e2c1e0f9d;hpb=4367362775bc1936c63cb0bff16a71affc31f8a2;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/x509.py b/ctypescrypto/x509.py index 358ce7d..44919f1 100644 --- a/ctypescrypto/x509.py +++ b/ctypescrypto/x509.py @@ -18,9 +18,9 @@ from datetime import datetime try: from pytz import utc except ImportError: - from datetime import timedelta + from datetime import timedelta,tzinfo ZERO=timedelta(0) - class UTC(datetime.tzinfo): + class UTC(tzinfo): """tzinfo object for UTC. If no pytz is available, we would use it. """ @@ -83,7 +83,7 @@ class X509Error(LibCryptoError): pass -class X509Name: +class X509Name(object): """ Class which represents X.509 distinguished name - typically a certificate subject name or an issuer name. @@ -376,7 +376,7 @@ class X509(object): def check_ca(self): """ Returns True if certificate is CA certificate """ return libcrypto.X509_check_ca(self.cert)>0 -class X509Store: +class X509Store(object): """ Represents trusted certificate store. Can be used to lookup CA certificates to verify @@ -467,7 +467,7 @@ class X509Store: else: raise TypeError("datetime.date, datetime.datetime or integer is required as time argument") raise NotImplementedError -class StackOfX509: +class StackOfX509(object): """ Implements OpenSSL STACK_OF(X509) object. It looks much like python container types