Change ssl3_get_message and the functions using it so that complete 'Handshake' protocol structures are kept in memory, including 'msg_type' and 'length'. (This is in preparation of future support for callbacks that get to peek at handshake messages and the like.)
diff --git a/ssl/ssl.h b/ssl/ssl.h index c1c4674..eab1317 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h
@@ -652,6 +652,7 @@ int rstate; /* where we are when reading */ BUF_MEM *init_buf; /* buffer used during init */ + void *init_msg; /* pointer to handshake message body, set by ssl3_get_message() */ int init_num; /* amount read/written */ int init_off; /* amount read/written */