Add demo for SSL server using SSL_CONF.
[openssl.git] / demos / bio / client-conf.c
index 6cef222fa36566e035d6fe2142372273ed9acb07..191615a9ac7893ea8a2aaf0f40ee3f6fea3664d6 100644 (file)
@@ -68,6 +68,13 @@ int main(int argc, char **argv)
                        goto end;
                        }
                }
+
+       if (!SSL_CONF_CTX_finish(cctx))
+               {
+               fprintf(stderr, "Finish error\n");
+               ERR_print_errors_fp(stderr);
+               goto err;
+               }
                        
        /* We'd normally set some stuff like the verify paths and
        * mode here because as things stand this will connect to