-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdef.h
90 lines (73 loc) · 1.81 KB
/
def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
* $Id$
*
* (c) Copyright 1993-1997 by Mark Grant. All right reserved.
* The author assumes no liability for damages resulting from the
* use of this software, even if the damage results from defects in
* this software. No warranty is expressed or implied.
*
* This software is distributed under the GNU Public Licence, see
* the file COPYING for more details.
*
* - Mark Grant ([email protected]) 29/6/94
*
*/
#ifndef _DEF_H
#define _DEF_H
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#define FL_ASCII 0x01
#define FL_SIGN 0x02
#define FL_ENCRYPT 0x04
#define SIG_NONE 0
#define SIG_GOOD 1
#define SIG_BAD (-1)
#define SIG_NO_KEY (-2)
#define DEC_BAD_PHRASE (-3)
#define DEC_NO_KEY (-4)
#define DEC_BAD_FILE (-5)
#define DEC_NO_PGP (-6)
#define ADD_OLD_KEY 1
#define ADD_OK 0
#define ADD_NO_KEY (-1)
#define ADD_NO_FILE (-2)
#define ADD_NO_TEMP (-3)
#define ADD_BAD_KEY (-4)
#define ADD_NO_PGP (-5)
#define ERR_NONE 0
#define ERR_NO_KEY (-1)
#define ERR_NO_SECRET_KEY (-2)
/* Following will be (-3) */
#define ERR_BAD_PHRASE DEC_BAD_PHRASE
#define ERR_NO_MEM (-4)
#define MORE_SECURE
#define DEFAULT_SECURITY 3
#define MAX_SECURITY 4
#define MIN_SECURITY 1
extern char *pgp_path(void);
#define DEFAULT_CHECK_TIME 300
#ifdef HAVE_MEMCPY
#define bzero(a,b) memset((a),0,(b))
#define bcopy(s,d,l) memcpy((d),(s),(l))
#ifndef HAVE_RANDOM
#define random() rand()
#define srandom(s) srand((s))
#endif
#endif
#ifdef MALLOC_TEST
extern char *my_malloc(), *my_realloc();
#define malloc(c) my_malloc((c),__FILE__,__LINE__)
#define free(x) my_free((x))
#define realloc(p,s) my_realloc((p),(s),__FILE__,__LINE__)
#endif
#define BUFSIZE 1024
#ifndef HAVE_STRSTR
#define strstr mystrstr
extern char *mystrstr (char *, char *);
#endif
#define ATTACH_UUENCODE 1
#define ATTACH_SUN 2
#define ATTACH_MIME 3
#endif /* _DEF_H */