Skip to content

Commit

Permalink
[CBRD-25232] 11.2, exclude Win for TLS_v1.2 (#91)
Browse files Browse the repository at this point in the history
exclude Win for TLS_v1.2
  • Loading branch information
kisoo-han authored Mar 11, 2024
1 parent 5738e6b commit 2a9e636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/cm_http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,11 @@ SSL_CTX *init_SSL (const char *certificate_chain,const char *private_key)
SSL_library_init ();

/* Currently, we support upto TLS_v1.2 */
#if !defined (WINDOWS)
ctx = SSL_CTX_new (TLS_server_method ());
#else
ctx = SSL_CTX_new (TLSv1_server_method ());
#endif
if (!ctx)
{
LOG_ERROR ("-- Web server: Fail to generate CTX for openSSL.");
Expand Down

0 comments on commit 2a9e636

Please sign in to comment.