mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Add SSL presets.
No need to use a separate profile as in X.509, everything we need is already in ssl_config. Just load appropriate values.
This commit is contained in:
parent
7bfc122703
commit
b31c5f68b1
14 changed files with 132 additions and 56 deletions
|
|
@ -20,7 +20,8 @@ void ssl_dtls_replay( char *prevs, char *new, int ret )
|
|||
|
||||
TEST_ASSERT( mbedtls_ssl_config_defaults( &conf,
|
||||
MBEDTLS_SSL_IS_CLIENT,
|
||||
MBEDTLS_SSL_TRANSPORT_DATAGRAM ) == 0 );
|
||||
MBEDTLS_SSL_TRANSPORT_DATAGRAM,
|
||||
MBEDTLS_SSL_PRESET_DEFAULT ) == 0 );
|
||||
TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 );
|
||||
|
||||
/* Read previous record numbers */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue