Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/tls13.c
Original file line number Diff line number Diff line change
Expand Up @@ -14182,6 +14182,13 @@ int wolfSSL_request_certificate(WOLFSSL* ssl)
return NOT_READY_ERROR;
if (!ssl->options.postHandshakeAuth)
return POST_HAND_AUTH_ERROR;
if (ssl->certReqCtx != NULL) {
if (ssl->certReqCtx->len != 1)
return BAD_STATE_E;
/* We support sending up to 255 certificate requests */
if (ssl->certReqCtx->ctx == 255)
return BAD_STATE_E;
Comment thread
julek-wolfssl marked this conversation as resolved.
}
Comment thread
julek-wolfssl marked this conversation as resolved.

certReqCtx = (CertReqCtx*)XMALLOC(sizeof(CertReqCtx), ssl->heap,
DYNAMIC_TYPE_TMP_BUFFER);
Expand Down
Loading