Lines Matching refs:dtls_cid
206 struct tls_dtls_cid dtls_cid; member
475 tls->options.dtls_cid.cid_len = 0; in tls_alloc()
476 tls->options.dtls_cid.enabled = false; in tls_alloc()
1340 if (context->options.dtls_cid.enabled) { in tls_mbedtls_init()
1343 context->options.dtls_cid.cid_len, in tls_mbedtls_init()
1439 if (context->options.dtls_cid.enabled) { in tls_mbedtls_init()
1441 context->options.dtls_cid.cid, in tls_mbedtls_init()
1442 context->options.dtls_cid.cid_len); in tls_mbedtls_init()
1709 context->options.dtls_cid.enabled = false; in tls_opt_dtls_connection_id_set()
1710 context->options.dtls_cid.cid_len = 0; in tls_opt_dtls_connection_id_set()
1713 context->options.dtls_cid.enabled = true; in tls_opt_dtls_connection_id_set()
1714 context->options.dtls_cid.cid_len = 0; in tls_opt_dtls_connection_id_set()
1717 context->options.dtls_cid.enabled = true; in tls_opt_dtls_connection_id_set()
1718 if (context->options.dtls_cid.cid_len == 0) { in tls_opt_dtls_connection_id_set()
1721 sys_csrand_get(context->options.dtls_cid.cid, in tls_opt_dtls_connection_id_set()
1724 sys_rand_get(context->options.dtls_cid.cid, in tls_opt_dtls_connection_id_set()
1727 context->options.dtls_cid.cid_len = MBEDTLS_SSL_CID_OUT_LEN_MAX; in tls_opt_dtls_connection_id_set()
1753 context->options.dtls_cid.cid_len = optlen; in tls_opt_dtls_connection_id_value_set()
1754 memcpy(context->options.dtls_cid.cid, optval, optlen); in tls_opt_dtls_connection_id_value_set()
1767 if (*optlen < context->options.dtls_cid.cid_len) { in tls_opt_dtls_connection_id_value_get()
1771 *optlen = context->options.dtls_cid.cid_len; in tls_opt_dtls_connection_id_value_get()
1772 memcpy(optval, context->options.dtls_cid.cid, *optlen); in tls_opt_dtls_connection_id_value_get()
1830 have_self_cid = (context->options.dtls_cid.cid_len != 0); in tls_opt_dtls_connection_id_status_get()
1833 if (!context->options.dtls_cid.enabled) { in tls_opt_dtls_connection_id_status_get()