mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-19 18:37:57 +00:00
Start splitting populate_transform() out of derive_keys()
This is currently a dummy, just introducing the new name.
This commit is contained in:
parent
08885813c3
commit
5ed5e90ec4
|
@ -607,7 +607,13 @@ static void ssl_calc_finished_tls_sha384( mbedtls_ssl_context *, unsigned char *
|
||||||
#endif
|
#endif
|
||||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
|
||||||
|
|
||||||
int mbedtls_ssl_derive_keys( mbedtls_ssl_context *ssl )
|
/*
|
||||||
|
* This function will ultimetaly only be responsible for populating a
|
||||||
|
* transform structure from data passed as explicit parameters.
|
||||||
|
*
|
||||||
|
* For now however it's doing rather more in a rather less explicit way.
|
||||||
|
*/
|
||||||
|
static int ssl_populate_transform( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
unsigned char tmp[64];
|
unsigned char tmp[64];
|
||||||
|
@ -1142,6 +1148,11 @@ int mbedtls_ssl_derive_keys( mbedtls_ssl_context *ssl )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int mbedtls_ssl_derive_keys( mbedtls_ssl_context *ssl )
|
||||||
|
{
|
||||||
|
return( ssl_populate_transform( ssl ) );
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_SSL3)
|
#if defined(MBEDTLS_SSL_PROTO_SSL3)
|
||||||
void ssl_calc_verify_ssl( mbedtls_ssl_context *ssl, unsigned char hash[36] )
|
void ssl_calc_verify_ssl( mbedtls_ssl_context *ssl, unsigned char hash[36] )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue