aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl/tls_openssl.h
diff options
context:
space:
mode:
authorPing Yu <ping.yu@intel.com>2018-08-13 06:20:00 -0400
committerFlorin Coras <florin.coras@gmail.com>2018-08-17 14:48:10 +0000
commitdecda5b466843b3164ba13f248f9e0bb93111782 (patch)
tree3a33e53c4e42e36e2d37209ab954cddad900bc2c /src/plugins/tlsopenssl/tls_openssl.h
parent38b99d06ad00d09f406998e23c1d6cf44e11b86e (diff)
optimize init_server to reduce session overhead
move un-necessary session based operation to listener split orignal openssl ctx to be session based ctx and listen ctx Change-Id: Id6c54f47b0e2171fd8924a45efcd5266ce5402d5 Signed-off-by: Ping Yu <ping.yu@intel.com>
Diffstat (limited to 'src/plugins/tlsopenssl/tls_openssl.h')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.h b/src/plugins/tlsopenssl/tls_openssl.h
index c1a21e57317..a524da74cee 100644
--- a/src/plugins/tlsopenssl/tls_openssl.h
+++ b/src/plugins/tlsopenssl/tls_openssl.h
@@ -29,13 +29,21 @@ typedef struct tls_ctx_openssl_
SSL *ssl;
BIO *rbio;
BIO *wbio;
+} openssl_ctx_t;
+
+typedef struct tls_listen_ctx_opensl_
+{
+ u32 openssl_lctx_index;
+ SSL_CTX *ssl_ctx;
+ SSL *ssl;
X509 *srvcert;
EVP_PKEY *pkey;
-} openssl_ctx_t;
+} openssl_listen_ctx_t;
typedef struct openssl_main_
{
openssl_ctx_t ***ctx_pool;
+ openssl_listen_ctx_t *lctx_pool;
X509_STORE *cert_store;
int engine_init;