Module: sip-router Branch: master Commit: ec893a2c6cb5c0fd21207cbf0ffab09f65418df2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ec893a2c...
Author: Peter Dunkley peter.dunkley@crocodile-rcs.com Committer: Peter Dunkley peter.dunkley@crocodile-rcs.com Date: Tue May 28 00:27:37 2013 +0100
modules/auth_ephemeral: tidied up the headers and tidied up more debug
---
modules/auth_ephemeral/autheph_mod.h | 7 +++++++ modules/auth_ephemeral/authorize.c | 9 --------- modules/auth_ephemeral/authorize.h | 9 --------- 3 files changed, 7 insertions(+), 18 deletions(-)
diff --git a/modules/auth_ephemeral/autheph_mod.h b/modules/auth_ephemeral/autheph_mod.h index 31f5d05..da89d59 100644 --- a/modules/auth_ephemeral/autheph_mod.h +++ b/modules/auth_ephemeral/autheph_mod.h @@ -26,6 +26,13 @@ #include "../../str.h" #include "../../modules/auth/api.h"
+struct secret +{ + str secret_key; + struct secret *next; +}; +extern struct secret *secret_list; + extern auth_api_s_t eph_auth_api;
#endif /* AUTHEPH_MOD_H */ diff --git a/modules/auth_ephemeral/authorize.c b/modules/auth_ephemeral/authorize.c index 9d2dd65..788d2af 100644 --- a/modules/auth_ephemeral/authorize.c +++ b/modules/auth_ephemeral/authorize.c @@ -228,8 +228,6 @@ int autheph_check(struct sip_msg* _m, char* _realm) return AUTH_ERROR; }
- LM_DBG("realm [%.*s]\n", srealm.len, srealm.s); - if(_m->REQ_METHOD==METHOD_REGISTER) return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T, &_m->first_line.u.request.method); @@ -265,8 +263,6 @@ int autheph_www(struct sip_msg* _m, char* _realm) return AUTH_ERROR; }
- LM_DBG("realm [%.*s]\n", srealm.len, srealm.s); - return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T, &_m->first_line.u.request.method); } @@ -311,9 +307,6 @@ int autheph_www2(struct sip_msg* _m, char* _realm, char *_method) return AUTH_ERROR; }
- LM_DBG("realm [%.*s] method [%.*s]\n", srealm.len, srealm.s, - smethod.len, smethod.s); - return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T, &smethod); }
@@ -344,8 +337,6 @@ int autheph_proxy(struct sip_msg* _m, char* _realm) return AUTH_ERROR; }
- LM_DBG("realm [%.*s]\n", srealm.len, srealm.s); - return digest_authenticate(_m, &srealm, HDR_PROXYAUTH_T, &_m->first_line.u.request.method); } diff --git a/modules/auth_ephemeral/authorize.h b/modules/auth_ephemeral/authorize.h index 1f2906d..c884f68 100644 --- a/modules/auth_ephemeral/authorize.h +++ b/modules/auth_ephemeral/authorize.h @@ -23,17 +23,8 @@ #ifndef AUTHORIZE_H #define AUTHORIZE_H
-#include "../../str.h" #include "../../parser/msg_parser.h"
-struct secret -{ - str secret_key; - struct secret *next; -}; - -extern struct secret *secret_list; - int autheph_check(struct sip_msg* _m, char* _realm); int autheph_www(struct sip_msg* _m, char* _realm); int autheph_www2(struct sip_msg* _m, char* _realm, char *_method);