Module: kamailio
Branch: master
Commit: 8fe772509af34b70a961e21eef99ed19d777ddbc
URL:
https://github.com/kamailio/kamailio/commit/8fe772509af34b70a961e21eef99ed1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-28T10:11:06+02:00
tls: rename the key passowrd callback function
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8fe772509af34b70a961e21eef99ed1…
Patch:
https://github.com/kamailio/kamailio/commit/8fe772509af34b70a961e21eef99ed1…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 810a7e9589a..cb74468b62f 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -1206,7 +1206,7 @@ static int ksr_tls_fix_domain(tls_domain_t *d, tls_domain_t *def)
* @param filename filename
* @return length of password on success, 0 on error
*/
-static int passwd_cb(char *buf, int size, int rwflag, void *filename)
+static int ksr_passwd_ui_cb(char *buf, int size, int rwflag, void *filename)
{
#if OPENSSL_VERSION_NUMBER >= 0x00907000L
UI *ui;
@@ -1323,7 +1323,7 @@ static int load_private_key(tls_domain_t *d)
procs_no = get_max_procs();
for(i = 0; i < procs_no; i++) {
- SSL_CTX_set_default_passwd_cb(d->ctx[i], passwd_cb);
+ SSL_CTX_set_default_passwd_cb(d->ctx[i], ksr_passwd_ui_cb);
SSL_CTX_set_default_passwd_cb_userdata(d->ctx[i], d->pkey_file.s);
for(idx = 0, ret_pwd = 0; idx < 3; idx++) {