Searched refs:own_cid_len (Results 1 – 5 of 5) sorted by relevance
/mbedtls-3.6.0/library/ |
D | ssl_tls.c | 103 size_t own_cid_len) in mbedtls_ssl_set_cid() argument 115 MBEDTLS_SSL_DEBUG_BUF(3, "Own CID", own_cid, own_cid_len); in mbedtls_ssl_set_cid() 117 if (own_cid_len != ssl->conf->cid_len) { in mbedtls_ssl_set_cid() 119 (unsigned) own_cid_len, in mbedtls_ssl_set_cid() 124 memcpy(ssl->own_cid, own_cid, own_cid_len); in mbedtls_ssl_set_cid() 127 ssl->own_cid_len = (uint8_t) own_cid_len; in mbedtls_ssl_set_cid() 135 size_t *own_cid_len) in mbedtls_ssl_get_own_cid() argument 146 if (ssl->own_cid_len == 0 || ssl->negotiate_cid == MBEDTLS_SSL_CID_DISABLED) { in mbedtls_ssl_get_own_cid() 150 if (own_cid_len != NULL) { in mbedtls_ssl_get_own_cid() 151 *own_cid_len = ssl->own_cid_len; in mbedtls_ssl_get_own_cid() [all …]
|
D | ssl_tls12_client.c | 239 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()
|
D | ssl_tls12_server.c | 1707 if (end < p || (size_t) (end - p) < (unsigned) (ssl->own_cid_len + 5)) { in ssl_write_cid_ext() 1721 ext_len = (size_t) ssl->own_cid_len + 1; in ssl_write_cid_ext() 1725 *p++ = (uint8_t) ssl->own_cid_len; in ssl_write_cid_ext() 1726 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext() 1728 *olen = ssl->own_cid_len + 5; in ssl_write_cid_ext()
|
/mbedtls-3.6.0/include/mbedtls/ |
D | ssl.h | 1824 uint8_t MBEDTLS_PRIVATE(own_cid_len); /*!< The length of \c own_cid. */ 2230 size_t own_cid_len); 2264 size_t *own_cid_len);
|
/mbedtls-3.6.0/tests/suites/ |
D | test_suite_ssl.function | 3042 size_t own_cid_len; 3064 &own_cid_len) 3093 &own_cid_len) 3097 TEST_MEMORY_COMPARE(own_cid, own_cid_len, test_cid, own_cid_len); 3105 &own_cid_len)
|