From 3bd86d3f876f22451d9c46ab365441f895783f7d Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 23 Sep 2016 10:45:29 -0600 Subject: [PATCH 1/2] Fixing typos --- wolfssl/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index d60882f9f..a9cacda45 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -1527,7 +1527,7 @@ struct WOLFSSL_CERT_MANAGER { #endif WOLFSSL_CRL* crl; /* CRL checker */ WOLFSSL_OCSP* ocsp; /* OCSP checker */ -#if !defined(NO_WOLFSSL_SEVER) && (defined(HAVE_CERTIFICATE_STATUS_REQUEST) \ +#if !defined(NO_WOLFSSL_SERVER) && (defined(HAVE_CERTIFICATE_STATUS_REQUEST) \ || defined(HAVE_CERTIFICATE_STATUS_REQUEST_V2)) WOLFSSL_OCSP* ocsp_stapling; /* OCSP checker for OCSP stapling */ #endif @@ -2004,7 +2004,7 @@ struct WOLFSSL_CTX { OcspRequest* chainOcspRequest[MAX_CHAIN_DEPTH]; #endif #endif - #if defined(HAVE_SESSION_TICKET) && !defined(NO_WOLFSSL_SEVER) + #if defined(HAVE_SESSION_TICKET) && !defined(NO_WOLFSSL_SERVER) SessionTicketEncCb ticketEncCb; /* enc/dec session ticket Cb */ void* ticketEncCtx; /* session encrypt context */ int ticketHint; /* ticket hint in seconds */ From 4fc0c6c6465191ef62c55d768bc9e3f59cc97a66 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 23 Sep 2016 12:13:19 -0600 Subject: [PATCH 2/2] fix unused parameter build time error fix unused parameter build time error --- src/tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tls.c b/src/tls.c index ce26172c2..9a32e55a7 100644 --- a/src/tls.c +++ b/src/tls.c @@ -3229,6 +3229,8 @@ static int TLSX_SessionTicket_Parse(WOLFSSL* ssl, byte* input, word16 length, { int ret = 0; + (void) input; /* avoid unused parameter if NO_WOLFSSL_SERVER defined */ + if (!isRequest) { /* client side */ if (length != 0)