Skip to content

Commit

Permalink
For more than 160 bits of security disable SHA1 HMAC
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Apr 5, 2014
1 parent b7e46a9 commit f8dd55b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssl/ssl_cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,9 @@ static int ssl_security_default_callback(SSL *s, SSL_CTX *ctx, int op, int bits,
/* No MD5 mac ciphersuites */
if (c->algorithm_mac & SSL_MD5)
return 0;
/* SHA1 HMAC is 160 bits of security */
if (minbits > 160 && c->algorithm_mac & SSL_SHA1)
return 0;
/* Level 2: no RC4 */
if (level >= 2 && c->algorithm_enc == SSL_RC4)
return 0;
Expand Down

0 comments on commit f8dd55b

Please sign in to comment.