File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ static void *wp_aes_block_dupctx(wp_AesBlockCtx *src)
121121 return NULL ;
122122 }
123123 XMEMCPY (dst -> tlsmac , src -> tlsmac , src -> tlsmacsize );
124+ dst -> tlsmacAlloced = 1 ;
124125 }
125126 else {
126127 dst -> tlsmac = NULL ;
@@ -493,6 +494,9 @@ static int wp_aes_block_tls_dec_record(wp_AesBlockCtx *ctx,
493494 unsigned char * out , size_t oLen , size_t * outLen )
494495{
495496 int ok = 1 ;
497+
498+ WOLFPROV_ENTER (WP_LOG_COMP_AES , "wp_aes_block_tls_dec_record" );
499+
496500 /*
497501 * TLS 1.2 CBC padding removal and MAC extraction.
498502 * Buffer: [explicit_IV(BS)][payload][MAC(macsize)][padding(pad+1)]
@@ -683,6 +687,8 @@ static int wp_aes_block_tls_dec_record(wp_AesBlockCtx *ctx,
683687 }
684688 }
685689
690+ WOLFPROV_LEAVE (WP_LOG_COMP_AES , __FILE__ ":" WOLFPROV_STRINGIZE (__LINE__ ), ok );
691+
686692 return ok ;
687693}
688694
You can’t perform that action at this time.
0 commit comments