Browse Source

[mod_openssl] use newer openssl 3.0.0 func

replace X509_STORE_load_locations() with X509_STORE_load_file()
master
Glenn Strauss 7 months ago
parent
commit
3d8dcbdd43
  1. 7
      src/mod_openssl.c

7
src/mod_openssl.c

@ -779,7 +779,12 @@ mod_openssl_load_cacerts (const buffer *ssl_ca_file, log_error_st *errh)
static int
mod_openssl_load_cacrls (X509_STORE *store, const buffer *ssl_ca_crl_file, server *srv)
{
if (1 != X509_STORE_load_locations(store, ssl_ca_crl_file->ptr, NULL)) {
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
if (1 != X509_STORE_load_file(store, ssl_ca_crl_file->ptr))
#else
if (1 != X509_STORE_load_locations(store, ssl_ca_crl_file->ptr, NULL))
#endif
{
log_error(srv->errh, __FILE__, __LINE__,
"SSL: %s %s", ERR_error_string(ERR_get_error(), NULL),
ssl_ca_crl_file->ptr);

Loading…
Cancel
Save