1 |
twoaday |
336 |
/* wptGPGCmds.h - All valid gpg arguments |
2 |
|
|
* Copyright (C) 2000-2006, 2011 Timo Schulz |
3 |
werner |
37 |
* |
4 |
|
|
* This file is part of WinPT. |
5 |
|
|
* |
6 |
|
|
* WinPT is free software; you can redistribute it and/or |
7 |
|
|
* modify it under the terms of the GNU General Public License |
8 |
|
|
* as published by the Free Software Foundation; either version 2 |
9 |
|
|
* of the License, or (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* WinPT is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 |
|
|
* General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
|
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#ifndef WPT_GPG_COMMANDS_H |
22 |
|
|
#define WPT_GPG_COMMANDS_H |
23 |
|
|
|
24 |
|
|
/*************** |
25 |
|
|
* This is the array with all valid gnupg arguments. It it only used |
26 |
twoaday |
234 |
* by the config parser. |
27 |
werner |
37 |
*/ |
28 |
twoaday |
336 |
/* gpg 1.4.11 */ |
29 |
werner |
37 |
static const char *valid_gpg_args[] = { |
30 |
|
|
"sign", |
31 |
|
|
"clearsign", |
32 |
|
|
"detach-sign", |
33 |
|
|
"encrypt", |
34 |
|
|
"encrypt-files", |
35 |
|
|
"symmetric", |
36 |
|
|
"store", |
37 |
|
|
"decrypt", |
38 |
|
|
"decrypt-files", |
39 |
|
|
"verify", |
40 |
|
|
"verify-files", |
41 |
|
|
"list-keys", |
42 |
|
|
"list-public-keys", |
43 |
|
|
"list-sigs", |
44 |
|
|
"check-sigs", |
45 |
|
|
"fingerprint", |
46 |
|
|
"list-secret-keys", |
47 |
|
|
"gen-key", |
48 |
|
|
"delete-keys", |
49 |
|
|
"delete-secret-keys", |
50 |
|
|
"sign-key", |
51 |
|
|
"lsign-key", |
52 |
|
|
"edit-key", |
53 |
|
|
"gen-revoke", |
54 |
|
|
"desig-revoke", |
55 |
|
|
"export", |
56 |
|
|
"send-keys", |
57 |
|
|
"recv-keys", |
58 |
|
|
"search-keys", |
59 |
|
|
"refresh-keys", |
60 |
twoaday |
336 |
"fetch-keys", |
61 |
werner |
37 |
"export-secret-keys", |
62 |
|
|
"export-secret-subkeys", |
63 |
|
|
"import", |
64 |
|
|
"fast-import", |
65 |
|
|
"card-status", |
66 |
|
|
"card-edit", |
67 |
|
|
"change-pin", |
68 |
|
|
"list-config", |
69 |
|
|
"gpgconf-list", |
70 |
twoaday |
336 |
"gpgconf-test", |
71 |
werner |
37 |
"list-packets", |
72 |
|
|
"export-ownertrust", |
73 |
|
|
"import-ownertrust", |
74 |
|
|
"update-trustdb", |
75 |
|
|
"check-trustdb", |
76 |
|
|
"fix-trustdb", |
77 |
|
|
"dearmor", |
78 |
|
|
"dearmour", |
79 |
|
|
"enarmor", |
80 |
|
|
"enarmour", |
81 |
|
|
"print-md", |
82 |
|
|
"gen-prime", |
83 |
|
|
"gen-random", |
84 |
|
|
"armor", |
85 |
|
|
"armour", |
86 |
|
|
"recipient", |
87 |
|
|
"hidden-recipient", |
88 |
|
|
"remote-user", |
89 |
|
|
"default-recipient", |
90 |
|
|
"default-recipient-self", |
91 |
|
|
"no-default-recipient", |
92 |
|
|
"temp-directory", |
93 |
|
|
"exec-path", |
94 |
|
|
"encrypt-to", |
95 |
|
|
"hidden-encrypt-to", |
96 |
|
|
"no-encrypt-to", |
97 |
|
|
"local-user", |
98 |
|
|
"compress-level", |
99 |
|
|
"bzip2-compress-level", |
100 |
|
|
"bzip2-decompress-lowmem", |
101 |
|
|
"textmode", |
102 |
|
|
"no-textmode", |
103 |
|
|
"expert", |
104 |
|
|
"no-expert", |
105 |
twoaday |
234 |
"default-sig-expire", |
106 |
werner |
37 |
"ask-sig-expire", |
107 |
|
|
"no-ask-sig-expire", |
108 |
twoaday |
234 |
"default-cert-expire", |
109 |
werner |
37 |
"ask-cert-expire", |
110 |
|
|
"no-ask-cert-expire", |
111 |
twoaday |
234 |
"default-cert-level", |
112 |
|
|
"min-cert-level", |
113 |
werner |
37 |
"ask-cert-level", |
114 |
|
|
"no-ask-cert-level", |
115 |
|
|
"output", |
116 |
|
|
"max-output", |
117 |
|
|
"verbose", |
118 |
|
|
"quiet", |
119 |
|
|
"no-tty", |
120 |
|
|
"force-v3-sigs", |
121 |
|
|
"no-force-v3-sigs", |
122 |
|
|
"force-v4-certs", |
123 |
|
|
"no-force-v4-certs", |
124 |
|
|
"force-mdc", |
125 |
|
|
"no-force-mdc", |
126 |
|
|
"disable-mdc", |
127 |
|
|
"no-disable-mdc", |
128 |
|
|
"dry-run", |
129 |
|
|
"interactive", |
130 |
|
|
"use-agent", |
131 |
|
|
"no-use-agent", |
132 |
|
|
"gpg-agent-info", |
133 |
|
|
"batch", |
134 |
|
|
"yes", |
135 |
|
|
"no", |
136 |
|
|
"keyring", |
137 |
|
|
"primary-keyring", |
138 |
|
|
"secret-keyring", |
139 |
|
|
"show-keyring", |
140 |
|
|
"default-key", |
141 |
|
|
"keyserver", |
142 |
|
|
"keyserver-options", |
143 |
|
|
"import-options", |
144 |
|
|
"export-options", |
145 |
|
|
"list-options", |
146 |
|
|
"verify-options", |
147 |
|
|
"display-charset", |
148 |
|
|
"charset", |
149 |
|
|
"options", |
150 |
|
|
"debug", |
151 |
|
|
"debug-all", |
152 |
twoaday |
336 |
"debug-level", |
153 |
werner |
37 |
"status-fd", |
154 |
|
|
"status-file", |
155 |
|
|
"attribute-fd", |
156 |
|
|
"attribute-file", |
157 |
twoaday |
234 |
"sk-comments", |
158 |
werner |
37 |
"no-sk-comments", |
159 |
|
|
"completes-needed", |
160 |
|
|
"marginals-needed", |
161 |
|
|
"max-cert-depth", |
162 |
|
|
"trusted-key", |
163 |
|
|
"load-extension", |
164 |
|
|
"gnupg", |
165 |
|
|
"no-pgp2", |
166 |
|
|
"no-pgp6", |
167 |
|
|
"no-pgp7", |
168 |
|
|
"no-pgp8", |
169 |
|
|
"rfc1991", |
170 |
|
|
"rfc2440", |
171 |
twoaday |
336 |
"rfc4880", |
172 |
werner |
37 |
"openpgp", |
173 |
|
|
"pgp2", |
174 |
|
|
"pgp6", |
175 |
|
|
"pgp7", |
176 |
|
|
"pgp8", |
177 |
|
|
"rfc2440-text", |
178 |
|
|
"no-rfc2440-text", |
179 |
|
|
"s2k-mode", |
180 |
|
|
"s2k-digest-algo", |
181 |
|
|
"s2k-cipher-algo", |
182 |
twoaday |
336 |
"s2k-count", |
183 |
werner |
37 |
"simple-sk-checksum", |
184 |
|
|
"cipher-algo", |
185 |
|
|
"digest-algo", |
186 |
|
|
"cert-digest-algo", |
187 |
|
|
"compress-algo", |
188 |
|
|
"compression-algo", |
189 |
|
|
"throw-keyid", |
190 |
|
|
"throw-keyids", |
191 |
|
|
"no-throw-keyid", |
192 |
|
|
"no-throw-keyids", |
193 |
|
|
"show-photos", |
194 |
|
|
"no-show-photos", |
195 |
|
|
"photo-viewer", |
196 |
|
|
"set-notation", |
197 |
|
|
"notation-data", |
198 |
|
|
"sig-notation", |
199 |
|
|
"cert-notation", |
200 |
|
|
"list-ownertrust", |
201 |
|
|
"print-mds", |
202 |
|
|
"list-trustdb", |
203 |
|
|
"pipemode", |
204 |
twoaday |
234 |
"passphrase", |
205 |
werner |
37 |
"passphrase-fd", |
206 |
|
|
"passphrase-file", |
207 |
twoaday |
336 |
"passphrase-repeat", |
208 |
werner |
37 |
"command-fd", |
209 |
|
|
"command-file", |
210 |
|
|
"quick-random", |
211 |
|
|
"no-verbose", |
212 |
|
|
"trustdb-name", |
213 |
|
|
"no-secmem-warning", |
214 |
|
|
"require-secmem", |
215 |
|
|
"no-require-secmem", |
216 |
|
|
"no-permission-warning", |
217 |
|
|
"no-mdc-warning", |
218 |
|
|
"no-armor", |
219 |
|
|
"no-armour", |
220 |
|
|
"no-default-keyring", |
221 |
|
|
"no-greeting", |
222 |
|
|
"no-options", |
223 |
|
|
"homedir", |
224 |
|
|
"no-batch", |
225 |
|
|
"with-colons", |
226 |
|
|
"with-key-data", |
227 |
|
|
"list-key", |
228 |
|
|
"list-sig", |
229 |
|
|
"check-sig", |
230 |
|
|
"skip-verify", |
231 |
|
|
"compress-keys", |
232 |
|
|
"compress-sigs", |
233 |
|
|
"default-cert-check-level", |
234 |
|
|
"always-trust", |
235 |
|
|
"trust-model", |
236 |
|
|
"force-ownertrust", |
237 |
|
|
"run-as-shm-coprocess", |
238 |
|
|
"set-filename", |
239 |
|
|
"for-your-eyes-only", |
240 |
|
|
"no-for-your-eyes-only", |
241 |
|
|
"set-policy-url", |
242 |
|
|
"sig-policy-url", |
243 |
|
|
"cert-policy-url", |
244 |
|
|
"show-policy-url", |
245 |
|
|
"no-show-policy-url", |
246 |
|
|
"sig-keyserver-url", |
247 |
|
|
"show-notation", |
248 |
|
|
"no-show-notation", |
249 |
|
|
"comment", |
250 |
|
|
"default-comment", |
251 |
|
|
"no-comments", |
252 |
|
|
"emit-version", |
253 |
|
|
"no-emit-version", |
254 |
|
|
"no-version", |
255 |
|
|
"not-dash-escaped", |
256 |
|
|
"escape-from-lines", |
257 |
|
|
"no-escape-from-lines", |
258 |
|
|
"lock-once", |
259 |
|
|
"lock-multiple", |
260 |
|
|
"lock-never", |
261 |
|
|
"logger-fd", |
262 |
|
|
"logger-file", |
263 |
|
|
"use-embedded-filename", |
264 |
|
|
"no-use-embedded-filename", |
265 |
|
|
"utf8-strings", |
266 |
|
|
"no-utf8-strings", |
267 |
|
|
"with-fingerprint", |
268 |
|
|
"disable-cipher-algo", |
269 |
|
|
"disable-pubkey-algo", |
270 |
|
|
"allow-non-selfsigned-uid", |
271 |
|
|
"no-allow-non-selfsigned-uid", |
272 |
|
|
"allow-freeform-uid", |
273 |
|
|
"no-allow-freeform-uid", |
274 |
|
|
"no-literal", |
275 |
|
|
"set-filesize", |
276 |
|
|
"honor-http-proxy", |
277 |
|
|
"fast-list-mode", |
278 |
|
|
"fixed-list-mode", |
279 |
|
|
"list-only", |
280 |
|
|
"ignore-time-conflict", |
281 |
|
|
"ignore-valid-from", |
282 |
|
|
"ignore-crc-error", |
283 |
|
|
"ignore-mdc-error", |
284 |
|
|
"show-session-key", |
285 |
|
|
"override-session-key", |
286 |
|
|
"no-random-seed-file", |
287 |
|
|
"auto-key-retrieve", |
288 |
|
|
"no-auto-key-retrieve", |
289 |
|
|
"no-sig-cache", |
290 |
|
|
"no-sig-create-check", |
291 |
|
|
"auto-check-trustdb", |
292 |
|
|
"no-auto-check-trustdb", |
293 |
|
|
"merge-only", |
294 |
|
|
"allow-secret-key-import", |
295 |
|
|
"try-all-secrets", |
296 |
|
|
"enable-special-filenames", |
297 |
|
|
"no-expensive-trust-checks", |
298 |
|
|
"delete-secret-and-public-keys", |
299 |
|
|
"rebuild-keydb-caches", |
300 |
|
|
"preserve-permissions", |
301 |
|
|
"default-preference-list", |
302 |
twoaday |
336 |
"default-keyserver-url", |
303 |
werner |
37 |
"personal-cipher-preferences", |
304 |
|
|
"personal-digest-preferences", |
305 |
|
|
"personal-compress-preferences", |
306 |
|
|
"personal-cipher-prefs", |
307 |
|
|
"personal-digest-prefs", |
308 |
|
|
"personal-compress-prefs", |
309 |
|
|
"display", |
310 |
|
|
"ttyname", |
311 |
|
|
"ttytype", |
312 |
|
|
"lc-ctype", |
313 |
|
|
"lc-messages", |
314 |
|
|
"group", |
315 |
|
|
"ungroup", |
316 |
|
|
"no-groups", |
317 |
|
|
"strict", |
318 |
|
|
"no-strict", |
319 |
|
|
"mangle-dos-filenames", |
320 |
|
|
"no-mangle-dos-filenames", |
321 |
|
|
"enable-progress-filter", |
322 |
|
|
"multifile", |
323 |
|
|
"keyid-format", |
324 |
twoaday |
234 |
"exit-on-status-write-error", |
325 |
|
|
"limit-card-insert-tries", |
326 |
werner |
37 |
"reader-port", |
327 |
|
|
"ctapi-driver", |
328 |
|
|
"pcsc-driver", |
329 |
|
|
"disable-ccid", |
330 |
twoaday |
336 |
"debug-ccid-driver", |
331 |
|
|
"allow-multisig-verification", |
332 |
|
|
"enable-dsa2", |
333 |
|
|
"disable-dsa2", |
334 |
|
|
"allow-multiple-messages", |
335 |
|
|
"no-allow-multiple-messages", |
336 |
twoaday |
234 |
"sign-with", |
337 |
|
|
"user", |
338 |
|
|
"require-backsigs", |
339 |
twoaday |
336 |
"require-cross-certification", |
340 |
twoaday |
234 |
"no-require-backsigs", |
341 |
twoaday |
336 |
"no-require-cross-certification", |
342 |
|
|
"auto-key-locate", |
343 |
|
|
"no-auto-key-locate", |
344 |
werner |
37 |
"dump-options", |
345 |
|
|
"help", |
346 |
|
|
"version", |
347 |
|
|
"warranty", |
348 |
|
|
}; |
349 |
|
|
|
350 |
werner |
48 |
#endif /* WPT_GPG_COMMANDS_H_ */ |