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)
This commit is contained in:
parent
d07624f149
commit
fb5ef86105
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user