]> wagner.pp.ru Git - oss/ctypescrypto.git/commitdiff
Fix X509 construcor
authorVictor Wagner <wagner@atlas-kard.ru>
Fri, 24 Oct 2014 08:55:12 +0000 (12:55 +0400)
committerVictor Wagner <wagner@atlas-kard.ru>
Fri, 24 Oct 2014 08:55:12 +0000 (12:55 +0400)
ctypescrypto/x509.py

index 384bb271c57478577324bb082d38e2aeba134959..04addada19460549d89982b9f1ae3134d858a791 100644 (file)
@@ -60,6 +60,7 @@ class X509:
                        self.cert = ptr
                elif data is None:
                        raise TypeError("data argument is required")
+               else:
                        b=Membio(data)
                        if format == "PEM":
                                self.cert=libcrypto.PEM_read_bio_X509(b.bio,None,None,None)