Don't use EC when no-ec.
authorBen Laurie <ben@links.org>
Sun, 13 Dec 2015 15:07:54 +0000 (15:07 +0000)
committerBen Laurie <ben@links.org>
Sun, 13 Dec 2015 16:14:35 +0000 (16:14 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/t1_trce.c

index 6f5bed757d68b65c981a92758bbc766d3e1731ad..80d0bf80b3994a06e00f6704e0880ea8e3c87621 100644 (file)
@@ -1068,6 +1068,7 @@ static int ssl_print_server_keyex(BIO *bio, int indent, SSL *ssl,
             return 0;
         break;
 
+#ifndef OPENSSL_NO_EC
     case SSL_kECDHE:
     case SSL_kECDHEPSK:
         if (msglen < 1)
@@ -1093,6 +1094,7 @@ static int ssl_print_server_keyex(BIO *bio, int indent, SSL *ssl,
             return 0;
         }
         break;
+#endif
 
     case SSL_kPSK:
     case SSL_kRSAPSK: