subsys/net/lib/sockets/sockets_tls.c
/* Allocate new TLS context and copy the content from the source context. */
Allocate new TLS context and copy the content from the source context.
Allocate new TLS context and copy the content from the source context .
static struct tls_context *tls_clone(struct tls_context *source_tls)
{
	struct tls_context *target_tls;
	target_tls = tls_alloc();
	if (!target_tls) {
		return NULL;
	}
	target_tls->tls_version = source_tls->tls_version;
	return target_tls;
}
static struct tls_context * tls_clone ( struct tls_context * source_tls ) { struct tls_context * target_tls ; target_tls = tls_alloc ( ) ; if ( ! target_tls ) { return NULL ; } target_tls -> tls_version = source_tls -> tls_version ; return target_tls ; }
Allocate new TLS context and copy the content from the source context.
Allocate new TLS context and copy the content from the source context .