diff options
author | claudio <> | 2017-08-09 21:27:24 +0000 |
---|---|---|
committer | claudio <> | 2017-08-09 21:27:24 +0000 |
commit | b172f94f665e55aa2da726f07d8a751a8f88aed8 (patch) | |
tree | 3fe6a59e04489e4fff11a15572903b1a13783ae0 /src/lib/libtls/tls_internal.h | |
parent | 728461d1289a45d154875141eb0e954d9a212e34 (diff) | |
download | openbsd-b172f94f665e55aa2da726f07d8a751a8f88aed8.tar.gz openbsd-b172f94f665e55aa2da726f07d8a751a8f88aed8.tar.bz2 openbsd-b172f94f665e55aa2da726f07d8a751a8f88aed8.zip |
Don't use tls_cert_hash for the hashing used by the engine offloading magic
for the TLS privsep code. Instead use X509_pubkey_digest() because only the
key should be used as identifier. Relayd is rewriting certificates and then
the hash would change. Rename the hash is struct tls_keypair to pubkey_hash
to make clear what this hash is about.
With input and OK jsing@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r-- | src/lib/libtls/tls_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index bed9d6e7f4..6079babccf 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.62 2017/07/06 17:12:22 jsing Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.63 2017/08/09 21:27:24 claudio 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> |
@@ -53,7 +53,7 @@ struct tls_keypair { | |||
53 | size_t key_len; | 53 | size_t key_len; |
54 | char *ocsp_staple; | 54 | char *ocsp_staple; |
55 | size_t ocsp_staple_len; | 55 | size_t ocsp_staple_len; |
56 | char *cert_hash; | 56 | char *pubkey_hash; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | #define TLS_MIN_SESSION_TIMEOUT (4) | 59 | #define TLS_MIN_SESSION_TIMEOUT (4) |