summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s3_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/s3_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/s3_lib.c')
-rw-r--r--lib/libssl/s3_lib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c
index 72492a33329..9aa72a9c4ee 100644
--- a/lib/libssl/s3_lib.c
+++ b/lib/libssl/s3_lib.c
@@ -151,9 +151,7 @@
#include <stdio.h>
#include <openssl/objects.h>
#include "ssl_locl.h"
-#ifndef OPENSSL_NO_EC
#include "../crypto/ec/ec_lcl.h"
-#endif /* OPENSSL_NO_EC */
#include <openssl/md5.h>
#include <openssl/dh.h>
@@ -2381,9 +2379,7 @@ ssl3_clear(SSL *s)
EC_KEY_free(s->s3->tmp.ecdh);
s->s3->tmp.ecdh = NULL;
}
-#ifndef OPENSSL_NO_EC
s->s3->is_probably_safari = 0;
-#endif /* !OPENSSL_NO_EC */
rp = s->s3->rbuf.buf;
wp = s->s3->wbuf.buf;
@@ -3031,7 +3027,6 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
ok = (alg_k & mask_k) && (alg_a & mask_a);
}
-#ifndef OPENSSL_NO_EC
if (
/*
* if we are considering an ECC cipher suite that uses our
@@ -3167,7 +3162,6 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
}
ok = ok && ec_ok;
}
-#endif /* OPENSSL_NO_EC */
if (!ok)
continue;