[sr-dev] git:master:17bc73c9: tls: switch to long pvar field

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 16 16:49:52 CET 2022


Module: kamailio
Branch: master
Commit: 17bc73c9dc35c0ec551e851bbff32f06ac4c32dd
URL: https://github.com/kamailio/kamailio/commit/17bc73c9dc35c0ec551e851bbff32f06ac4c32dd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-16T16:49:30+01:00

tls: switch to long pvar field

---

Modified: src/modules/tls/tls_select.c

---

Diff:  https://github.com/kamailio/kamailio/commit/17bc73c9dc35c0ec551e851bbff32f06ac4c32dd.diff
Patch: https://github.com/kamailio/kamailio/commit/17bc73c9dc35c0ec551e851bbff32f06ac4c32dd.patch

---

diff --git a/src/modules/tls/tls_select.c b/src/modules/tls/tls_select.c
index 9e597c1d789..0b69815d24a 100644
--- a/src/modules/tls/tls_select.c
+++ b/src/modules/tls/tls_select.c
@@ -237,7 +237,7 @@ static int pv_cipher(sip_msg_t* msg, pv_param_t* param, pv_value_t* res)
 }
 
 
-static int get_bits(str* res, int* i, sip_msg_t* msg) 
+static int get_bits(str* res, long* i, sip_msg_t* msg) 
 {
 	str bits;
 	int b;
@@ -444,7 +444,7 @@ static int pv_cert_version(sip_msg_t* msg, pv_param_t* param, pv_value_t* res)
  * Check whether peer certificate exists and verify the result
  * of certificate verification
  */
-static int check_cert(str* res, int* ires, int local, int err, sip_msg_t* msg)
+static int check_cert(str* res, long* ires, int local, int err, sip_msg_t* msg)
 {
 	static str succ = STR_STATIC_INIT("1");
 	static str fail = STR_STATIC_INIT("0");




More information about the sr-dev mailing list