Module: sip-router
Branch: master
Commit: 01a0bfd830a4efb5e2f8d26fbaf80297eb5a1ba3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=01a0bfd…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Aug 22 11:45:38 2011 +0200
auth_radius(s): use the update pre_auth
Handle the new pre_auth returns.
---
modules_s/auth_radius/authorize.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/modules_s/auth_radius/authorize.c b/modules_s/auth_radius/authorize.c
index 45809c7..0027e3c 100644
--- a/modules_s/auth_radius/authorize.c
+++ b/modules_s/auth_radius/authorize.c
@@ -173,6 +173,17 @@ static inline int authenticate(struct sip_msg* msg, str* realm,
#ifdef EXTRA_DEBUG
abort();
#endif
+ case NONCE_REUSED:
+ LM_DBG("nonce reused");
+ ret = AUTH_NONCE_REUSED;
+ goto end;
+ case STALE_NONCE:
+ LM_DBG("stale nonce\n");
+ ret = AUTH_STALE_NONCE;
+ goto end;
+ case NO_CREDENTIALS:
+ LM_DBG("no credentials\n");
+ ret = AUTH_NO_CREDENTIALS;
case ERROR:
case BAD_CREDENTIALS:
ret = -3;