1 |
/* This file is part of GNU RADIUS. |
/* This file is part of GNU Radius. |
2 |
Copyright (C) 2000, Sergey Poznyakoff |
Copyright (C) 2000,2001,2002,2003 Sergey Poznyakoff |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
GNU Radius is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
6 |
the Free Software Foundation; either version 2 of the License, or |
the Free Software Foundation; either version 2 of the License, or |
7 |
(at your option) any later version. |
(at your option) any later version. |
8 |
|
|
9 |
This program is distributed in the hope that it will be useful, |
GNU Radius is distributed in the hope that it will be useful, |
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
GNU General Public License for more details. |
GNU General Public License for more details. |
13 |
|
|
14 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
15 |
along with this program; if not, write to the Free Software Foundation, |
along with GNU Radius; if not, write to the Free Software Foundation, |
16 |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
17 |
|
|
18 |
/* debug.c Debugging module. */ |
/* debug.c Debugging module. */ |
19 |
|
|
|
#ifndef lint |
|
|
static char rcsid[] = |
|
|
"$Id$"; |
|
|
#endif |
|
|
|
|
20 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
21 |
# include <config.h> |
# include <config.h> |
22 |
#endif |
#endif |
48 |
}; |
}; |
49 |
|
|
50 |
char * |
char * |
51 |
auth_code_str(code) |
auth_code_str(int code) |
|
int code; |
|
52 |
{ |
{ |
53 |
struct keyword *p; |
struct keyword *p; |
54 |
|
|
74 |
}; |
}; |
75 |
|
|
76 |
char * |
char * |
77 |
auth_code_abbr(code) |
auth_code_abbr(int code) |
|
int code; |
|
78 |
{ |
{ |
79 |
struct keyword *p; |
struct keyword *p; |
80 |
for (p = auth_codes_abbr; p->name; p++) |
for (p = auth_codes_abbr; p->name; p++) |
87 |
|
|
88 |
|
|
89 |
int |
int |
90 |
set_module_debug_level(name, level) |
set_module_debug_level(char *name, int level) |
|
char *name; |
|
|
int level; |
|
91 |
{ |
{ |
92 |
int i; |
int i; |
93 |
int length; |
int length; |
107 |
} |
} |
108 |
|
|
109 |
void |
void |
110 |
set_debug_levels(str) |
set_debug_levels(char *str) |
|
char *str; |
|
111 |
{ |
{ |
112 |
int i; |
int i; |
113 |
char *tok, *p, *save; |
char *tok, *p, *save; |
150 |
|
|
151 |
/*ARGSUSED*/ |
/*ARGSUSED*/ |
152 |
int |
int |
153 |
set_module_debug_level(name, level) |
set_module_debug_level(char *name, int level) |
|
char *name; |
|
|
int level; |
|
154 |
{ |
{ |
155 |
radlog(L_ERR, _("compiled without debugging support")); |
radlog(L_ERR, _("compiled without debugging support")); |
156 |
} |
} |
157 |
|
|
158 |
/*ARGSUSED*/ |
/*ARGSUSED*/ |
159 |
void |
void |
160 |
set_debug_levels(str) |
set_debug_levels(char *str) |
|
char *str; |
|
161 |
{ |
{ |
162 |
radlog(L_ERR, _("compiled without debugging support")); |
radlog(L_ERR, _("compiled without debugging support")); |
163 |
} |
} |