mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-10 08:59:05 +08:00
Assign the ciphersuite in finalize_hrr{server_hello}
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
bb883244aa
commit
4ef8ba2938
@ -1976,6 +1976,7 @@ static int ssl_tls13_postprocess_server_hello(mbedtls_ssl_context *ssl)
|
|||||||
|
|
||||||
mbedtls_ssl_set_inbound_transform(ssl, handshake->transform_handshake);
|
mbedtls_ssl_set_inbound_transform(ssl, handshake->transform_handshake);
|
||||||
MBEDTLS_SSL_DEBUG_MSG(1, ("Switch to handshake keys for inbound traffic"));
|
MBEDTLS_SSL_DEBUG_MSG(1, ("Switch to handshake keys for inbound traffic"));
|
||||||
|
ssl->session_negotiate->ciphersuite = handshake->ciphersuite_info->id;
|
||||||
ssl->session_in = ssl->session_negotiate;
|
ssl->session_in = ssl->session_negotiate;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
@ -2006,6 +2007,7 @@ static int ssl_tls13_postprocess_hrr(mbedtls_ssl_context *ssl)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssl->session_negotiate->ciphersuite = ssl->handshake->ciphersuite_info->id;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user