diff options
| author | beck <> | 2017-04-05 03:19:22 +0000 |
|---|---|---|
| committer | beck <> | 2017-04-05 03:19:22 +0000 |
| commit | 9290adf6754a1cc7020fd33160501d9c82e5d0dd (patch) | |
| tree | 3c6a03473ecfe3397dd6444eb474c3ac576ab36d /src/lib/libtls/tls.h | |
| parent | f5eb17185d6269ff2a9ad8980b6ec5a8f508dcdd (diff) | |
| download | openbsd-9290adf6754a1cc7020fd33160501d9c82e5d0dd.tar.gz openbsd-9290adf6754a1cc7020fd33160501d9c82e5d0dd.tar.bz2 openbsd-9290adf6754a1cc7020fd33160501d9c82e5d0dd.zip | |
Add tls_peer_cert_chain_pem - To retreive the peer certificate and chain
as PEM format. This allows for it to be used or examined with tools
external to libtls
bump minor
ok jsing@
Diffstat (limited to 'src/lib/libtls/tls.h')
| -rw-r--r-- | src/lib/libtls/tls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index d9b2972e92..c9da8aa06e 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls.h,v 1.47 2017/01/31 16:18:57 beck Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.48 2017/04/05 03:19:22 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -179,6 +179,7 @@ const char *tls_peer_cert_issuer(struct tls *_ctx); | |||
| 179 | const char *tls_peer_cert_subject(struct tls *_ctx); | 179 | const char *tls_peer_cert_subject(struct tls *_ctx); |
| 180 | time_t tls_peer_cert_notbefore(struct tls *_ctx); | 180 | time_t tls_peer_cert_notbefore(struct tls *_ctx); |
| 181 | time_t tls_peer_cert_notafter(struct tls *_ctx); | 181 | time_t tls_peer_cert_notafter(struct tls *_ctx); |
| 182 | const uint8_t *tls_peer_cert_chain_pem(struct tls *_ctx, size_t *_len); | ||
| 182 | 183 | ||
| 183 | const char *tls_conn_alpn_selected(struct tls *_ctx); | 184 | const char *tls_conn_alpn_selected(struct tls *_ctx); |
| 184 | const char *tls_conn_cipher(struct tls *_ctx); | 185 | const char *tls_conn_cipher(struct tls *_ctx); |
