summaryrefslogtreecommitdiffstats
path: root/demos/ssl/cli.cpp
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-03-31 00:18:31 +0100
committerMatt Caswell <matt@openssl.org>2015-05-16 09:20:31 +0100
commit13c9bb3ecec5f847b4c5295249e039d386e2d10e (patch)
tree8a3c816a718d72049d44dc24b6c2239fe954eab0 /demos/ssl/cli.cpp
parent32ec41539b5b23bc42503589fcc5be65d648d1f5 (diff)
Client side version negotiation rewrite
Continuing from the previous commit this changes the way we do client side version negotiation. Similarly all of the s23* "up front" state machine code has been avoided and again things now work much the same way as they already did for DTLS, i.e. we just do most of the work in the ssl3_get_server_hello() function. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'demos/ssl/cli.cpp')
-rw-r--r--demos/ssl/cli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/ssl/cli.cpp b/demos/ssl/cli.cpp
index cb5d329ea4..3459f0f93a 100644
--- a/demos/ssl/cli.cpp
+++ b/demos/ssl/cli.cpp
@@ -38,7 +38,7 @@ void main ()
SSL_METHOD *meth;
SSLeay_add_ssl_algorithms();
- meth = SSLv23_client_method();
+ meth = TLS_client_method();
SSL_load_error_strings();
ctx = SSL_CTX_new (meth); CHK_NULL(ctx);