From: Dr. Stephen Henson Date: Thu, 23 Apr 2009 15:24:27 +0000 (+0000) Subject: Some no-ec fixes (not complete yet). X-Git-Tag: OpenSSL_1_0_0-beta3~127 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=82ae57136b93ff8a39bc32a52d7b5fb41502a8c2;p=oweals%2Fopenssl.git Some no-ec fixes (not complete yet). --- diff --git a/crypto/dh/dh_pmeth.c b/crypto/dh/dh_pmeth.c index 392d30d166..5ae72b7d4c 100644 --- a/crypto/dh/dh_pmeth.c +++ b/crypto/dh/dh_pmeth.c @@ -59,7 +59,6 @@ #include "cryptlib.h" #include #include -#include #include #include #include diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 73a573ee29..51ec94b5b1 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -2821,13 +2821,11 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, SSL_CIPHER *c,*ret=NULL; STACK_OF(SSL_CIPHER) *prio, *allow; int i,ii,ok; -#ifndef OPENSSL_NO_TLSEXT +#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_EC) unsigned int j; -#ifndef OPENSSL_NO_EC int ec_ok, ec_nid; unsigned char ec_search1 = 0, ec_search2 = 0; -#endif /* OPENSSL_NO_EC */ -#endif /* OPENSSL_NO_TLSEXT */ +#endif CERT *cert; unsigned long alg_k,alg_a,mask_k,mask_a,emask_k,emask_a; diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index f305bc7b36..2ad60fe649 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1966,6 +1966,8 @@ void 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, const SSL_CIPHER *cs) { unsigned long alg_k, alg_a; @@ -2037,6 +2039,8 @@ int ssl_check_srvr_ecc_cert_and_alg(X509 *x, const SSL_CIPHER *cs) return 1; /* all checks are ok */ } +#endif + /* THIS NEEDS CLEANING UP */ X509 *ssl_get_server_send_cert(SSL *s) {