API modified so server side can get mki value
+ client side discards self mki if server does not support it Signed-off-by: Johan Pascal <johan.pascal@belledonne-communications.com>
This commit is contained in:
parent
adbd9449ec
commit
20c7db3a67
6 changed files with 63 additions and 10 deletions
|
@ -1925,6 +1925,14 @@ static int ssl_parse_use_srtp_ext( mbedtls_ssl_context *ssl,
|
|||
MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE );
|
||||
return( MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO );
|
||||
}
|
||||
|
||||
/* If server does not use mki in its reply, make sure the client won't keep
|
||||
* one as negotiated */
|
||||
if( len == 5 )
|
||||
{
|
||||
ssl->dtls_srtp_info.mki_len = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* RFC5764:
|
||||
* If the client detects a nonzero-length MKI in the server's response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue