tls: add SHA-256 to tls_get_remote_fingerprint()

This commit is contained in:
Richard Aas 2013-08-12 09:03:44 +00:00
parent 7323e059f7
commit 3284ff0517

View file

@ -258,6 +258,8 @@ static const EVP_MD *type2evp(const char *type)
{
if (0 == str_casecmp(type, "SHA-1"))
return EVP_sha1();
else if (0 == str_casecmp(type, "SHA-256"))
return EVP_sha256();
else
return NULL;
}