Fix 'no-ec'
[openssl.git] / ssl / statem / extensions_srvr.c
index 22d2c4af2d52d037c797212c98e8f5ca834546d4..381e72bb86657fc5cfb22ce9f8d90488f08a8490 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,