Searched refs:target_tls (Results 1 – 1 of 1) sorted by relevance
498 struct tls_context *target_tls; in tls_clone() local500 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()