internal.c: add runProcessingOneRecord section

DTLSv1.3 needs to do some operation per-record, this commit adds an appropriate
section to ProcessReplyEx.
This commit is contained in:
Marco Oliverio
2022-05-20 09:59:36 +02:00
committed by David Garske
parent 2696c3cdd3
commit 30fb664163

View File

@@ -206,6 +206,7 @@ enum processReply {
verifyEncryptedMessage,
decryptMessage,
verifyMessage,
runProcessingOneRecord,
runProcessingOneMessage
};
@@ -17916,10 +17917,14 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
#endif
}
ssl->options.processReply = runProcessingOneMessage;
ssl->options.processReply = runProcessingOneRecord;
FALL_THROUGH;
/* the record layer is here */
case runProcessingOneRecord:
ssl->options.processReply = runProcessingOneMessage;
FALL_THROUGH;
case runProcessingOneMessage:
/* can't process a message if we have no data. */
if (ssl->buffers.inputBuffer.idx