diff options
author | reyk <> | 2015-02-07 23:25:37 +0000 |
---|---|---|
committer | reyk <> | 2015-02-07 23:25:37 +0000 |
commit | 66c5af83b4df3fc9df8b20fbc3eb60a6696e84f3 (patch) | |
tree | ab6a1fbb8cc7e259680a1a2f04cba6b09a58b79b /src/lib/libtls/tls.h | |
parent | 7e2dc80f61d80ca43ec37c4500834784e3e22dae (diff) | |
download | openbsd-66c5af83b4df3fc9df8b20fbc3eb60a6696e84f3.tar.gz openbsd-66c5af83b4df3fc9df8b20fbc3eb60a6696e84f3.tar.bz2 openbsd-66c5af83b4df3fc9df8b20fbc3eb60a6696e84f3.zip |
Add tls_load_file() as a helper to load certificates or encrypted keys
into memory. This can be used for tls_config_set_ca_mem(),
tls_config_set_cert_mem() or tls_config_set_key_mem().
With input from jsing@, tedu@ and henning@
OK tedu@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libtls/tls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 20e5b46901..bd1eed559b 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.4 2015/02/07 06:19:26 jsing Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.5 2015/02/07 23:25:37 reyk Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -76,4 +76,6 @@ int tls_read(struct tls *ctx, void *buf, size_t buflen, size_t *outlen); | |||
76 | int tls_write(struct tls *ctx, const void *buf, size_t buflen, size_t *outlen); | 76 | int tls_write(struct tls *ctx, const void *buf, size_t buflen, size_t *outlen); |
77 | int tls_close(struct tls *ctx); | 77 | int tls_close(struct tls *ctx); |
78 | 78 | ||
79 | uint8_t *tls_load_file(const char *file, size_t *len, char *password); | ||
80 | |||
79 | #endif /* HEADER_TLS_H */ | 81 | #endif /* HEADER_TLS_H */ |