Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d66848f
)
tls: enable TLS OpenSSL plugin works in 3.0.0
77/24277/3
author
Yu Ping
<ping.yu@intel.com>
Thu, 9 Jan 2020 19:45:06 +0000
(
03:45
+0800)
committer
Florin Coras
<florin.coras@gmail.com>
Mon, 13 Jan 2020 08:13:55 +0000
(08:13 +0000)
Type: fix
Change-Id: Id1602981fcc6efed1b0efe79a1fc8177457acdb5
Signed-off-by: Yu Ping <ping.yu@intel.com>
src/plugins/tlsopenssl/tls_openssl.c
patch
|
blob
|
history
diff --git
a/src/plugins/tlsopenssl/tls_openssl.c
b/src/plugins/tlsopenssl/tls_openssl.c
index
3dece6e
..
70dfc3f
100644
(file)
--- a/
src/plugins/tlsopenssl/tls_openssl.c
+++ b/
src/plugins/tlsopenssl/tls_openssl.c
@@
-831,7
+831,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");