tls: add SHA-256 to tls_get_remote_fingerprint()
This commit is contained in:
parent
7323e059f7
commit
3284ff0517
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue