Skip to content

Commit 53eea85

Browse files
committed
Updates per review comments
1 parent 8df1b8b commit 53eea85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wp_aes_block.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)