瀏覽代碼

modules/auth_ephemeral: tidied up the headers and tidied up more debug

Peter Dunkley 12 年之前
父節點
當前提交
ec893a2c6c
共有 3 個文件被更改,包括 7 次插入18 次删除
  1. 7 0
      modules/auth_ephemeral/autheph_mod.h
  2. 0 9
      modules/auth_ephemeral/authorize.c
  3. 0 9
      modules/auth_ephemeral/authorize.h

+ 7 - 0
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 */

+ 0 - 9
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);
 }

+ 0 - 9
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);