diff options
| author | beck <> | 2015-09-11 12:56:55 +0000 |
|---|---|---|
| committer | beck <> | 2015-09-11 12:56:55 +0000 |
| commit | 27e5e00bb80457049b7e7613f43e8f1165402316 (patch) | |
| tree | 6080d52d99050fc94d1bd00cdb70fd607c96d262 /src/lib/libtls/tls.h | |
| parent | eafebfdd3adba0417a72d6cc8a75f367fc2fbbdb (diff) | |
| download | openbsd-27e5e00bb80457049b7e7613f43e8f1165402316.tar.gz openbsd-27e5e00bb80457049b7e7613f43e8f1165402316.tar.bz2 openbsd-27e5e00bb80457049b7e7613f43e8f1165402316.zip | |
add tls_peer functions for checking names and issuers of peer certificates.
ok jsing@
Diffstat (limited to '')
| -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 | ||
