kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit b9445e84caaa148054e98eacb317f65481313a7d
parent 217b2749f9a7443f8baa7b1774cf92da08625b9c
Author: Joris Vink <joris@coders.se>
Date:   Wed, 22 Oct 2014 18:44:31 +0200

Use the right ssl_ctx

Diffstat:
examples/ktunnel/client/client.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/ktunnel/client/client.c b/examples/ktunnel/client/client.c @@ -363,10 +363,10 @@ ktunnel_connect(struct peer *peer, struct addrinfo *ai) fatal("SSL_CTX_new(): %s", ssl_errno_s); SSL_CTX_set_mode(peer->ssl_ctx, SSL_MODE_AUTO_RETRY); - SSL_CTX_set_options(dom->ssl_ctx, SSL_OP_NO_SSLv2); - SSL_CTX_set_options(dom->ssl_ctx, SSL_OP_NO_SSLv3); - SSL_CTX_set_options(dom->ssl_ctx, SSL_OP_NO_TLSv1); - SSL_CTX_set_options(dom->ssl_ctx, SSL_OP_NO_TLSv1_1); + SSL_CTX_set_options(peer->ssl_ctx, SSL_OP_NO_SSLv2); + SSL_CTX_set_options(peer->ssl_ctx, SSL_OP_NO_SSLv3); + SSL_CTX_set_options(peer->ssl_ctx, SSL_OP_NO_TLSv1); + SSL_CTX_set_options(peer->ssl_ctx, SSL_OP_NO_TLSv1_1); if ((peer->ssl = SSL_new(peer->ssl_ctx)) == NULL) fatal("SSL_new(): %s", ssl_errno_s);