mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 06:15:44 +01: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
beec142010
commit
e59ae23868
@ -977,7 +977,13 @@ int mbedtls_ssl_tls_prf( const mbedtls_tls_prf_types prf,
|
||||
return( tls_prf( secret, slen, label, random, rlen, dstbuf, dlen ) );
|
||||
}
|
||||
|
||||
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;
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
@ -1692,6 +1698,11 @@ end:
|
||||
return( ret );
|
||||
}
|
||||
|
||||
int mbedtls_ssl_derive_keys( mbedtls_ssl_context *ssl )
|
||||
{
|
||||
return( ssl_populate_transform( ssl ) );
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_SSL3)
|
||||
void ssl_calc_verify_ssl( mbedtls_ssl_context *ssl, unsigned char hash[36] )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user