openssl: fix build without HAVE_OPAQUE_EVP_PKEY

Reported-by: Javier Sixto
Fixes #1955
Closes #1956
This commit is contained in:
Daniel Stenberg 2017-10-06 10:29:51 +02:00
parent 24bba40456
commit 2dcc378381
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View 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. */