5 * Main header file for `become'
10 /*----- Licensing notice --------------------------------------------------*
12 * This file is part of `become'
14 * `Become' is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * `Become' is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with `become'; if not, write to the Free Software Foundation,
26 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 /*----- Revision history --------------------------------------------------*
32 * Revision 1.3 1998/04/23 13:21:28 mdw
33 * Disable trace constants for networking when it's not compiled in.
35 * Revision 1.2 1998/01/12 16:45:42 mdw
38 * Revision 1.1 1997/08/07 09:40:01 mdw
39 * Added. No idea why this wasn't done before.
50 /*----- Required headers --------------------------------------------------*/
52 #include <sys/types.h>
53 #include <sys/socket.h>
54 #include <netinet/in.h>
55 #include <arpa/inet.h>
61 /*----- Tracing levels ----------------------------------------------------*/
63 #define TRACE_SILENT 0u
65 #define TRACE_SETUP 2u
68 # define TRACE_DAEMON 8u
69 # define TRACE_CHECK 16u
70 # define TRACE_CLIENT 32u
71 # define TRACE_RAND 64u
72 # define TRACE_CRYPTO 128u
74 # define TRACE_DAEMON 0
75 # define TRACE_CHECK 0
76 # define TRACE_CLIENT 0
78 # define TRACE_CRYPTO 0
80 #define TRACE_YACC 256u
81 #define TRACE_DEBUG 512u
83 #define TRACE_PRIV ( TRACE_RAND | TRACE_CRYPTO | TRACE_YACC | \
85 #define TRACE_DFL ( TRACE_MISC | TRACE_SETUP | TRACE_CLIENT | \
86 TRACE_DAEMON | TRACE_CHECK )
87 #define TRACE_ALL 0xFFFFu
89 /*----- Type definitions --------------------------------------------------*/
91 /* --- Request buffer (plaintext) --- */
93 #define CMDLEN_MAX 1016 /* Max length of command */
95 typedef struct request
{
96 struct in_addr host
; /* Requesting host */
97 uid_t from
; /* Current user ID */
98 uid_t to
; /* Requested UID */
99 char cmd
[CMDLEN_MAX
]; /* Command string requested */
102 /*----- That's all, folks -------------------------------------------------*/