summaryrefslogtreecommitdiffstats
path: root/lib/libtls
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-09-12 16:46:43 +0000
committerjsing <jsing@openbsd.org>2015-09-12 16:46:43 +0000
commitb838e8e9b9f950939f4abb06102f448eb9d7816e (patch)
tree5c520106fdeb2a5ff4c353d163b958a112ae5694 /lib/libtls
parentFinish wrapping <signal.h> so that calls to the sigset ops go direct and (diff)
downloadwireguard-openbsd-b838e8e9b9f950939f4abb06102f448eb9d7816e.tar.xz
wireguard-openbsd-b838e8e9b9f950939f4abb06102f448eb9d7816e.zip
Put tls_peer_cert* functions in the same place.
Diffstat (limited to 'lib/libtls')
-rw-r--r--lib/libtls/tls.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libtls/tls.h b/lib/libtls/tls.h
index 3d1682e2b67..1a6cb475445 100644
--- a/lib/libtls/tls.h
+++ b/lib/libtls/tls.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls.h,v 1.20 2015/09/11 12:56:55 beck Exp $ */
+/* $OpenBSD: tls.h,v 1.21 2015/09/12 16:46:43 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -76,11 +76,6 @@ void tls_config_verify(struct tls_config *_config);
void tls_config_verify_client(struct tls_config *_config);
void tls_config_verify_client_optional(struct tls_config *_config);
-int tls_peer_cert_provided(struct tls *ctx);
-int tls_peer_cert_contains_name(struct tls *ctx, const char *name);
-int tls_peer_cert_issuer(struct tls *ctx, char **name);
-int tls_peer_cert_subject(struct tls *ctx, char **subject);
-
void tls_config_clear_keys(struct tls_config *_config);
int tls_config_parse_protocols(uint32_t *_protocols, const char *_protostr);
@@ -104,7 +99,12 @@ ssize_t tls_read(struct tls *_ctx, void *_buf, size_t _buflen);
ssize_t tls_write(struct tls *_ctx, const void *_buf, size_t _buflen);
int tls_close(struct tls *_ctx);
+int tls_peer_cert_provided(struct tls *ctx);
+int tls_peer_cert_contains_name(struct tls *ctx, const char *name);
+
int tls_peer_cert_hash(struct tls *_ctx, char **_hash);
+int tls_peer_cert_issuer(struct tls *ctx, char **name);
+int tls_peer_cert_subject(struct tls *ctx, char **subject);
uint8_t *tls_load_file(const char *_file, size_t *_len, char *_password);