From 799a6b6d2d1afc78793fb12e2c04a64735412f1d Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 6 Mar 2018 13:11:36 -0700 Subject: [PATCH] fix warning of unused variable and add guard for disable ecc build --- src/ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 3c665fc18..75709d657 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -4690,8 +4690,10 @@ int PemToDer(const unsigned char* buff, long longSz, int type, case CERTREQ_TYPE: header=BEGIN_CERT_REQ; footer=END_CERT_REQ; break; #endif +#ifndef NO_DSA case DSA_TYPE: header=BEGIN_DSA_PRIV; footer=END_DSA_PRIV; break; +#endif #ifdef HAVE_ECC case ECC_TYPE: header=BEGIN_EC_PRIV; footer=END_EC_PRIV; break; @@ -4801,6 +4803,7 @@ int PemToDer(const unsigned char* buff, long longSz, int type, } #endif + (void)lineSz; if (start == NULL) return WOLFSSL_BAD_FILE; if (info == NULL) return WOLFSSL_BAD_FILE;