[sr-dev] git:5.2:a9df08d4: auth_xkeys: proper debug log messages on valid match
Henning Westerholt
hw at skalatan.de
Wed Jan 22 23:12:32 CET 2020
Module: kamailio
Branch: 5.2
Commit: a9df08d48297fbaf2690b5035314d8f4093ab315
URL: https://github.com/kamailio/kamailio/commit/a9df08d48297fbaf2690b5035314d8f4093ab315
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-01-22T23:08:46+01:00
auth_xkeys: proper debug log messages on valid match
(cherry picked from commit 39802fd2efad4b710072244f360741312a7164f2)
---
Modified: src/modules/auth_xkeys/auth_xkeys.c
---
Diff: https://github.com/kamailio/kamailio/commit/a9df08d48297fbaf2690b5035314d8f4093ab315.diff
Patch: https://github.com/kamailio/kamailio/commit/a9df08d48297fbaf2690b5035314d8f4093ab315.patch
---
diff --git a/src/modules/auth_xkeys/auth_xkeys.c b/src/modules/auth_xkeys/auth_xkeys.c
index 53b7325dff..6ce8f9d25c 100644
--- a/src/modules/auth_xkeys/auth_xkeys.c
+++ b/src/modules/auth_xkeys/auth_xkeys.c
@@ -352,7 +352,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
}
compute_sha256(xout, (u_int8_t*)xdata.s, xdata.len);
if(strncasecmp(xout, hbody.s, hbody.len)==0) {
- LM_DBG("no digest sha256 matched for key [%.*s:%.*s]\n",
+ LM_DBG("digest sha256 matched for key [%.*s:%.*s]\n",
key->len, key->s, itc->kname.len, itc->kname.s);
return 0;
}
@@ -364,7 +364,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
}
compute_sha384(xout, (u_int8_t*)xdata.s, xdata.len);
if(strncasecmp(xout, hbody.s, hbody.len)==0) {
- LM_DBG("no digest sha384 matched for key [%.*s:%.*s]\n",
+ LM_DBG("digest sha384 matched for key [%.*s:%.*s]\n",
key->len, key->s, itc->kname.len, itc->kname.s);
return 0;
}
@@ -376,7 +376,7 @@ int auth_xkeys_check(sip_msg_t* msg, str *hdr, str *key,
}
compute_sha512(xout, (u_int8_t*)xdata.s, xdata.len);
if(strncasecmp(xout, hbody.s, hbody.len)==0) {
- LM_DBG("no digest sha512 matched for key [%.*s:%.*s]\n",
+ LM_DBG("digest sha512 matched for key [%.*s:%.*s]\n",
key->len, key->s, itc->kname.len, itc->kname.s);
return 0;
}
More information about the sr-dev
mailing list