diff options
| author | jsing <> | 2018-04-18 16:29:11 +0000 |
|---|---|---|
| committer | jsing <> | 2018-04-18 16:29:11 +0000 |
| commit | 1f2eb700ae7e3c6771d21629af14f1956a6238a3 (patch) | |
| tree | 44affb5a07039f42624d1d901698b321dff47315 /src/lib/libtls/tls_internal.h | |
| parent | 748fecf73080b1ad39249f3c231e1b61c181d50e (diff) | |
| download | openbsd-1f2eb700ae7e3c6771d21629af14f1956a6238a3.tar.gz openbsd-1f2eb700ae7e3c6771d21629af14f1956a6238a3.tar.bz2 openbsd-1f2eb700ae7e3c6771d21629af14f1956a6238a3.zip | |
Limit tls_config_clear_keys() to only clearing private keys.
This was inadvertently clearing the keypair, which includes the OCSP staple
and pubkey hash - if an application called tls_configure() followed by
tls_config_clear_keys(), this would prevent OCSP staples from working.
ok beck@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libtls/tls_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index 0d7e2289d3..1746a1aabc 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.71 2018/03/19 16:34:47 jsing Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.71.2.1 2018/04/18 16:29:11 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> |
| @@ -199,6 +199,7 @@ int tls_set_mem(char **_dest, size_t *_destlen, const void *_src, | |||
| 199 | int tls_set_string(const char **_dest, const char *_src); | 199 | int tls_set_string(const char **_dest, const char *_src); |
| 200 | 200 | ||
| 201 | struct tls_keypair *tls_keypair_new(void); | 201 | struct tls_keypair *tls_keypair_new(void); |
| 202 | void tls_keypair_clear_key(struct tls_keypair *_keypair); | ||
| 202 | void tls_keypair_clear(struct tls_keypair *_keypair); | 203 | void tls_keypair_clear(struct tls_keypair *_keypair); |
| 203 | void tls_keypair_free(struct tls_keypair *_keypair); | 204 | void tls_keypair_free(struct tls_keypair *_keypair); |
| 204 | int tls_keypair_set_cert_file(struct tls_keypair *_keypair, | 205 | int tls_keypair_set_cert_file(struct tls_keypair *_keypair, |
