1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

add TLSv1.3 support

This commit is contained in:
stefanocasazza 2018-10-12 17:32:04 +02:00
parent f3c8c10470
commit 34ed3bca85
2 changed files with 6 additions and 1 deletions

View File

@ -192,6 +192,11 @@ SSL_CTX* USSLSocket::getContext(SSL_METHOD* method, bool bserver, long options)
(void) U_SYSCALL(SSL_CTX_set_session_cache_mode, "%p,%d", ctx, SSL_SESS_CACHE_SERVER);
(void) U_SYSCALL(SSL_CTX_set_session_id_context, "%p,%p,%u", ctx, (const unsigned char*)u_progname, u_progname_len);
# ifdef TLS1_3_VERSION
(void) U_SYSCALL(SSL_CTX_set_min_proto_version, "%p,%d", ctx, 0);
(void) U_SYSCALL(SSL_CTX_set_max_proto_version, "%p,%d", ctx, TLS1_3_VERSION);
# endif
// We need this to disable client-initiated renegotiation
U_SYSCALL_VOID(SSL_CTX_set_info_callback, "%p,%p", ctx, USSLSocket::info_callback);

View File

@ -1 +1 @@
0432
043A