From: Yu Ping Date: Thu, 9 Jan 2020 19:45:06 +0000 (+0800) Subject: tls: enable TLS OpenSSL plugin works in 3.0.0 X-Git-Tag: v20.05-rc0~17 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1c6486f7b8a00a1358d5c8f4ea1d874073bbcd6c;hp=d66848fdd0a597d41b099389afbc6e768ba49f63;p=vpp.git tls: enable TLS OpenSSL plugin works in 3.0.0 Type: fix Change-Id: Id1602981fcc6efed1b0efe79a1fc8177457acdb5 Signed-off-by: Yu Ping --- diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index 3dece6e29fc..70dfc3f256b 100644 --- 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");