Home
last modified time | relevance | path

Searched refs:own_cid_len (Results 1 – 5 of 5) sorted by relevance

/mbedtls-3.7.0/include/mbedtls/
Dssl.h1924 uint8_t MBEDTLS_PRIVATE(own_cid_len); /*!< The length of \c own_cid. */
2334 size_t own_cid_len);
2368 size_t *own_cid_len);
/mbedtls-3.7.0/library/
Dssl_tls.c104 size_t own_cid_len) in mbedtls_ssl_set_cid() argument
116 MBEDTLS_SSL_DEBUG_BUF(3, "Own CID", own_cid, own_cid_len); in mbedtls_ssl_set_cid()
118 if (own_cid_len != ssl->conf->cid_len) { in mbedtls_ssl_set_cid()
120 (unsigned) own_cid_len, in mbedtls_ssl_set_cid()
125 memcpy(ssl->own_cid, own_cid, own_cid_len); in mbedtls_ssl_set_cid()
128 ssl->own_cid_len = (uint8_t) own_cid_len; in mbedtls_ssl_set_cid()
136 size_t *own_cid_len) in mbedtls_ssl_get_own_cid() argument
147 if (ssl->own_cid_len == 0 || ssl->negotiate_cid == MBEDTLS_SSL_CID_DISABLED) { in mbedtls_ssl_get_own_cid()
151 if (own_cid_len != NULL) { in mbedtls_ssl_get_own_cid()
152 *own_cid_len = ssl->own_cid_len; in mbedtls_ssl_get_own_cid()
[all …]
Dssl_tls12_client.c239 MBEDTLS_SSL_CHK_BUF_PTR(p, end, (unsigned) (ssl->own_cid_len + 5)); in ssl_write_cid_ext()
244 ext_len = (size_t) ssl->own_cid_len + 1; in ssl_write_cid_ext()
248 *p++ = (uint8_t) ssl->own_cid_len; in ssl_write_cid_ext()
249 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext()
251 *olen = ssl->own_cid_len + 5; in ssl_write_cid_ext()
Dssl_tls12_server.c1706 if (end < p || (size_t) (end - p) < (unsigned) (ssl->own_cid_len + 5)) { in ssl_write_cid_ext()
1720 ext_len = (size_t) ssl->own_cid_len + 1; in ssl_write_cid_ext()
1724 *p++ = (uint8_t) ssl->own_cid_len; in ssl_write_cid_ext()
1725 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext()
1727 *olen = ssl->own_cid_len + 5; in ssl_write_cid_ext()
/mbedtls-3.7.0/tests/suites/
Dtest_suite_ssl.function3211 size_t own_cid_len;
3234 &own_cid_len)
3263 &own_cid_len)
3267 TEST_MEMORY_COMPARE(own_cid, own_cid_len, test_cid, own_cid_len);
3275 &own_cid_len)