aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_interface.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-02-07 15:34:52 -0800
committerDamjan Marion <dmarion@me.com>2019-02-09 16:17:32 +0000
commit54a51fd5869c3451096e6512a927ff864855a24f (patch)
tree3b86847fbd37bb9be0d6e4b50c4e52e18f0e9cda /src/vnet/session/application_interface.h
parentc9940fc20bf248ba10dad10108415219f0f8360f (diff)
tls: move test certificates to separate header file
Change-Id: I543cb78e268d7a4a7fba590d305351ec79f4e4da Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application_interface.h')
-rw-r--r--src/vnet/session/application_interface.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h
index ac6895ea50b..d7103189703 100644
--- a/src/vnet/session/application_interface.h
+++ b/src/vnet/session/application_interface.h
@@ -19,7 +19,7 @@
#include <vnet/session/session_types.h>
#include <vnet/session/application.h>
#include <vnet/session/transport.h>
-#include <vnet/tls/tls.h>
+#include <vnet/tls/tls_test.h>
typedef struct _vnet_app_attach_args_t
{
@@ -102,6 +102,14 @@ typedef struct _vnet_application_add_tls_key_args_t
u8 *key;
} vnet_app_add_tls_key_args_t;
+typedef enum tls_engine_type_
+{
+ TLS_ENGINE_NONE,
+ TLS_ENGINE_MBEDTLS,
+ TLS_ENGINE_OPENSSL,
+ TLS_N_ENGINES
+} tls_engine_type_t;
+
/* Application attach options */
typedef enum
{
@@ -181,11 +189,6 @@ int vnet_disconnect_session (vnet_disconnect_args_t * a);
clib_error_t *vnet_app_add_tls_cert (vnet_app_add_tls_cert_args_t * a);
clib_error_t *vnet_app_add_tls_key (vnet_app_add_tls_key_args_t * a);
-extern const char test_srv_crt_rsa[];
-extern const u32 test_srv_crt_rsa_len;
-extern const char test_srv_key_rsa[];
-extern const u32 test_srv_key_rsa_len;
-
typedef struct app_session_transport_
{
ip46_address_t rmt_ip; /**< remote ip */