aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/ikev2_priv.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-07-06 14:52:25 +0000
committerBenoƮt Ganne <bganne@cisco.com>2020-07-07 08:18:57 +0000
commit190983de619e340a148cff8b1b1d8c9e0cd8c95a (patch)
treede24a96080ee53bd327b2eb0ccd5c48a379d5d49 /src/plugins/ikev2/ikev2_priv.h
parent742000af2043ab2f9b18f5a062491fe1ab66573e (diff)
ikev2: per thread usage of openssl context
Type: refactor Change-Id: I04af90b4d86c00092ce1732aeb3c0517af1808e0 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2_priv.h')
-rw-r--r--src/plugins/ikev2/ikev2_priv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/ikev2/ikev2_priv.h b/src/plugins/ikev2/ikev2_priv.h
index 44ef6eb6ce1..b018a6433e9 100644
--- a/src/plugins/ikev2/ikev2_priv.h
+++ b/src/plugins/ikev2/ikev2_priv.h
@@ -453,6 +453,13 @@ typedef struct
/* hash */
uword *sa_by_rspi;
+
+ EVP_CIPHER_CTX *evp_ctx;
+ HMAC_CTX *hmac_ctx;
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ HMAC_CTX _hmac_ctx;
+ EVP_CIPHER_CTX _evp_ctx;
+#endif
} ikev2_main_per_thread_data_t;
typedef struct