electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 7796243fdd84b1b56a227a8e939cdb440c9d1b38
parent 47f89f43b6403b9c9ee633e0f992e2ab66f5b333
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 14 Apr 2015 16:35:06 +0200

get_common_name: return string if missing

Diffstat:
Mlib/x509.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/x509.py b/lib/x509.py @@ -164,10 +164,10 @@ class X509(tlslite.X509): def get_common_name(self): - return self.subject.get('2.5.4.3') + return self.subject.get('2.5.4.3', 'unknown') def get_issuer(self): - return self.issuer.get('2.5.4.3') + return self.issuer.get('2.5.4.3', 'unknown') def get_signature(self): return self.cert_sig_algo, self.signature, self.data