]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: fix build without HAVE_OPAQUE_EVP_PKEY
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Oct 2017 08:29:51 +0000 (10:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Oct 2017 12:42:40 +0000 (14:42 +0200)
Reported-by: Javier Sixto
Fixes #1955
Closes #1956

lib/vtls/openssl.c

index 4253160aa728ee51c9f14b49bb3f0b88eee42758..7b41353d00fd6b3892f60543674b5394ce08918d 100644 (file)
@@ -837,7 +837,7 @@ int cert_stuff(struct connectdata *conn,
       EVP_PKEY_free(pktmp);
     }
 
-#ifndef OPENSSL_NO_RSA
+#if !defined(OPENSSL_NO_RSA) && defined(HAVE_OPAQUE_EVP_PKEY)
     {
       /* If RSA is used, don't check the private key if its flags indicate
        * it doesn't support it. */