summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 94792c6d51..262b5a2130 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -322,7 +322,6 @@ SSL_new(SSL_CTX *ctx)
322 322
323 CRYPTO_add(&ctx->references, 1, CRYPTO_LOCK_SSL_CTX); 323 CRYPTO_add(&ctx->references, 1, CRYPTO_LOCK_SSL_CTX);
324 s->ctx = ctx; 324 s->ctx = ctx;
325#ifndef OPENSSL_NO_TLSEXT
326 s->tlsext_debug_cb = 0; 325 s->tlsext_debug_cb = 0;
327 s->tlsext_debug_arg = NULL; 326 s->tlsext_debug_arg = NULL;
328 s->tlsext_ticket_expected = 0; 327 s->tlsext_ticket_expected = 0;
@@ -337,7 +336,6 @@ SSL_new(SSL_CTX *ctx)
337# ifndef OPENSSL_NO_NEXTPROTONEG 336# ifndef OPENSSL_NO_NEXTPROTONEG
338 s->next_proto_negotiated = NULL; 337 s->next_proto_negotiated = NULL;
339# endif 338# endif
340#endif
341 339
342 s->verify_result = X509_V_OK; 340 s->verify_result = X509_V_OK;
343 341
@@ -535,7 +533,6 @@ SSL_free(SSL *s)
535 ssl_cert_free(s->cert); 533 ssl_cert_free(s->cert);
536 /* Free up if allocated */ 534 /* Free up if allocated */
537 535
538#ifndef OPENSSL_NO_TLSEXT
539 free(s->tlsext_hostname); 536 free(s->tlsext_hostname);
540 if (s->initial_ctx) 537 if (s->initial_ctx)
541 SSL_CTX_free(s->initial_ctx); 538 SSL_CTX_free(s->initial_ctx);
@@ -550,7 +547,6 @@ SSL_free(SSL *s)
550 if (s->tlsext_ocsp_ids) 547 if (s->tlsext_ocsp_ids)
551 sk_OCSP_RESPID_pop_free(s->tlsext_ocsp_ids, OCSP_RESPID_free); 548 sk_OCSP_RESPID_pop_free(s->tlsext_ocsp_ids, OCSP_RESPID_free);
552 free(s->tlsext_ocsp_resp); 549 free(s->tlsext_ocsp_resp);
553#endif
554 550
555 if (s->client_CA != NULL) 551 if (s->client_CA != NULL)
556 sk_X509_NAME_pop_free(s->client_CA, X509_NAME_free); 552 sk_X509_NAME_pop_free(s->client_CA, X509_NAME_free);
@@ -1490,7 +1486,6 @@ err:
1490} 1486}
1491 1487
1492 1488
1493#ifndef OPENSSL_NO_TLSEXT
1494/* 1489/*
1495 * Return a servername extension value if provided in Client Hello, or NULL. 1490 * Return a servername extension value if provided in Client Hello, or NULL.
1496 * So far, only host_name types are defined (RFC 3546). 1491 * So far, only host_name types are defined (RFC 3546).
@@ -1648,7 +1643,6 @@ SSL_CTX_set_next_proto_select_cb(SSL_CTX *ctx, int (*cb) (SSL *s,
1648 ctx->next_proto_select_cb_arg = arg; 1643 ctx->next_proto_select_cb_arg = arg;
1649} 1644}
1650# endif 1645# endif
1651#endif
1652 1646
1653int 1647int
1654SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, 1648SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
@@ -1808,7 +1802,6 @@ SSL_CTX_new(const SSL_METHOD *meth)
1808 1802
1809 ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH; 1803 ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH;
1810 1804
1811#ifndef OPENSSL_NO_TLSEXT
1812 ret->tlsext_servername_callback = 0; 1805 ret->tlsext_servername_callback = 0;
1813 ret->tlsext_servername_arg = NULL; 1806 ret->tlsext_servername_arg = NULL;
1814 /* Setup RFC4507 ticket keys */ 1807 /* Setup RFC4507 ticket keys */
@@ -1824,7 +1817,6 @@ SSL_CTX_new(const SSL_METHOD *meth)
1824 ret->next_protos_advertised_cb = 0; 1817 ret->next_protos_advertised_cb = 0;
1825 ret->next_proto_select_cb = 0; 1818 ret->next_proto_select_cb = 0;
1826# endif 1819# endif
1827#endif
1828#ifndef OPENSSL_NO_PSK 1820#ifndef OPENSSL_NO_PSK
1829 ret->psk_identity_hint = NULL; 1821 ret->psk_identity_hint = NULL;
1830 ret->psk_client_callback = NULL; 1822 ret->psk_client_callback = NULL;
@@ -2842,10 +2834,8 @@ SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx)
2842{ 2834{
2843 if (ssl->ctx == ctx) 2835 if (ssl->ctx == ctx)
2844 return (ssl->ctx); 2836 return (ssl->ctx);
2845#ifndef OPENSSL_NO_TLSEXT
2846 if (ctx == NULL) 2837 if (ctx == NULL)
2847 ctx = ssl->initial_ctx; 2838 ctx = ssl->initial_ctx;
2848#endif
2849 if (ssl->cert != NULL) 2839 if (ssl->cert != NULL)
2850 ssl_cert_free(ssl->cert); 2840 ssl_cert_free(ssl->cert);
2851 ssl->cert = ssl_cert_dup(ctx->cert); 2841 ssl->cert = ssl_cert_dup(ctx->cert);