]> granicus.if.org Git - curl/commitdiff
openssl: fix boringssl build again
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Nov 2017 18:39:09 +0000 (19:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Nov 2017 18:39:09 +0000 (19:39 +0100)
commit d3ab7c5a21e broke the boringssl build since it doesn't have
RSA_flags(), so we disable that code block for boringssl builds.

Reported-by: W. Mark Kubacki
Fixes #2117

lib/vtls/openssl.c

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