Fix 'no-ec'
authorRichard Levitte <levitte@openssl.org>
Wed, 10 May 2017 15:09:35 +0000 (17:09 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 10 May 2017 15:09:35 +0000 (17:09 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3430)

ssl/statem/extensions_srvr.c

index 22d2c4a..381e72b 100644 (file)
@@ -868,6 +868,7 @@ int tls_construct_stoc_ec_pt_formats(SSL *s, WPACKET *pkt, unsigned int context,
 }
 #endif
 
+#ifndef OPENSSL_NO_EC
 int tls_construct_stoc_supported_groups(SSL *s, WPACKET *pkt,
                                         unsigned int context, X509 *x,
                                         size_t chainidx, int *al)
@@ -923,6 +924,7 @@ int tls_construct_stoc_supported_groups(SSL *s, WPACKET *pkt,
 
     return 1;
 }
+#endif
 
 int tls_construct_stoc_session_ticket(SSL *s, WPACKET *pkt,
                                       unsigned int context, X509 *x,