Skip to content

Commit

Permalink
DTLS decryption threaded
Browse files Browse the repository at this point in the history
Add support for decryption in threads for DTLS.
  • Loading branch information
SparkiDev committed Dec 16, 2024
1 parent 9bec6da commit dd3a59c
Show file tree
Hide file tree
Showing 7 changed files with 471 additions and 247 deletions.
5 changes: 1 addition & 4 deletions src/dtls13.c
Original file line number Diff line number Diff line change
Expand Up @@ -2666,9 +2666,6 @@ int DoDtls13Ack(WOLFSSL* ssl, const byte* input, word32 inputSize,
const byte* ackMessage;
w64wrapper epoch, seq;
word16 length;
#ifndef WOLFSSL_RW_THREADED
int ret;
#endif
int i;

if (inputSize < OPAQUE16_LEN)
Expand Down Expand Up @@ -2702,7 +2699,7 @@ int DoDtls13Ack(WOLFSSL* ssl, const byte* input, word32 inputSize,

#ifndef WOLFSSL_RW_THREADED
if (ssl->dtls13WaitKeyUpdateAck) {
ret = DoDtls13KeyUpdateAck(ssl);
int ret = DoDtls13KeyUpdateAck(ssl);
if (ret != 0)
return ret;
}
Expand Down
Loading

0 comments on commit dd3a59c

Please sign in to comment.