aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-05-02 11:30:28 +0200
committerRiccardo Spagni <ric@spagni.net>2019-05-02 11:30:28 +0200
commit77f9bfa4d5de1b39c8f0c86508eab5ac0ae6488a (patch)
tree2fb25ffb3cc161b87c2275e95a67ba2bda28d0e9 /contrib/epee/src
parentMerge pull request #5491 (diff)
parentchange SSL certificate fingerprint whitelisting from SHA1 to SHA-256 (diff)
downloadmonero-77f9bfa4d5de1b39c8f0c86508eab5ac0ae6488a.tar.xz
Merge pull request #5493
5e0da6fb change SSL certificate fingerprint whitelisting from SHA1 to SHA-256 (moneromooo-monero)
Diffstat (limited to 'contrib/epee/src')
-rw-r--r--contrib/epee/src/net_ssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/src/net_ssl.cpp b/contrib/epee/src/net_ssl.cpp
index 7bedb18ac..c17d86eca 100644
--- a/contrib/epee/src/net_ssl.cpp
+++ b/contrib/epee/src/net_ssl.cpp
@@ -321,7 +321,7 @@ bool ssl_options_t::has_fingerprint(boost::asio::ssl::verify_context &ctx) const
unsigned int size{ 0 };
// create the digest from the certificate
- if (!X509_digest(cert, EVP_sha1(), digest.data(), &size)) {
+ if (!X509_digest(cert, EVP_sha256(), digest.data(), &size)) {
MERROR("Failed to create certificate fingerprint");
return false;
}