diff options
Diffstat (limited to 'demos/bio/server-cmod.c')
-rw-r--r-- | demos/bio/server-cmod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/bio/server-cmod.c b/demos/bio/server-cmod.c index dfe233538e..9cb246375c 100644 --- a/demos/bio/server-cmod.c +++ b/demos/bio/server-cmod.c @@ -27,13 +27,13 @@ int main(int argc, char *argv[]) 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; |