Experimental encrypt-then-mac support.
Experimental support for encrypt then mac from draft-gutmann-tls-encrypt-then-mac-02.txt To enable it set the appropriate extension number (0x10 for the test server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x10 For non-compliant peers (i.e. just about everything) this should have no effect.
This commit is contained in:
@@ -418,7 +418,7 @@ int ssl3_setup_key_block(SSL *s)
|
||||
if (s->s3->tmp.key_block_length != 0)
|
||||
return(1);
|
||||
|
||||
if (!ssl_cipher_get_evp(s->session,&c,&hash,NULL,NULL,&comp))
|
||||
if (!ssl_cipher_get_evp(s->session,&c,&hash,NULL,NULL,&comp, 0))
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_SETUP_KEY_BLOCK,SSL_R_CIPHER_OR_HASH_UNAVAILABLE);
|
||||
return(0);
|
||||
|
Reference in New Issue
Block a user