From 9cb75ef5f8144ca9a598bdb26187221b862ea667 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 17 Dec 2024 11:17:23 +0100 Subject: [PATCH] fixup! DTLS: Add server side stateless and CID QoL API --- src/dtls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dtls.c b/src/dtls.c index d31e92f01..ae278046b 100644 --- a/src/dtls.c +++ b/src/dtls.c @@ -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 */