mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
- Added ssl_set_max_version() to set the client's maximum sent version number
This commit is contained in:
parent
7eb013face
commit
490ecc8c3e
4 changed files with 24 additions and 2 deletions
|
|
@ -1920,6 +1920,12 @@ int ssl_set_hostname( ssl_context *ssl, const char *hostname )
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
void ssl_set_max_version( ssl_context *ssl, int major, int minor )
|
||||
{
|
||||
ssl->max_major_ver = major;
|
||||
ssl->max_minor_ver = minor;
|
||||
}
|
||||
|
||||
/*
|
||||
* SSL get accessors
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue