X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=demos%2Fbio%2Fclient-conf.c;h=4e4d4bc8df2447dba3f92288962d8ca0e614319b;hb=4b1fa408b299ed19edba0828109ed93ac1d5322f;hp=b75088a7580f687c7eb00f2314af4c4775b0415b;hpb=86885c289580066792415218754bd935b449f170;p=openssl.git diff --git a/demos/bio/client-conf.c b/demos/bio/client-conf.c index b75088a758..4e4d4bc8df 100644 --- a/demos/bio/client-conf.c +++ b/demos/bio/client-conf.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -37,7 +38,7 @@ int main(int argc, char **argv) goto end; } - ctx = SSL_CTX_new(SSLv23_client_method()); + ctx = SSL_CTX_new(TLS_client_method()); cctx = SSL_CONF_CTX_new(); SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); @@ -64,7 +65,7 @@ int main(int argc, char **argv) if (!SSL_CONF_CTX_finish(cctx)) { fprintf(stderr, "Finish error\n"); ERR_print_errors_fp(stderr); - goto err; + goto end; } /*