Browse code

core, lib, modules: updated include paths for header files

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
... ...
@@ -24,10 +24,10 @@
24 24
 #ifndef AUTH_MOD_H
25 25
 #define AUTH_MOD_H
26 26
 
27
-#include "../../str.h"
27
+#include "../../core/str.h"
28 28
 #include "../../modules/sl/sl.h"
29
-#include "../../parser/msg_parser.h"    /* struct sip_msg */
30
-#include "../../parser/digest/digest.h"
29
+#include "../../core/parser/msg_parser.h"    /* struct sip_msg */
30
+#include "../../core/parser/digest/digest.h"
31 31
 #include "nonce.h" /* auth_extra_checks & AUTH_CHECK flags */
32 32
 #include "rfc2617.h"
33 33
 
Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,53 @@
1
+/*
2
+ * Digest Authentication Module
3
+ *
4
+ * Copyright (C) 2001-2003 FhG Fokus
5
+ *
6
+ * This file is part of Kamailio, a free SIP server.
7
+ *
8
+ * Kamailio is free software; you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation; either version 2 of the License, or
11
+ * (at your option) any later version
12
+ *
13
+ * Kamailio is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program; if not, write to the Free Software
20
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
+ *
22
+ */
23
+
24
+#ifndef AUTH_MOD_H
25
+#define AUTH_MOD_H
26
+
27
+#include "../../str.h"
28
+#include "../../modules/sl/sl.h"
29
+#include "../../parser/msg_parser.h"    /* struct sip_msg */
30
+#include "../../parser/digest/digest.h"
31
+#include "nonce.h" /* auth_extra_checks & AUTH_CHECK flags */
32
+#include "rfc2617.h"
33
+
34
+/*
35
+ * Module parameters variables
36
+ */
37
+extern str secret1;            /* secret phrase used to generate nonce */
38
+extern str secret2;            /* secret phrase used to generate nonce */
39
+extern int nonce_expire;      /* nonce expire interval */
40
+extern int protect_contacts;  /* Enable/disable contact hashing in nonce */
41
+extern sl_api_t sl;
42
+extern avp_ident_t challenge_avpid;
43
+extern str proxy_challenge_header;
44
+extern str www_challenge_header;
45
+extern struct qp auth_qop;
46
+extern str auth_algorithm;
47
+extern int add_authinfo_hdr; /* should an Authentication-Info header be added on 200 OK responses? */
48
+
49
+extern int hash_hex_len;
50
+extern calc_HA1_t calc_HA1;
51
+extern calc_response_t calc_response;
52
+
53
+#endif /* AUTH_MOD_H */