Skip to content

Commit

Permalink
fixup! DTLS: Add server side stateless and CID QoL API
Browse files Browse the repository at this point in the history
  • Loading branch information
julek-wolfssl committed Dec 17, 2024
1 parent f43830c commit f95bd20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,12 +1436,14 @@ const unsigned char* wolfSSL_dtls_cid_parse(const unsigned char* msg,
return msg + ENUM_LEN + VERSION_SZ + OPAQUE16_LEN + OPAQUE16_LEN +
OPAQUE32_LEN;
}
#ifdef WOLFSSL_DTLS13
else if (Dtls13UnifiedHeaderCIDPresent(msg[0])) {
/* DTLS 1.3 CID packet */
if (msgSz < OPAQUE8_LEN + cidSz)
return NULL;
return msg + OPAQUE8_LEN;
}
#endif
return NULL;
}
#endif /* WOLFSSL_DTLS_CID */
Expand Down

0 comments on commit f95bd20

Please sign in to comment.