From e5b803729f9f3d4357fbf5e850db480b801ae741 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 8 Nov 2019 15:26:10 +0100 Subject: [PATCH] Update httpd.c --- httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpd.c b/httpd.c index 2921b83..c6b958c 100644 --- a/httpd.c +++ b/httpd.c @@ -49,7 +49,7 @@ void configure_context(SSL_CTX *ctx) * SSL_OP_NO_TICKET: We don't want TLS tickets used because this is an SSL server caching example. * It should be fine to use tickets in addition to server side caching. */ - SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET); + SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET); SSL_CTX_set_session_id_context(ctx, (void *)&ssl_session_ctx_id, sizeof(ssl_session_ctx_id)); /* Set the key and cert */ /* use the full chain bundle of certificate */ @@ -219,4 +219,4 @@ int main(int argc, char* argv[]) close(server_sock); return(0); -} \ No newline at end of file +}