Apply system_default configuration on SSL_CTX_new().
[openssl.git] / ssl / ssl_lib.c
index e42333160b451aa70d7d3213c3e39129888be827..baf8a94aa66ae6e0b7d8c42e5aea99b1ca993c5a 100644 (file)
@@ -3112,6 +3112,8 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth)
      */
     ret->max_early_data = 0;
 
+    ssl_ctx_system_config(ret);
+
     return ret;
  err:
     SSLerr(SSL_F_SSL_CTX_NEW, ERR_R_MALLOC_FAILURE);