diff options
author | beck <> | 2015-09-12 21:00:38 +0000 |
---|---|---|
committer | beck <> | 2015-09-12 21:00:38 +0000 |
commit | 597a9dc18b943498a3f42065e756e1b0a648987c (patch) | |
tree | 926c057595ea50242eb49f4f725d0bf1a0488e65 /src/lib/libtls/tls.h | |
parent | 5295709b8306b98ea97e2540c0e4dad875421ebe (diff) | |
download | openbsd-597a9dc18b943498a3f42065e756e1b0a648987c.tar.gz openbsd-597a9dc18b943498a3f42065e756e1b0a648987c.tar.bz2 openbsd-597a9dc18b943498a3f42065e756e1b0a648987c.zip |
Move connection info into it's own private structure allocated and filled in
at handshake time. change accessors to return const char * to remove need
for caller to free memory.
ok jsing@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r-- | src/lib/libtls/tls.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 1a6cb47544..2f91ea68ba 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.21 2015/09/12 16:46:43 jsing Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.22 2015/09/12 21:00:38 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -102,9 +102,9 @@ int tls_close(struct tls *_ctx); | |||
102 | int tls_peer_cert_provided(struct tls *ctx); | 102 | int tls_peer_cert_provided(struct tls *ctx); |
103 | int tls_peer_cert_contains_name(struct tls *ctx, const char *name); | 103 | int tls_peer_cert_contains_name(struct tls *ctx, const char *name); |
104 | 104 | ||
105 | int tls_peer_cert_hash(struct tls *_ctx, char **_hash); | 105 | const char * tls_peer_cert_hash(struct tls *_ctx); |
106 | int tls_peer_cert_issuer(struct tls *ctx, char **name); | 106 | const char * tls_peer_cert_issuer(struct tls *ctx); |
107 | int tls_peer_cert_subject(struct tls *ctx, char **subject); | 107 | const char * tls_peer_cert_subject(struct tls *ctx); |
108 | 108 | ||
109 | uint8_t *tls_load_file(const char *_file, size_t *_len, char *_password); | 109 | uint8_t *tls_load_file(const char *_file, size_t *_len, char *_password); |
110 | 110 | ||