Module: kamailio
Branch: master
Commit: f35101a9e0f9960880eb2bf83966da90f76496b5
URL:
https://github.com/kamailio/kamailio/commit/f35101a9e0f9960880eb2bf83966da9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-23T12:29:19+01:00
tls: log file name if failure to set the client CA list
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f35101a9e0f9960880eb2bf83966da9…
Patch:
https://github.com/kamailio/kamailio/commit/f35101a9e0f9960880eb2bf83966da9…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 620f8682ea..bfc2e38d3f 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -598,7 +598,10 @@ static int load_ca_list(tls_domain_t* d)
SSL_CTX_set_client_CA_list(d->ctx[i],
SSL_load_client_CA_file(d->ca_file.s));
if (SSL_CTX_get_client_CA_list(d->ctx[i]) == 0) {
- ERR("%s: Error while setting client CA list\n", tls_domain_str(d));
+ ERR("%s: Error while setting client CA list file [%.*s/%d]\n",
+ tls_domain_str(d), (d->ca_file.s)?d->ca_file.len:0,
+ (d->ca_file.s)?d->ca_file.s:"",
+ d->ca_file.len);
TLS_ERR("load_ca_list:");
return -1;
}