Fix for possible unused ctx in wolfSSL_CTX_IsPrivatePkSet when no ECC, RSA or ED25519.

This commit is contained in:
David Garske
2018-03-21 15:46:08 -07:00
parent dbb34126f6
commit 4b51431546

View File

@@ -3953,6 +3953,7 @@ int DhAgree(WOLFSSL* ssl, DhKey* dhKey,
int wolfSSL_CTX_IsPrivatePkSet(WOLFSSL_CTX* ctx)
{
int pkcbset = 0;
(void)ctx;
#if defined(HAVE_ECC) || defined(HAVE_ED25519) || !defined(NO_RSA)
if (0
#ifdef HAVE_ECC