From 532d2302b8f32a35c6ade41563127f61291361f4 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 4 Apr 2016 21:16:18 +0300 Subject: [PATCH] tls1.h: Allow to override RT_MAX_PLAIN_LENGTH and RT_EXTRA. --- ssl/tls1.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ssl/tls1.h b/ssl/tls1.h index 2683c15..1ab9b4d 100755 --- a/ssl/tls1.h +++ b/ssl/tls1.h @@ -75,8 +75,14 @@ extern "C" { #define IS_SET_SSL_FLAG(A) (ssl->flag & A) #define MAX_KEY_BYTE_SIZE 512 /* for a 4096 bit key */ +/* On send, will send another SSL fragment if plaintext exceeds RT_MAX_PLAIN_LENGTH */ +#ifndef RT_MAX_PLAIN_LENGTH #define RT_MAX_PLAIN_LENGTH 16384 +#endif +/* Total receive buffer is RT_MAX_PLAIN_LENGTH + RT_EXTRA */ +#ifndef RT_EXTRA #define RT_EXTRA 1024 +#endif #define BM_RECORD_OFFSET 5 #if 0 //def CONFIG_SSL_SKELETON_MODE