diff options
author | beck <> | 2015-09-11 12:56:55 +0000 |
---|---|---|
committer | beck <> | 2015-09-11 12:56:55 +0000 |
commit | 68048eefb0353c6cb686c092af50ba61fca67874 (patch) | |
tree | 6080d52d99050fc94d1bd00cdb70fd607c96d262 /src/lib/libtls/tls.h | |
parent | 656ef1e2adb75d20a81b8763a2088b2c8e6c3058 (diff) | |
download | openbsd-68048eefb0353c6cb686c092af50ba61fca67874.tar.gz openbsd-68048eefb0353c6cb686c092af50ba61fca67874.tar.bz2 openbsd-68048eefb0353c6cb686c092af50ba61fca67874.zip |
add tls_peer functions for checking names and issuers of peer certificates.
ok jsing@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r-- | src/lib/libtls/tls.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 3cb24f0ee5..3d1682e2b6 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.19 2015/09/11 11:28:01 jsing Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.20 2015/09/11 12:56:55 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -76,6 +76,11 @@ void tls_config_verify(struct tls_config *_config); | |||
76 | void tls_config_verify_client(struct tls_config *_config); | 76 | void tls_config_verify_client(struct tls_config *_config); |
77 | void tls_config_verify_client_optional(struct tls_config *_config); | 77 | void tls_config_verify_client_optional(struct tls_config *_config); |
78 | 78 | ||
79 | int tls_peer_cert_provided(struct tls *ctx); | ||
80 | int tls_peer_cert_contains_name(struct tls *ctx, const char *name); | ||
81 | int tls_peer_cert_issuer(struct tls *ctx, char **name); | ||
82 | int tls_peer_cert_subject(struct tls *ctx, char **subject); | ||
83 | |||
79 | void tls_config_clear_keys(struct tls_config *_config); | 84 | void tls_config_clear_keys(struct tls_config *_config); |
80 | int tls_config_parse_protocols(uint32_t *_protocols, const char *_protostr); | 85 | int tls_config_parse_protocols(uint32_t *_protocols, const char *_protostr); |
81 | 86 | ||