Add demo for SSL server using SSL_CONF.
[openssl.git] / demos / bio / client-arg.c
index f0cb9aba900a00188bcfaa01df72220dcc8137bf..cca7a1ed0632cdfda6499fed1f62fd9e6ebf74dc 100644 (file)
@@ -60,6 +60,13 @@ int main(int argc, char **argv)
                        }
                }
 
+       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
        * any server whose certificate is signed by any CA.