[sr-dev] git:master:a82e5657: auth: Add flag for not invalidating nc on auth failure

Jon Bergli Heier jon.bergli.heier at zisson.com
Tue Jun 14 09:49:20 CEST 2022


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

Author: Jon Bergli Heier <jon.bergli.heier at zisson.com>
Committer: Jon Bergli Heier <jon.bergli.heier at zisson.com>
Date: 2022-06-03T16:30:53+02:00

auth: Add flag for not invalidating nc on auth failure

If flag 32 is set then we skip updating nc in pre_auth. On success we
call check_nonce once more to do the update. This can be used to chain
calls to eg. pv_auth_check to authenticate against multiple passwords.

---

Modified: src/modules/auth/api.c
Modified: src/modules/auth/api.h
Modified: src/modules/auth/auth_mod.c
Modified: src/modules/auth/doc/auth_functions.xml
Modified: src/modules/auth/nc.c
Modified: src/modules/auth/nc.h
Modified: src/modules/auth/nonce.c
Modified: src/modules/auth/nonce.h

---

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




More information about the sr-dev mailing list