diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-08 10:19:32 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-08 10:19:32 +0000 |
commit | ad3ea31d0ace632c67eb58e46dec0caa7d583275 (patch) | |
tree | 78d0b71da970414567687d46bfa345542fd8b093 /lib/libtls/tls_internal.h | |
parent | 80ef9e8331b6bea4fe0ef725e8383b2bf746afad (diff) |
Have tls_keypair_pubkey_hash() call tls_keypair_load_cert() instead of
rolling its own certificate loading. This also means we get better error
reporting on failure.
Diffstat (limited to 'lib/libtls/tls_internal.h')
-rw-r--r-- | lib/libtls/tls_internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libtls/tls_internal.h b/lib/libtls/tls_internal.h index 8a164d2e3a5..eb08d470740 100644 --- a/lib/libtls/tls_internal.h +++ b/lib/libtls/tls_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_internal.h,v 1.67 2018/02/08 08:09:10 jsing Exp $ */ +/* $OpenBSD: tls_internal.h,v 1.68 2018/02/08 10:19:31 jsing Exp $ */ /* * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> @@ -214,7 +214,8 @@ void tls_keypair_clear(struct tls_keypair *_keypair); void tls_keypair_free(struct tls_keypair *_keypair); int tls_keypair_load_cert(struct tls_keypair *_keypair, struct tls_error *_error, X509 **_cert); -int tls_keypair_pubkey_hash(struct tls_keypair *_keypair, char **_hash); +int tls_keypair_pubkey_hash(struct tls_keypair *_keypair, + struct tls_error *_error, char **_hash); struct tls_sni_ctx *tls_sni_ctx_new(void); void tls_sni_ctx_free(struct tls_sni_ctx *sni_ctx); |