X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=demos%2Fbio%2Fclient-arg.c;h=9e136e563d0b6eaf1ae6faf3454c9959701f764f;hb=9e20068958b8c1772067299dda7df0b8a82283b4;hp=8507e04f497d8f3480992b29d2a0aa5d878deef6;hpb=86885c289580066792415218754bd935b449f170;p=oweals%2Fopenssl.git diff --git a/demos/bio/client-arg.c b/demos/bio/client-arg.c index 8507e04f49..9e136e563d 100644 --- a/demos/bio/client-arg.c +++ b/demos/bio/client-arg.c @@ -1,3 +1,13 @@ +/* + * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#include #include #include @@ -17,7 +27,7 @@ int main(int argc, char **argv) ERR_load_SSL_strings(); SSL_library_init(); - 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_ssl_ctx(cctx, ctx); @@ -56,7 +66,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; } /*