From: Daniel Kahn Gillmor Date: Mon, 14 Mar 2011 05:06:29 +0000 (-0400) Subject: avoid a warning if certificate issuer is not present in cert X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7de7be032bda472a3b497d1bfc136f6d895efd18;p=monkeysphere-validation-agent.git avoid a warning if certificate issuer is not present in cert --- diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm index 1ba0605..5c48fa1 100755 --- a/Crypt/Monkeysphere/MSVA.pm +++ b/Crypt/Monkeysphere/MSVA.pm @@ -429,7 +429,7 @@ $key->{error} = sprintf("Error decoding X.509 certificate: %s", $cert->error); } else { msvalog('verbose', "cert subject: %s\n", $cert->subject_cn()); - msvalog('verbose', "cert issuer: %s\n", $cert->issuer_cn()); + msvalog('verbose', "cert issuer: %s\n", (defined $cert->issuer_cn() ? $cert->issuer_cn() : '')); msvalog('verbose', "cert pubkey algo: %s\n", $cert->PubKeyAlg()); msvalog('verbose', "cert pubkey: %s\n", unpack('H*', $cert->pubkey()));