From: Victor Wagner Date: Fri, 24 Oct 2014 08:55:12 +0000 (+0400) Subject: Fix X509 construcor X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=d2917cb2131b9b08fa6457b195606fcc0220eef1;p=oss%2Fctypescrypto.git Fix X509 construcor --- diff --git a/ctypescrypto/x509.py b/ctypescrypto/x509.py index 384bb27..04addad 100644 --- a/ctypescrypto/x509.py +++ b/ctypescrypto/x509.py @@ -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)