summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Ping <ping.yu@intel.com>2020-01-10 03:45:06 +0800
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 15:28:04 +0000
commitfb5ef861058dc234fcb1b993aae72d1e99d5935d (patch)
tree1d0460eb83a5819ce80a10df56801c6e5093789b /src
parentd07624f14994b2780be006ff5f0f06bef6929900 (diff)
tls: enable TLS OpenSSL plugin works in 3.0.0
Type: fix Change-Id: Id1602981fcc6efed1b0efe79a1fc8177457acdb5 Signed-off-by: Yu Ping <ping.yu@intel.com> (cherry picked from commit 1c6486f7b8a00a1358d5c8f4ea1d874073bbcd6c)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c
index 770d2777a1f..887dee63b5f 100644
--- a/src/plugins/tlsopenssl/tls_openssl.c
+++ b/src/plugins/tlsopenssl/tls_openssl.c
@@ -832,7 +832,12 @@ tls_init_ca_chain (void)
return -1;
}
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
+ rv = X509_STORE_load_file (om->cert_store, tm->ca_cert_path);
+#else
rv = X509_STORE_load_locations (om->cert_store, tm->ca_cert_path, 0);
+#endif
+
if (rv < 0)
{
clib_warning ("failed to load ca certificate");