aboutsummaryrefslogtreecommitdiff
path: root/demos/easy_tls
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/easy_tls
parent32ec41539b5b23bc42503589fcc5be65d648d1f5 (diff)
downloadopenssl-13c9bb3ecec5f847b4c5295249e039d386e2d10e.zip
openssl-13c9bb3ecec5f847b4c5295249e039d386e2d10e.tar.gz
openssl-13c9bb3ecec5f847b4c5295249e039d386e2d10e.tar.bz2
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/easy_tls')
-rw-r--r--demos/easy_tls/easy-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/easy_tls/easy-tls.c b/demos/easy_tls/easy-tls.c
index 2befb65..b951290 100644
--- a/demos/easy_tls/easy-tls.c
+++ b/demos/easy_tls/easy-tls.c
@@ -667,7 +667,7 @@ SSL_CTX *tls_create_ctx(struct tls_create_ctx_args a, void *apparg)
return NULL;
ret =
- SSL_CTX_new((a.client_p ? SSLv23_client_method :
+ SSL_CTX_new((a.client_p ? TLS_client_method :
TLS_server_method) ());
if (ret == NULL)