SSL_CTX *ctx;
int ret = 1, i;
+ ctx = SSL_CTX_new(TLS_server_method());
+
if (CONF_modules_load_file("cmod.cnf", "testapp", 0) <= 0) {
fprintf(stderr, "Error processing config file\n");
goto err;
}
- ctx = SSL_CTX_new(TLS_server_method());
-
if (SSL_CTX_config(ctx, "server") == 0) {
fprintf(stderr, "Error configuring server.\n");
goto err;
char buf[512];
int ret = 1, i;
+ ctx = SSL_CTX_new(TLS_server_method());
conf = NCONF_new(NULL);
goto err;
}
- ctx = SSL_CTX_new(TLS_server_method());
cctx = SSL_CONF_CTX_new();
SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER);
SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE);