summaryrefslogtreecommitdiffstats
path: root/ssl_backend.h
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-27 17:44:40 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-21 10:53:31 +0200
commitd7efe640112f94cb20ce52a6adf0bd1b4d5f4ec2 (patch)
treea03e054546318ced64c795b03975f4e1f0ade283 /ssl_backend.h
parent67d8a0d4e9bcca4299158c80f184c7dea57a9eab (diff)
downloadopenvpn-d7efe640112f94cb20ce52a6adf0bd1b4d5f4ec2.tar.gz
openvpn-d7efe640112f94cb20ce52a6adf0bd1b4d5f4ec2.tar.xz
openvpn-d7efe640112f94cb20ce52a6adf0bd1b4d5f4ec2.zip
Refactored initalisation of key_states
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: James Yonan <james@openvpn.net> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl_backend.h')
-rw-r--r--ssl_backend.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/ssl_backend.h b/ssl_backend.h
index 64d9336..5c96daf 100644
--- a/ssl_backend.h
+++ b/ssl_backend.h
@@ -269,6 +269,24 @@ void tls_ctx_load_extra_certs (struct tls_root_ctx *ctx, const char *extra_certs
#endif
);
+/* **************************************
+ *
+ * Key-state specific functions
+ *
+ ***************************************/
+
+/**
+ * Initialise the SSL channel part of the given key state. Settings will be
+ * loaded from a previously initialised TLS context.
+ *
+ * @param ks_ssl The SSL channel's state info to initialise
+ * @param ssl_ctx The TLS context to use when initialising the channel.
+ * @param is_server Initialise a server?
+ * @param session The session associated with the given key_state
+ */
+void key_state_ssl_init(struct key_state_ssl *ks_ssl,
+ const struct tls_root_ctx *ssl_ctx, bool is_server, void *session);
+
/*
* Show the TLS ciphers that are available for us to use in the OpenSSL
* library.