fixup! DTLS: Add server side stateless and CID QoL API

This commit is contained in:
Juliusz Sosinowicz
2024-12-17 11:17:23 +01:00
parent fe9a5fcd42
commit 9cb75ef5f8

View File

@@ -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 */