Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_tls.c498 struct tls_context *target_tls; in tls_clone() local
500 target_tls = tls_alloc(); in tls_clone()
501 if (!target_tls) { in tls_clone()
505 target_tls->tls_version = source_tls->tls_version; in tls_clone()
506 target_tls->type = source_tls->type; in tls_clone()
508 memcpy(&target_tls->options, &source_tls->options, in tls_clone()
509 sizeof(target_tls->options)); in tls_clone()
512 if (target_tls->options.is_hostname_set) { in tls_clone()
513 mbedtls_ssl_set_hostname(&target_tls->ssl, in tls_clone()
518 return target_tls; in tls_clone()