summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-03-09 13:05:53 -0800
committerDave Barach <openvpp@barachs.net>2018-03-15 15:04:11 +0000
commit58d36f02b45c5af38b7df81fb7976129cad3e05b (patch)
tree84875ce654928ae2224b8c3a6a4d354f3fd13f7a /src/vnet/session
parent46c1c11ba08512a5e37392de1ddb306b139a5bcf (diff)
tls: add openssl engine
Change-Id: I6c215858d2c9c620787632b570950b15274c0df2 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application.c2
-rw-r--r--src/vnet/session/application.h3
-rw-r--r--src/vnet/session/application_interface.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 12f816bfe3b..14169fab83d 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -305,6 +305,8 @@ application_init (application_t * app, u32 api_client_index, u64 * options,
props->tx_fifo_size = options[APP_OPTIONS_TX_FIFO_SIZE];
if (options[APP_OPTIONS_EVT_QUEUE_SIZE])
props->evt_q_size = options[APP_OPTIONS_EVT_QUEUE_SIZE];
+ if (options[APP_OPTIONS_TLS_ENGINE])
+ app->tls_engine = options[APP_OPTIONS_TLS_ENGINE];
props->segment_type = seg_type;
first_seg_size = options[APP_OPTIONS_SEGMENT_SIZE];
diff --git a/src/vnet/session/application.h b/src/vnet/session/application.h
index 8e5c2de0494..4050cb47bd4 100644
--- a/src/vnet/session/application.h
+++ b/src/vnet/session/application.h
@@ -125,6 +125,9 @@ typedef struct _application
/** PEM encoded key */
u8 *tls_key;
+
+ /** Preferred tls engine */
+ u8 tls_engine;
} application_t;
#define APP_INVALID_INDEX ((u32)~0)
diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h
index deddb648630..f72a4619974 100644
--- a/src/vnet/session/application_interface.h
+++ b/src/vnet/session/application_interface.h
@@ -21,6 +21,7 @@
#include <vnet/session/session.h>
#include <vnet/session/application.h>
#include <vnet/session/transport.h>
+#include <vnet/tls/tls.h>
typedef struct _vnet_app_attach_args_t
{
@@ -124,6 +125,7 @@ typedef enum
APP_OPTIONS_NAMESPACE_SECRET,
APP_OPTIONS_PROXY_TRANSPORT,
APP_OPTIONS_ACCEPT_COOKIE,
+ APP_OPTIONS_TLS_ENGINE,
APP_OPTIONS_N_OPTIONS
} app_attach_options_index_t;