diff --git a/src/ssl.c b/src/ssl.c index 5c059eb4d..74cd62076 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -2395,13 +2395,13 @@ int wolfSSL_Rehandshake(WOLFSSL* ssl) ssl->secure_renegotiation->cache_status = SCR_CACHE_NEEDED; -#ifndef NO_WOLFSSL_SERVER +#if !defined(NO_WOLFSSL_SERVER) && defined(HAVE_SERVER_RENEGOTIATION_INFO) if (ssl->options.side == WOLFSSL_SERVER_END) { ret = SendHelloRequest(ssl); if (ret != 0) return ret; } -#endif /* NO_WOLFSSL_SERVER*/ +#endif /* NO_WOLFSSL_SERVER && HAVE_SERVER_RENEGOTIATION_INFO */ ret = InitHandshakeHashes(ssl); if (ret !=0) diff --git a/src/tls.c b/src/tls.c index f932dfcec..ac5c1adf7 100644 --- a/src/tls.c +++ b/src/tls.c @@ -34,7 +34,7 @@ #include #include #ifdef NO_INLINE - + #include #else #define WOLFSSL_MISC_INCLUDED #include