~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/util/makedepend/def.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XConsortium: def.h,v 1.25 94/04/17 20:10:33 gildea Exp $ */
2
 
/*
3
 
 
4
 
Copyright (c) 1993, 1994  X Consortium
5
 
 
6
 
Permission is hereby granted, free of charge, to any person obtaining a copy
7
 
of this software and associated documentation files (the "Software"), to deal
8
 
in the Software without restriction, including without limitation the rights
9
 
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
 
copies of the Software, and to permit persons to whom the Software is
11
 
furnished to do so, subject to the following conditions:
12
 
 
13
 
The above copyright notice and this permission notice shall be included in
14
 
all copies or substantial portions of the Software.
15
 
 
16
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
19
 
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
 
 
23
 
Except as contained in this notice, the name of the X Consortium shall not be
24
 
used in advertising or otherwise to promote the sale, use or other dealings
25
 
in this Software without prior written authorization from the X Consortium.
26
 
 
27
 
*/
28
 
 
29
 
#include <stdio.h>
30
 
#include <ctype.h>
31
 
#include <sys/types.h>
32
 
#include <fcntl.h>
33
 
#include <sys/stat.h>
34
 
 
35
 
#define MAXDEFINES      512
36
 
#define MAXFILES        512
37
 
#define MAXDIRS         64
38
 
#define SYMTABINC       10      /* must be > 1 for define() to work right */
39
 
#define TRUE            1
40
 
#define FALSE           0
41
 
 
42
 
/* the following must match the directives table in main.c */
43
 
#define IF              0
44
 
#define IFDEF           1
45
 
#define IFNDEF          2
46
 
#define ELSE            3
47
 
#define ENDIF           4
48
 
#define DEFINE          5
49
 
#define UNDEF           6
50
 
#define INCLUDE         7
51
 
#define LINE            8
52
 
#define PRAGMA          9
53
 
#define ERROR           10
54
 
#define IDENT           11
55
 
#define SCCS            12
56
 
#define ELIF            13
57
 
#define EJECT           14
58
 
#define IFFALSE         15     /* pseudo value --- never matched */
59
 
#define ELIFFALSE       16     /* pseudo value --- never matched */
60
 
#define INCLUDEDOT      17     /* pseudo value --- never matched */
61
 
#define IFGUESSFALSE    18     /* pseudo value --- never matched */
62
 
#define ELIFGUESSFALSE  19     /* pseudo value --- never matched */
63
 
 
64
 
#ifdef DEBUG
65
 
extern int      _debugmask;
66
 
/*
67
 
 * debug levels are:
68
 
 * 
69
 
 *     0        show ifn*(def)*,endif
70
 
 *     1        trace defined/!defined
71
 
 *     2        show #include
72
 
 *     3        show #include SYMBOL
73
 
 *     4-6      unused
74
 
 */
75
 
#define debug(level,arg) { if (_debugmask & (1 << level)) warning arg; }
76
 
#else
77
 
#define debug(level,arg) /**/
78
 
#endif /* DEBUG */
79
 
 
80
 
typedef unsigned char boolean;
81
 
 
82
 
struct symtab {
83
 
        char    *s_name;
84
 
        char    *s_value;
85
 
};
86
 
 
87
 
struct  inclist {
88
 
        char            *i_incstring;   /* string from #include line */
89
 
        char            *i_file;        /* path name of the include file */
90
 
        struct inclist  **i_list;       /* list of files it itself includes */
91
 
        int             i_listlen;      /* length of i_list */
92
 
        struct symtab   *i_defs;        /* symbol table for this file */
93
 
        int             i_ndefs;        /* current # defines */
94
 
        int             i_deflen;       /* amount of space in table */
95
 
        boolean         i_defchecked;   /* whether defines have been checked */
96
 
        boolean         i_notified;     /* whether we have revealed includes */
97
 
        boolean         i_marked;       /* whether it's in the makefile */
98
 
        boolean         i_searched;     /* whether we have read this */
99
 
        boolean         i_included_sym; /* whether #include SYMBOL was found */
100
 
                                        /* Can't use i_list if TRUE */
101
 
};
102
 
 
103
 
struct filepointer {
104
 
        char    *f_p;
105
 
        char    *f_base;
106
 
        char    *f_end;
107
 
        long    f_len;
108
 
        long    f_line;
109
 
};
110
 
 
111
 
#ifndef NO_STDLIB_H             /* X_NOT_STDC_ENV */
112
 
#include <stdlib.h>
113
 
#if defined(macII) && !defined(__STDC__)  /* stdlib.h fails to define these */
114
 
char *malloc(), *realloc();
115
 
#endif /* macII */
116
 
#else
117
 
char                    *malloc();
118
 
char                    *realloc();
119
 
#endif
120
 
 
121
 
char                    *copy();
122
 
char                    *base_name();
123
 
char                    *getline();
124
 
struct symtab           *slookup();
125
 
struct symtab           *isdefined();
126
 
struct symtab           *fdefined();
127
 
struct filepointer      *getfile();
128
 
struct inclist          *newinclude();
129
 
struct inclist          *inc_path();
130
 
 
131
 
#ifdef HAVE_STDARG_H    /* NeedVarargsPrototypes */
132
 
extern fatalerr(char *, ...);
133
 
extern warning(char *, ...);
134
 
extern warning1(char *, ...);
135
 
#endif