@@ -660,7 +660,7 @@ static void add_hmac_digest(SSL *ssl, int mode, uint8_t *hmac_header,
660
660
ssl -> cipher_info -> digest_size , hmac_buf );
661
661
662
662
#if 0
663
- print_blob ("record" , ssl -> hmac_tx , SSL_RECORD_SIZE );
663
+ print_blob ("record" , hmac_header , SSL_RECORD_SIZE );
664
664
print_blob ("buf" , buf , buf_len );
665
665
if (mode == SSL_SERVER_WRITE || mode == SSL_CLIENT_WRITE )
666
666
{
@@ -1071,7 +1071,6 @@ int send_packet(SSL *ssl, uint8_t protocol, const uint8_t *in, int length)
1071
1071
/* add the explicit IV for TLS1.1 */
1072
1072
if (ssl -> version >= SSL_PROTOCOL_VERSION1_1 &&
1073
1073
ssl -> cipher_info -> iv_size )
1074
-
1075
1074
{
1076
1075
uint8_t iv_size = ssl -> cipher_info -> iv_size ;
1077
1076
uint8_t * t_buf = alloca (msg_length + iv_size );
@@ -1131,7 +1130,7 @@ static int set_key_block(SSL *ssl, int is_write)
1131
1130
ssl -> dc -> master_secret , ssl -> dc -> key_block ,
1132
1131
ciph_info -> key_block_size );
1133
1132
#if 0
1134
- print_blob ("keyblock" , ssl -> key_block , ciph_info -> key_block_size );
1133
+ print_blob ("keyblock" , ssl -> dc -> key_block , ciph_info -> key_block_size );
1135
1134
#endif
1136
1135
}
1137
1136
0 commit comments