Skip to content

Commit

Permalink
tls1.h: Allow to override RT_MAX_PLAIN_LENGTH and RT_EXTRA.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Apr 4, 2016
1 parent 6166167 commit 532d230
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ssl/tls1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 532d230

Please sign in to comment.