summaryrefslogtreecommitdiffstats
path: root/ssl_backend.h
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-27 13:03:07 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-19 22:31:46 +0200
commitac3e8d62ba14d4ee376fd3c9f20bccc3e53e7371 (patch)
tree3469ad08d8307770ddcb2ca394f5021c3b39290f /ssl_backend.h
parentdf904551cde7534e3f58809cb810164749fbbc28 (diff)
downloadopenvpn-ac3e8d62ba14d4ee376fd3c9f20bccc3e53e7371.tar.gz
openvpn-ac3e8d62ba14d4ee376fd3c9f20bccc3e53e7371.tar.xz
openvpn-ac3e8d62ba14d4ee376fd3c9f20bccc3e53e7371.zip
Refactored DH paramater loading
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl_backend.h')
-rw-r--r--ssl_backend.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ssl_backend.h b/ssl_backend.h
index dfa7163..d974279 100644
--- a/ssl_backend.h
+++ b/ssl_backend.h
@@ -94,6 +94,21 @@ void tls_ctx_free(struct tls_root_ctx *ctx);
*/
bool tls_ctx_initialised(struct tls_root_ctx *ctx);
+/**
+ * Load Diffie Hellman Parameters, and load them into the library-specific
+ * TLS context.
+ *
+ * @param ctx TLS context to use
+ * @param dh_file The file name to load the parameters from, or
+ * "[[INLINE]]" in the case of inline files.
+ * @param dh_file_inline A string containing the parameters
+ */
+void tls_ctx_load_dh_params(struct tls_root_ctx *ctx, const char *dh_file
+#if ENABLE_INLINE_FILES
+ , const char *dh_file_inline
+#endif /* ENABLE_INLINE_FILES */
+ );
+
/*
* Show the TLS ciphers that are available for us to use in the OpenSSL
* library.