code cleanup

This commit is contained in:
mathewmarcus 2018-06-24 23:43:19 -05:00
parent 4765bb22d1
commit 7589ee5eb0
3 changed files with 5 additions and 5 deletions

View file

@ -231,7 +231,6 @@ static int decode_HandshakeType_ClientHello(ssl,dir,seg,data)
}
}
/* TODO: add code to print Extensions */
SSL_DECODE_UINT16(ssl,"extensions len",0,data,&exlen);
if (exlen) {
explain(ssl , "extensions\n");
@ -292,7 +291,6 @@ static int decode_HandshakeType_ServerHello(ssl,dir,seg,data)
SSL_DECODE_ENUM(ssl,"compressionMethod",1,compression_method_decoder,P_HL,data,0);
P_(P_HL) printf("\n");
/* TODO: add code to print Extensions */
SSL_DECODE_UINT16(ssl,"extensions len",0,data,&exlen);
if (exlen) {
explain(ssl , "extensions\n");

View file

@ -858,7 +858,9 @@ static int ssl_generate_keying_material(ssl,d)
ABORT(r);
if (ssl->extensions->extended_master_secret) {
ssl_generate_session_hash(ssl,d);
if(r=ssl_generate_session_hash(ssl,d))
ABORT(r);
temp.len=0;
if(r=PRF(ssl,d->PMS,"extended master secret",d->session_hash,&temp,
d->MS))