diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-06-27 14:39:23 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-19 22:45:01 +0200 |
commit | d67c3147b006aed24f0c3f6e0e288bf0d6a55973 (patch) | |
tree | 549da8220dc445b9da8860fb14115eb9bffb416d /ssl_backend.h | |
parent | f4047d7420bac6bce5e8862771f0c20d42ba68ed (diff) | |
download | openvpn-d67c3147b006aed24f0c3f6e0e288bf0d6a55973.tar.gz openvpn-d67c3147b006aed24f0c3f6e0e288bf0d6a55973.tar.xz openvpn-d67c3147b006aed24f0c3f6e0e288bf0d6a55973.zip |
Refactored private key loading code
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl_backend.h')
-rw-r--r-- | ssl_backend.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ssl_backend.h b/ssl_backend.h index 0af1469..3beee19 100644 --- a/ssl_backend.h +++ b/ssl_backend.h @@ -193,6 +193,23 @@ void tls_ctx_load_cert_file (struct tls_root_ctx *ctx, const char *cert_file, ); /** + * Load private key file into the given TLS context. + * + * @param ctx TLS context to use + * @param priv_key_file The file name to load the private key from, or + * "[[INLINE]]" in the case of inline files. + * @param priv_key_file_inline A string containing the private key + * + * @return 1 if an error occurred, 0 if parsing was + * successful. + */ +int tls_ctx_load_priv_file (struct tls_root_ctx *ctx, const char *priv_key_file +#if ENABLE_INLINE_FILES + , const char *priv_key_file_inline +#endif + ); + +/** * Show the TLS ciphers that are available for us to use in the OpenSSL * library. */ |