diff options
| author | jsing <> | 2018-03-19 16:34:47 +0000 |
|---|---|---|
| committer | jsing <> | 2018-03-19 16:34:47 +0000 |
| commit | 5fd38b4657cfd0f2e0b0b92fd650c6710e8fbc8b (patch) | |
| tree | a3c296b727ec4d2bb5671d0189458d547b6c3865 /src/lib/libtls/tls_internal.h | |
| parent | 7dfb474cf3fbbf623463a9b51f61e868a92beb97 (diff) | |
| download | openbsd-5fd38b4657cfd0f2e0b0b92fd650c6710e8fbc8b.tar.gz openbsd-5fd38b4657cfd0f2e0b0b92fd650c6710e8fbc8b.tar.bz2 openbsd-5fd38b4657cfd0f2e0b0b92fd650c6710e8fbc8b.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 '')
| -rw-r--r-- | src/lib/libtls/tls_internal.h | 4 |
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, | |||
| 219 | struct tls_sni_ctx *tls_sni_ctx_new(void); | 219 | struct tls_sni_ctx *tls_sni_ctx_new(void); |
| 220 | void tls_sni_ctx_free(struct tls_sni_ctx *sni_ctx); | 220 | void tls_sni_ctx_free(struct tls_sni_ctx *sni_ctx); |
| 221 | 221 | ||
| 222 | struct tls_config *tls_config_new_internal(void); | ||
| 223 | |||
| 222 | struct tls *tls_new(void); | 224 | struct tls *tls_new(void); |
| 223 | struct tls *tls_server_conn(struct tls *ctx); | 225 | struct tls *tls_server_conn(struct tls *ctx); |
| 224 | 226 | ||
