-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy patharc-tables.h
46 lines (40 loc) · 1.13 KB
/
arc-tables.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
/*
** Copyright (c) 2005-2008 Sendmail, Inc. and its suppliers.
** All rights reserved.
**
** Copyright (c) 2009, 2010, 2012, 2014-2016, The Trusted Domain Project.
** All rights reserved.
*/
#ifndef _ARC_TABLES_H_
#define _ARC_TABLES_H_
#ifdef __STDC__
# ifndef __P
# define __P(x) x
# endif /* ! __P */
#else /* __STDC__ */
# ifndef __P
# define __P(x) ()
# endif /* ! __P */
#endif /* __STDC__ */
/* structures */
struct nametable
{
const char * tbl_name; /* name */
const int tbl_code; /* code */
};
/* tables */
extern struct nametable *algorithms;
extern struct nametable *archdrnames;
extern struct nametable *canonicalizations;
extern struct nametable *chainstatus;
extern struct nametable *hashes;
extern struct nametable *keyflags;
extern struct nametable *keytypes;
extern struct nametable *settypes;
extern struct nametable *sigerrors;
/* prototypes */
extern const char *arc_code_to_name __P((struct nametable *tbl,
const int code));
extern const int arc_name_to_code __P((struct nametable *tbl,
const char *name));
#endif /* _ARC_TABLES_H_ */