added struct to store extensions

This commit is contained in:
mathewmarcus 2018-06-22 07:18:39 -05:00
parent 83627b7c8f
commit 1a7113a0ec

View file

@ -86,6 +86,7 @@ typedef struct ssl_obj_ {
struct timeval time_last; struct timeval time_last;
ssl_decode_ctx *ssl_ctx; ssl_decode_ctx *ssl_ctx;
ssl_decoder *decoder; ssl_decoder *decoder;
ssl_extensions extensions;
int process_ciphertext; int process_ciphertext;
@ -107,6 +108,10 @@ typedef struct decoder_ {
int (*print) PROTO_LIST((ssl_obj *,int direction,segment *seg,Data *data)); int (*print) PROTO_LIST((ssl_obj *,int direction,segment *seg,Data *data));
} decoder; } decoder;
typedef struct ssl_extensions_ {
int extended_master_secret;
} ssl_extensions;
#define SSL_NO_DATA 1 #define SSL_NO_DATA 1
#define SSL_BAD_CONTENT_TYPE 2 #define SSL_BAD_CONTENT_TYPE 2
#define SSL_BAD_PMS 3 #define SSL_BAD_PMS 3