mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Quit using deprecated ssl_set_bio() in programs
This commit is contained in:
parent
9a65e80e4f
commit
aeab252fef
7 changed files with 7 additions and 13 deletions
|
|
@ -613,8 +613,7 @@ int main( int argc, char *argv[] )
|
|||
|
||||
ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
|
||||
ssl_set_dbg( &ssl, my_debug, stdout );
|
||||
ssl_set_bio( &ssl, net_recv, &server_fd,
|
||||
net_send, &server_fd );
|
||||
ssl_set_bio_timeout( &ssl, &server_fd, net_send, net_recv, NULL, 0 );
|
||||
|
||||
if( opt.force_ciphersuite[0] != DFL_FORCE_CIPHER )
|
||||
ssl_set_ciphersuites( &ssl, opt.force_ciphersuite );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue