chiark / gitweb /
gnupg2 (2.1.17-3) unstable; urgency=medium
[gnupg2.git] / common / audit-events.h
1 /* Output of mkstrtable.awk.  DO NOT EDIT.  */
2
3 /* audit.h - Definitions for the audit subsystem
4  *      Copyright (C) 2007 Free Software Foundation, Inc.
5  *
6  * This file is part of GnuPG.
7  *
8  * GnuPG is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * GnuPG is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, see <https://www.gnu.org/licenses/>.
20  */
21
22 /* The purpose of this complex string table is to produce
23    optimal code with a minimum of relocations.  */
24
25 static const char eventstr_msgstr[] = 
26   "null event" "\0"
27   "setup ready" "\0"
28   "agent ready" "\0"
29   "dirmngr ready" "\0"
30   "gpg ready" "\0"
31   "gpgsm ready" "\0"
32   "g13 ready" "\0"
33   "got data" "\0"
34   "detached signature" "\0"
35   "cert only sig" "\0"
36   "data hash algo" "\0"
37   "attr hash algo" "\0"
38   "data cipher algo" "\0"
39   "bad data hash algo" "\0"
40   "bad data cipher algo" "\0"
41   "data hashing" "\0"
42   "read error" "\0"
43   "write error" "\0"
44   "usage error" "\0"
45   "save cert" "\0"
46   "new sig" "\0"
47   "sig name" "\0"
48   "sig status" "\0"
49   "new recp" "\0"
50   "recp name" "\0"
51   "recp result" "\0"
52   "decryption result" "\0"
53   "validate chain" "\0"
54   "chain begin" "\0"
55   "chain cert" "\0"
56   "chain rootcert" "\0"
57   "chain end" "\0"
58   "chain status" "\0"
59   "root trusted" "\0"
60   "crl check" "\0"
61   "got recipients" "\0"
62   "session key" "\0"
63   "encrypted to" "\0"
64   "encryption done" "\0"
65   "signed by" "\0"
66   "signing done";
67
68 static const int eventstr_msgidx[] =
69   {
70     0,
71     11,
72     23,
73     35,
74     49,
75     59,
76     71,
77     81,
78     90,
79     109,
80     123,
81     138,
82     153,
83     170,
84     189,
85     210,
86     223,
87     234,
88     246,
89     258,
90     268,
91     276,
92     285,
93     296,
94     305,
95     315,
96     327,
97     345,
98     360,
99     372,
100     383,
101     398,
102     408,
103     421,
104     434,
105     444,
106     459,
107     471,
108     484,
109     500,
110     510,
111     
112   };
113
114 #define eventstr_msgidxof(code) (0 ? -1 \
115   : ((code >= 0) && (code <= 40)) ? (code - 0) \
116   : -1)