fix no-ec build
authorDr. Stephen Henson <steve@openssl.org>
Thu, 3 Mar 2016 13:27:34 +0000 (13:27 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 3 Mar 2016 13:27:34 +0000 (13:27 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/ssl_rsa.c

index abced26..00bf887 100644 (file)
@@ -377,12 +377,12 @@ static int ssl_set_cert(CERT *c, X509 *x)
         SSLerr(SSL_F_SSL_SET_CERT, SSL_R_UNKNOWN_CERTIFICATE_TYPE);
         return 0;
     }
-
+#ifndef OPENSSL_NO_EC
     if (i == SSL_PKEY_ECC && !EC_KEY_can_sign(EVP_PKEY_get0_EC_KEY(pkey))) {
         SSLerr(SSL_F_SSL_SET_CERT, SSL_R_ECC_CERT_NOT_FOR_SIGNING);
         return 0;
     }
-
+#endif
     if (c->pkeys[i].privatekey != NULL) {
         /*
          * The return code from EVP_PKEY_copy_parameters is deliberately