mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-07 12:06:27 +00:00
code cleanup
This commit is contained in:
parent
4765bb22d1
commit
7589ee5eb0
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
SSL_DECODE_UINT16(ssl,"extensions len",0,data,&exlen);
|
||||||
if (exlen) {
|
if (exlen) {
|
||||||
explain(ssl , "extensions\n");
|
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);
|
SSL_DECODE_ENUM(ssl,"compressionMethod",1,compression_method_decoder,P_HL,data,0);
|
||||||
P_(P_HL) printf("\n");
|
P_(P_HL) printf("\n");
|
||||||
|
|
||||||
/* TODO: add code to print Extensions */
|
|
||||||
SSL_DECODE_UINT16(ssl,"extensions len",0,data,&exlen);
|
SSL_DECODE_UINT16(ssl,"extensions len",0,data,&exlen);
|
||||||
if (exlen) {
|
if (exlen) {
|
||||||
explain(ssl , "extensions\n");
|
explain(ssl , "extensions\n");
|
||||||
|
|
|
@ -858,7 +858,9 @@ static int ssl_generate_keying_material(ssl,d)
|
||||||
ABORT(r);
|
ABORT(r);
|
||||||
|
|
||||||
if (ssl->extensions->extended_master_secret) {
|
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;
|
temp.len=0;
|
||||||
if(r=PRF(ssl,d->PMS,"extended master secret",d->session_hash,&temp,
|
if(r=PRF(ssl,d->PMS,"extended master secret",d->session_hash,&temp,
|
||||||
d->MS))
|
d->MS))
|
||||||
|
|
Loading…
Reference in a new issue