mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-05 00:01:49 -05:00
Increased maximum PT-TLS message size to 2MB
This commit is contained in:
parent
096c726b5b
commit
3a726816a2
@ -40,7 +40,7 @@
|
||||
/**
|
||||
* Maximum size of a PT-TLS message
|
||||
*/
|
||||
#define PT_TLS_MAX_MESSAGE_LEN 8 * TLS_MAX_FRAGMENT_LEN - PT_TLS_HEADER_LEN
|
||||
#define PT_TLS_MAX_MESSAGE_LEN 128 * TLS_MAX_FRAGMENT_LEN - PT_TLS_HEADER_LEN
|
||||
|
||||
/**
|
||||
* Default PT-TLS port
|
||||
|
||||
@ -1040,14 +1040,14 @@ tnccs_t* tnccs_20_create(bool is_server,
|
||||
{
|
||||
case TNC_IFT_TLS_2_0:
|
||||
case TNC_IFT_TLS_1_0:
|
||||
default_max_batch_size = 8 * TLS_MAX_FRAGMENT_LEN - 16;
|
||||
default_max_batch_size = 128 * TLS_MAX_FRAGMENT_LEN - 16;
|
||||
break;
|
||||
case TNC_IFT_EAP_2_0:
|
||||
case TNC_IFT_EAP_1_1:
|
||||
case TNC_IFT_EAP_1_0:
|
||||
case TNC_IFT_UNKNOWN:
|
||||
default:
|
||||
default_max_batch_size = 4 * TLS_MAX_FRAGMENT_LEN - 14;
|
||||
default_max_batch_size = 4 * TLS_MAX_FRAGMENT_LEN - 14;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user