set FIPS permitted flag before initalising digest
This commit is contained in:
parent
06843f826f
commit
8f119a0357
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,6 @@ int ssl3_digest_cached_records(SSL *s)
|
|||
if ((mask & ssl_get_algorithm2(s)) && md)
|
||||
{
|
||||
s->s3->handshake_dgst[i]=EVP_MD_CTX_create();
|
||||
EVP_DigestInit_ex(s->s3->handshake_dgst[i],md,NULL);
|
||||
#ifdef OPENSSL_FIPS
|
||||
if (EVP_MD_nid(md) == NID_md5)
|
||||
{
|
||||
|
@ -622,6 +621,7 @@ int ssl3_digest_cached_records(SSL *s)
|
|||
EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
|
||||
}
|
||||
#endif
|
||||
EVP_DigestInit_ex(s->s3->handshake_dgst[i],md,NULL);
|
||||
EVP_DigestUpdate(s->s3->handshake_dgst[i],hdata,hdatalen);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue