Jelajahi Sumber

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

Peter Dunkley 12 tahun lalu
induk
melakukan
ec893a2c6c

+ 7 - 0
modules/auth_ephemeral/autheph_mod.h

@@ -26,6 +26,13 @@
 #include "../../str.h"
 #include "../../str.h"
 #include "../../modules/auth/api.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;
 extern auth_api_s_t eph_auth_api;
 
 
 #endif /* AUTHEPH_MOD_H */
 #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;
 		return AUTH_ERROR;
 	}
 	}
 
 
-	LM_DBG("realm [%.*s]\n", srealm.len, srealm.s);
-
 	if(_m->REQ_METHOD==METHOD_REGISTER)
 	if(_m->REQ_METHOD==METHOD_REGISTER)
 		return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T,
 		return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T,
 					&_m->first_line.u.request.method);
 					&_m->first_line.u.request.method);
@@ -265,8 +263,6 @@ int autheph_www(struct sip_msg* _m, char* _realm)
 		return AUTH_ERROR;
 		return AUTH_ERROR;
 	}
 	}
 
 
-	LM_DBG("realm [%.*s]\n", srealm.len, srealm.s);
-
 	return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T,
 	return digest_authenticate(_m, &srealm, HDR_AUTHORIZATION_T,
 					&_m->first_line.u.request.method);
 					&_m->first_line.u.request.method);
 }
 }
@@ -311,9 +307,6 @@ int autheph_www2(struct sip_msg* _m, char* _realm, char *_method)
 		return AUTH_ERROR;
 		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);
 	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;
 		return AUTH_ERROR;
 	}
 	}
 
 
-	LM_DBG("realm [%.*s]\n", srealm.len, srealm.s);
-
 	return digest_authenticate(_m, &srealm, HDR_PROXYAUTH_T,
 	return digest_authenticate(_m, &srealm, HDR_PROXYAUTH_T,
 					&_m->first_line.u.request.method);
 					&_m->first_line.u.request.method);
 }
 }

+ 0 - 9
modules/auth_ephemeral/authorize.h

@@ -23,17 +23,8 @@
 #ifndef AUTHORIZE_H
 #ifndef AUTHORIZE_H
 #define AUTHORIZE_H
 #define AUTHORIZE_H
 
 
-#include "../../str.h"
 #include "../../parser/msg_parser.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_check(struct sip_msg* _m, char* _realm);
 int autheph_www(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);
 int autheph_www2(struct sip_msg* _m, char* _realm, char *_method);