limiting max_fragment API for client side only.

This commit is contained in:
Moisés Guimarães
2013-07-01 10:13:43 -03:00
parent 98e6ad3ee9
commit 593e466a44
2 changed files with 6 additions and 0 deletions

View File

@@ -568,6 +568,7 @@ word16 CyaSSL_SNI_GetRequest(CYASSL* ssl, byte type, void** data)
#ifdef HAVE_MAX_FRAGMENT
#ifndef NO_CYASSL_CLIENT
int CyaSSL_UseMaxFragment(CYASSL* ssl, byte mfl)
{
if (ssl == NULL)
@@ -583,6 +584,7 @@ int CyaSSL_CTX_UseMaxFragment(CYASSL_CTX* ctx, byte mfl)
return TLSX_UseMaxFragment(&ctx->extensions, mfl);
}
#endif /* NO_CYASSL_CLIENT */
#endif /* HAVE_MAX_FRAGMENT */
#ifndef CYASSL_LEANPSK