diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-12-01 15:37:01 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-12-01 15:37:01 +0100 |
commit | 3edd36d6c419a6bb057a31270422e82e3a140873 (patch) | |
tree | 18560edb8ae1accc5a89d9533c2eb95b6ef8261e /lib/Net/IMAP/InterIMAP.pm | |
parent | bf57c46e0292f64a637fcee92abcdc0e79c6c53e (diff) | |
parent | d5b28183b91b0931db1d185ea04cbeae4a70a677 (diff) |
Merge tag 'upstream/0.3' into debian
Upstream version 0.3
Diffstat (limited to 'lib/Net/IMAP/InterIMAP.pm')
-rw-r--r-- | lib/Net/IMAP/InterIMAP.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Net/IMAP/InterIMAP.pm b/lib/Net/IMAP/InterIMAP.pm index a899831..7a1ba34 100644 --- a/lib/Net/IMAP/InterIMAP.pm +++ b/lib/Net/IMAP/InterIMAP.pm @@ -1539,8 +1539,8 @@ sub _ssl_verify($$$) { my $type = Net::SSLeay::EVP_get_digestbyname($algo) or $self->_ssl_error("Can't find MD value for name '$algo'"); - if (Net::SSLeay::X509_digest($cert, $type) ne $digest and - Net::SSLeay::X509_pubkey_digest($cert, $type) ne $digest) { + my $pkey = Net::SSLeay::X509_get_X509_PUBKEY($cert); + unless (defined $pkey and Net::SSLeay::EVP_Digest($pkey, $type) eq $digest) { $self->warn("Fingerprint doesn't match! MiTM in action?"); $ok = 0; } |