Merge pull request #4232 from SparkiDev/small_build_fixes

Small configurations: get compiling
This commit is contained in:
JacobBarthelmeh
2021-07-23 14:20:56 +07:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@ -8536,6 +8536,9 @@ static void AddFragHeaders(byte* output, word32 fragSz, word32 fragOffset,
} }
#endif /* NO_CERTS */ #endif /* NO_CERTS */
#if !defined(NO_WOLFSSL_SERVER) || \
(!defined(NO_WOLFSSL_CLIENT) && !defined(NO_CERTS) && \
!defined(WOLFSSL_NO_CLIENT_AUTH))
/** /**
* Send the handshake message. This function handles fragmenting the message * Send the handshake message. This function handles fragmenting the message
* so that it will fit into the desired MTU or the max fragment size. * so that it will fit into the desired MTU or the max fragment size.
@ -8691,6 +8694,9 @@ static int SendHandshakeMsg(WOLFSSL* ssl, byte* input, word32 inputSz,
ssl->fragOffset = 0; ssl->fragOffset = 0;
return ret; return ret;
} }
#endif /* !NO_WOLFSSL_SERVER || (!NO_WOLFSSL_CLIENT && !NO_CERTS &&
* !WOLFSSL_NO_CLIENT_AUTH) */
#endif /* !WOLFSSL_NO_TLS12 */ #endif /* !WOLFSSL_NO_TLS12 */

View File

@ -2549,8 +2549,9 @@ exit_buildmsg:
return ret; return ret;
} }
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK) || \ #if !defined(NO_WOLFSSL_CLIENT) || (!defined(NO_WOLFSSL_SERVER) && \
!defined(NO_WOLFSSL_CLIENT) (defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)) && \
defined(WOLFSSL_PSK_ONE_ID)) \
/* Find the cipher suite in the suites set in the SSL. /* Find the cipher suite in the suites set in the SSL.
* *
* ssl SSL/TLS object. * ssl SSL/TLS object.