limiting max_fragment API for client side only.
This commit is contained in:
parent
98e6ad3ee9
commit
593e466a44
@ -1014,8 +1014,12 @@ enum {
|
|||||||
CYASSL_MFL_2_13 = 5 /* 8192 bytes *//* CyaSSL ONLY!!! */
|
CYASSL_MFL_2_13 = 5 /* 8192 bytes *//* CyaSSL ONLY!!! */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef NO_CYASSL_CLIENT
|
||||||
|
|
||||||
CYASSL_API int CyaSSL_UseMaxFragment(CYASSL* ssl, unsigned char mfl);
|
CYASSL_API int CyaSSL_UseMaxFragment(CYASSL* ssl, unsigned char mfl);
|
||||||
CYASSL_API int CyaSSL_CTX_UseMaxFragment(CYASSL_CTX* ctx, unsigned char mfl);
|
CYASSL_API int CyaSSL_CTX_UseMaxFragment(CYASSL_CTX* ctx, unsigned char mfl);
|
||||||
|
|
||||||
|
#endif /* NO_CYASSL_CLIENT */
|
||||||
#endif /* HAVE_MAX_FRAGMENT */
|
#endif /* HAVE_MAX_FRAGMENT */
|
||||||
|
|
||||||
|
|
||||||
|
@ -568,6 +568,7 @@ word16 CyaSSL_SNI_GetRequest(CYASSL* ssl, byte type, void** data)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_MAX_FRAGMENT
|
#ifdef HAVE_MAX_FRAGMENT
|
||||||
|
#ifndef NO_CYASSL_CLIENT
|
||||||
int CyaSSL_UseMaxFragment(CYASSL* ssl, byte mfl)
|
int CyaSSL_UseMaxFragment(CYASSL* ssl, byte mfl)
|
||||||
{
|
{
|
||||||
if (ssl == NULL)
|
if (ssl == NULL)
|
||||||
@ -583,6 +584,7 @@ int CyaSSL_CTX_UseMaxFragment(CYASSL_CTX* ctx, byte mfl)
|
|||||||
|
|
||||||
return TLSX_UseMaxFragment(&ctx->extensions, mfl);
|
return TLSX_UseMaxFragment(&ctx->extensions, mfl);
|
||||||
}
|
}
|
||||||
|
#endif /* NO_CYASSL_CLIENT */
|
||||||
#endif /* HAVE_MAX_FRAGMENT */
|
#endif /* HAVE_MAX_FRAGMENT */
|
||||||
|
|
||||||
#ifndef CYASSL_LEANPSK
|
#ifndef CYASSL_LEANPSK
|
||||||
|
Loading…
Reference in New Issue
Block a user