Skip to content

Commit 9cb75ef

Browse files
committed
fixup! DTLS: Add server side stateless and CID QoL API
1 parent fe9a5fc commit 9cb75ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dtls.c

+2
Original file line numberDiff line numberDiff line change
@@ -1436,12 +1436,14 @@ const unsigned char* wolfSSL_dtls_cid_parse(const unsigned char* msg,
14361436
return msg + ENUM_LEN + VERSION_SZ + OPAQUE16_LEN + OPAQUE16_LEN +
14371437
OPAQUE32_LEN;
14381438
}
1439+
#ifdef WOLFSSL_DTLS13
14391440
else if (Dtls13UnifiedHeaderCIDPresent(msg[0])) {
14401441
/* DTLS 1.3 CID packet */
14411442
if (msgSz < OPAQUE8_LEN + cidSz)
14421443
return NULL;
14431444
return msg + OPAQUE8_LEN;
14441445
}
1446+
#endif
14451447
return NULL;
14461448
}
14471449
#endif /* WOLFSSL_DTLS_CID */

0 commit comments

Comments
 (0)