fix defrag member layout, add comments

This commit is contained in:
toddouska
2015-08-26 12:13:07 -07:00
parent f2db01bef2
commit e8c17ed2bb

View File

@ -2066,9 +2066,10 @@ typedef struct Options {
} Options; } Options;
typedef struct Arrays { typedef struct Arrays {
byte* pendingMsg; /* defrag buffer */
word32 preMasterSz; /* differs for DH, actual size */ word32 preMasterSz; /* differs for DH, actual size */
word32 pendingMsgSz; word32 pendingMsgSz; /* defrag buffer size */
word32 pendingMsgOffset; word32 pendingMsgOffset; /* current offset into defrag buffer */
#ifndef NO_PSK #ifndef NO_PSK
word32 psk_keySz; /* acutal size */ word32 psk_keySz; /* acutal size */
char client_identity[MAX_PSK_ID_LEN]; char client_identity[MAX_PSK_ID_LEN];
@ -2085,8 +2086,7 @@ typedef struct Arrays {
byte cookie[MAX_COOKIE_LEN]; byte cookie[MAX_COOKIE_LEN];
byte cookieSz; byte cookieSz;
#endif #endif
byte pendingMsgType; byte pendingMsgType; /* defrag buffer message type */
byte* pendingMsg;
} Arrays; } Arrays;
#ifndef ASN_NAME_MAX #ifndef ASN_NAME_MAX