Searched refs:own_cid_len (Results 1 – 5 of 5) sorted by relevance
/mbedtls-3.5.0/include/mbedtls/ |
D | ssl.h | 1819 uint8_t MBEDTLS_PRIVATE(own_cid_len); /*!< The length of \c own_cid. */ 2212 size_t own_cid_len); 2246 size_t *own_cid_len);
|
/mbedtls-3.5.0/library/ |
D | ssl_tls.c | 112 size_t own_cid_len) in mbedtls_ssl_set_cid() argument 124 MBEDTLS_SSL_DEBUG_BUF(3, "Own CID", own_cid, own_cid_len); in mbedtls_ssl_set_cid() 126 if (own_cid_len != ssl->conf->cid_len) { in mbedtls_ssl_set_cid() 128 (unsigned) own_cid_len, in mbedtls_ssl_set_cid() 133 memcpy(ssl->own_cid, own_cid, own_cid_len); in mbedtls_ssl_set_cid() 136 ssl->own_cid_len = (uint8_t) own_cid_len; in mbedtls_ssl_set_cid() 144 size_t *own_cid_len) in mbedtls_ssl_get_own_cid() argument 155 if (ssl->own_cid_len == 0 || ssl->negotiate_cid == MBEDTLS_SSL_CID_DISABLED) { in mbedtls_ssl_get_own_cid() 159 if (own_cid_len != NULL) { in mbedtls_ssl_get_own_cid() 160 *own_cid_len = ssl->own_cid_len; in mbedtls_ssl_get_own_cid() [all …]
|
D | ssl_tls12_client.c | 243 MBEDTLS_SSL_CHK_BUF_PTR(p, end, (unsigned) (ssl->own_cid_len + 5)); in ssl_write_cid_ext() 248 ext_len = (size_t) ssl->own_cid_len + 1; in ssl_write_cid_ext() 252 *p++ = (uint8_t) ssl->own_cid_len; in ssl_write_cid_ext() 253 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext() 255 *olen = ssl->own_cid_len + 5; in ssl_write_cid_ext()
|
D | ssl_tls12_server.c | 1703 if (end < p || (size_t) (end - p) < (unsigned) (ssl->own_cid_len + 5)) { in ssl_write_cid_ext() 1717 ext_len = (size_t) ssl->own_cid_len + 1; in ssl_write_cid_ext() 1721 *p++ = (uint8_t) ssl->own_cid_len; in ssl_write_cid_ext() 1722 memcpy(p, ssl->own_cid, ssl->own_cid_len); in ssl_write_cid_ext() 1724 *olen = ssl->own_cid_len + 5; in ssl_write_cid_ext()
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_ssl.function | 3154 size_t own_cid_len; 3175 &own_cid_len) 3204 &own_cid_len) 3208 ASSERT_COMPARE(own_cid, own_cid_len, test_cid, own_cid_len); 3216 &own_cid_len)
|