summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-31 10:53:39 +0000
committerjsing <jsing@openbsd.org>2014-05-31 10:53:39 +0000
commit13864de44878ba021550cd0ac6af43138fdbfd5c (patch)
tree5512b9cb5cfcf9ba81b084389135e6dd49d023af /lib/libssl/ssl_lib.c
parentTLS would not be entirely functional without extensions, so unifdef (diff)
downloadwireguard-openbsd-13864de44878ba021550cd0ac6af43138fdbfd5c.tar.xz
wireguard-openbsd-13864de44878ba021550cd0ac6af43138fdbfd5c.zip
ECDH and ECDSA will not work overly well if there is no EC, so unifdef
OPENSSL_NO_EC. ok tedu@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index 262b5a21309..1138ac5a699 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -536,10 +536,8 @@ SSL_free(SSL *s)
free(s->tlsext_hostname);
if (s->initial_ctx)
SSL_CTX_free(s->initial_ctx);
-#ifndef OPENSSL_NO_EC
free(s->tlsext_ecpointformatlist);
free(s->tlsext_ellipticcurvelist);
-#endif /* OPENSSL_NO_EC */
free(s->tlsext_opaque_prf_input);
if (s->tlsext_ocsp_exts)
sk_X509_EXTENSION_pop_free(s->tlsext_ocsp_exts,
@@ -2120,7 +2118,6 @@ ssl_set_cert_masks(CERT *c, const SSL_CIPHER *cipher)
#define ku_reject(x, usage) \
(((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage)))
-#ifndef OPENSSL_NO_EC
int
ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s)
@@ -2190,7 +2187,6 @@ ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s)
/* all checks are ok */
}
-#endif
/* THIS NEEDS CLEANING UP */
CERT_PKEY *