summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
authorjsing <>2018-03-19 16:34:47 +0000
committerjsing <>2018-03-19 16:34:47 +0000
commitc7be23675a7e4a025b9e5a5375aaed6139e653db (patch)
treea3c296b727ec4d2bb5671d0189458d547b6c3865 /src/lib/libtls/tls_internal.h
parentd3d84b6f3e79d4f8b89ef8f2e9d67ecaf8294433 (diff)
downloadopenbsd-c7be23675a7e4a025b9e5a5375aaed6139e653db.tar.gz
openbsd-c7be23675a7e4a025b9e5a5375aaed6139e653db.tar.bz2
openbsd-c7be23675a7e4a025b9e5a5375aaed6139e653db.zip
Automatically handle library initialisation for libtls.
Now that we have tls_init() under pthread_once(), automatically initialise libtls from the entry point functions (tls_config(), tls_client() and tls_server()) - this makes an explicit tls_init() call no longer a requirement. ok bcook@ beck@ inoguchi@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r--src/lib/libtls/tls_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index f8b9e6118e..0d7e2289d3 100644
--- a/src/lib/libtls/tls_internal.h
+++ b/src/lib/libtls/tls_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_internal.h,v 1.70 2018/02/10 04:57:35 jsing Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.71 2018/03/19 16:34:47 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> 3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -219,6 +219,8 @@ int tls_keypair_load_cert(struct tls_keypair *_keypair,
219struct tls_sni_ctx *tls_sni_ctx_new(void); 219struct tls_sni_ctx *tls_sni_ctx_new(void);
220void tls_sni_ctx_free(struct tls_sni_ctx *sni_ctx); 220void tls_sni_ctx_free(struct tls_sni_ctx *sni_ctx);
221 221
222struct tls_config *tls_config_new_internal(void);
223
222struct tls *tls_new(void); 224struct tls *tls_new(void);
223struct tls *tls_server_conn(struct tls *ctx); 225struct tls *tls_server_conn(struct tls *ctx);
224 226