Debian Codegraph @

tests/gpg/t-keylist-secret-sig.c

raw symbols SCIP
1 /* t-keylist-secret-sig.c - Regression test.
2 * Copyright (C) 2000 Werner Koch (dd9jn)
3 * Copyright (C) 2001, 2003, 2004 g10 Code GmbH
4 *
5 * This file is part of GPGME.
6 *
7 * GPGME is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * GPGME is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this program; if not, see <https://gnu.org/licenses/>.
19 * SPDX-License-Identifier: LGPL-2.1-or-later
20 */
21
22 /* We need to include config.h so that we know whether we are building
23 with large file system (LFS) support. */
24 #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:412:9`!
25 #include <config.h>cxx . . $ `<file>/conf/config.h`/
26 #endif
27
28 #include <stdlib.h>
29 #include <stdio.h>
30 #include <string.h>
31
32 #include <gpgme.h>cxx . . $ `<file>/src/gpgme.h`/
33
34 #include "t-support.h"cxx . . $ `<file>/tests/gpg/t-support.h`/
35
36
37 structcxx . . $ $anonymous_type_c64b81cea634e1f0_0#
38 {
39 const char *fprcxx . . $ $anonymous_type_c64b81cea634e1f0_0#fpr.;
40 const char *sec_keyidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#sec_keyid.;
41 structcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#
42 {
43 const char *namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.;
44 const char *commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment.;
45 const char *emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email.;
46 structcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#
47 {
48 gpgme_pubkey_algo_tcxx . . $ gpgme_pubkey_algo_t# algocxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#algo.;
49 const char *keyidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#keyid.;
50 const char *namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#name.;
51 const char *commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#comment.;
52 const char *emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#email.;
53 unsigned int sig_classcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#sig_class.;
54 int exportablecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#exportable.;
55 } sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig.;
56 } uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[3];
57 }
58 keyscxx . . $ keys.[] =
59 {
60 { "A0FF4590BB6122EDEF6E3C542D727CC768697734", "6AE6D7EE46A871F8",
61 { { "Alfa Test", "demo key", "[email protected]",
62 { GPGME_PK_DSAcxx . . $ GPGME_PK_DSA., "2D727CC768697734",
63 "Alfa Test", "demo key", "[email protected]", 19, 1 } },
64 { "Alpha Test", "demo key", "[email protected]",
65 { GPGME_PK_DSAcxx . . $ GPGME_PK_DSA., "2D727CC768697734",
66 "Alfa Test", "demo key", "[email protected]", 19, 1 } },
67 { "Alice", "demo key", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
68 { GPGME_PK_DSAcxx . . $ GPGME_PK_DSA., "2D727CC768697734",
69 "Alfa Test", "demo key", "[email protected]", 19, 1 } } } },
70 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! }
71 };
72
73
74 int
75 maincxx . . $ main(b126dc7c1de90089). (void)
76 {
77 gpgme_error_tcxx . . $ gpgme_error_t# err;
78 gpgme_ctx_tcxx . . $ gpgme_ctx_t# ctx;
79 gpgme_key_tcxx . . $ gpgme_key_t# key;
80 gpgme_keylist_result_tcxx . . $ gpgme_keylist_result_t# result;
81 int mode;
82 int i = 0;
83
84 init_gpgmecxx . . $ init_gpgme(d99196b03ed9af9a). (GPGME_PROTOCOL_OpenPGPcxx . . $ GPGME_PROTOCOL_OpenPGP.);
85
86 err = gpgme_newcxx . . $ gpgme_new(8d32f6080b8ab3a2). (&ctx);
87 fail_if_errcxx . . $ `tests/gpg/t-support.h:45:9`! (err);
88
89 mode = gpgme_get_keylist_modecxx . . $ gpgme_get_keylist_mode(5903391d3c4f5d95). (ctx);
90 mode |= GPGME_KEYLIST_MODE_SIGScxx . . $ `src/gpgme.h:384:9`!;
91 err = gpgme_set_keylist_modecxx . . $ gpgme_set_keylist_mode(b32294a48a5496bb). (ctx, mode);
92 fail_if_errcxx . . $ `tests/gpg/t-support.h:45:9`! (err);
93
94 err = gpgme_op_keylist_startcxx . . $ gpgme_op_keylist_start(c17c4b1da42d37b6). (ctx, "Alpha", 1);
95 fail_if_errcxx . . $ `tests/gpg/t-support.h:45:9`! (err);
96
97 while (!(err = gpgme_op_keylist_nextcxx . . $ gpgme_op_keylist_next(d6b5efa1638822de). (ctx, &key)))
98 {
99 if (!keyscxx . . $ keys.[i].fprcxx . . $ $anonymous_type_c64b81cea634e1f0_0#fpr.)
100 {
101 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "More keys returned than expected\n");
102 exitcxx . . $ exit(3ca292c338df9bb3). (1);
103 }
104
105 /* Global key flags. */
106 if (key->revokedcxx . . $ _gpgme_key#revoked.)
107 {
108 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly revoked\n");
109 exitcxx . . $ exit(3ca292c338df9bb3). (1);
110 }
111 if (key->expiredcxx . . $ _gpgme_key#expired.)
112 {
113 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly expired\n");
114 exitcxx . . $ exit(3ca292c338df9bb3). (1);
115 }
116 if (key->disabledcxx . . $ _gpgme_key#disabled.)
117 {
118 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly disabled\n");
119 exitcxx . . $ exit(3ca292c338df9bb3). (1);
120 }
121 if (key->invalidcxx . . $ _gpgme_key#invalid.)
122 {
123 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly invalid\n");
124 exitcxx . . $ exit(3ca292c338df9bb3). (1);
125 }
126 if (!key->can_encryptcxx . . $ _gpgme_key#can_encrypt.)
127 {
128 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly unusable for encryption\n");
129 exitcxx . . $ exit(3ca292c338df9bb3). (1);
130 }
131 if (!key->can_signcxx . . $ _gpgme_key#can_sign.)
132 {
133 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly unusable for signing\n");
134 exitcxx . . $ exit(3ca292c338df9bb3). (1);
135 }
136 if (!key->can_certifycxx . . $ _gpgme_key#can_certify.)
137 {
138 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly unusable for certifications\n");
139 exitcxx . . $ exit(3ca292c338df9bb3). (1);
140 }
141 if (!key->secretcxx . . $ _gpgme_key#secret.)
142 {
143 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly not secret\n");
144 exitcxx . . $ exit(3ca292c338df9bb3). (1);
145 }
146 if (key->protocolcxx . . $ _gpgme_key#protocol. != GPGME_PROTOCOL_OpenPGPcxx . . $ GPGME_PROTOCOL_OpenPGP.)
147 {
148 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key has unexpected protocol: %s\n",
149 gpgme_get_protocol_namecxx . . $ gpgme_get_protocol_name(48d0e3f29f488b6). (key->protocolcxx . . $ _gpgme_key#protocol.));
150 exitcxx . . $ exit(3ca292c338df9bb3). (1);
151 }
152 if (key->issuer_serialcxx . . $ _gpgme_key#issuer_serial.)
153 {
154 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly carries issuer serial: %s\n",
155 key->issuer_serialcxx . . $ _gpgme_key#issuer_serial.);
156 exitcxx . . $ exit(3ca292c338df9bb3). (1);
157 }
158 if (key->issuer_namecxx . . $ _gpgme_key#issuer_name.)
159 {
160 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly carries issuer name: %s\n",
161 key->issuer_namecxx . . $ _gpgme_key#issuer_name.);
162 exitcxx . . $ exit(3ca292c338df9bb3). (1);
163 }
164 if (key->chain_idcxx . . $ _gpgme_key#chain_id.)
165 {
166 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key unexpectedly carries chain ID: %s\n",
167 key->chain_idcxx . . $ _gpgme_key#chain_id.);
168 exitcxx . . $ exit(3ca292c338df9bb3). (1);
169 }
170 if (key->owner_trustcxx . . $ _gpgme_key#owner_trust. != GPGME_VALIDITY_ULTIMATEcxx . . $ GPGME_VALIDITY_ULTIMATE.)
171 {
172 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key has unexpected owner trust: %i\n",
173 key->owner_trustcxx . . $ _gpgme_key#owner_trust.);
174 exitcxx . . $ exit(3ca292c338df9bb3). (1);
175 }
176 if (!key->subkeyscxx . . $ _gpgme_key#subkeys. || !key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next. || key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->nextcxx . . $ _gpgme_subkey#next.)
177 {
178 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key has unexpected number of subkeys\n");
179 exitcxx . . $ exit(3ca292c338df9bb3). (1);
180 }
181
182 /* Primary key. */
183 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->revokedcxx . . $ _gpgme_subkey#revoked.)
184 {
185 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly revoked\n");
186 exitcxx . . $ exit(3ca292c338df9bb3). (1);
187 }
188 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->expiredcxx . . $ _gpgme_subkey#expired.)
189 {
190 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly expired\n");
191 exitcxx . . $ exit(3ca292c338df9bb3). (1);
192 }
193 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->disabledcxx . . $ _gpgme_subkey#disabled.)
194 {
195 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly disabled\n");
196 exitcxx . . $ exit(3ca292c338df9bb3). (1);
197 }
198 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->invalidcxx . . $ _gpgme_subkey#invalid.)
199 {
200 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly invalid\n");
201 exitcxx . . $ exit(3ca292c338df9bb3). (1);
202 }
203 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->can_encryptcxx . . $ _gpgme_subkey#can_encrypt.)
204 {
205 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly usable for encryption\n");
206 exitcxx . . $ exit(3ca292c338df9bb3). (1);
207 }
208 if (!key->subkeyscxx . . $ _gpgme_key#subkeys.->can_signcxx . . $ _gpgme_subkey#can_sign.)
209 {
210 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly unusable for signing\n");
211 exitcxx . . $ exit(3ca292c338df9bb3). (1);
212 }
213 if (!key->subkeyscxx . . $ _gpgme_key#subkeys.->can_certifycxx . . $ _gpgme_subkey#can_certify.)
214 {
215 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly unusable for certifications\n");
216 exitcxx . . $ exit(3ca292c338df9bb3). (1);
217 }
218 if (!key->subkeyscxx . . $ _gpgme_key#subkeys.->secretcxx . . $ _gpgme_subkey#secret.)
219 {
220 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly not secret\n");
221 exitcxx . . $ exit(3ca292c338df9bb3). (1);
222 }
223 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->pubkey_algocxx . . $ _gpgme_subkey#pubkey_algo. != GPGME_PK_DSAcxx . . $ GPGME_PK_DSA.)
224 {
225 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key has unexpected public key algo: %s\n",
226 gpgme_pubkey_algo_namecxx . . $ gpgme_pubkey_algo_name(98fded15b1451a1c). (key->subkeyscxx . . $ _gpgme_key#subkeys.->pubkey_algocxx . . $ _gpgme_subkey#pubkey_algo.));
227 exitcxx . . $ exit(3ca292c338df9bb3). (1);
228 }
229 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->lengthcxx . . $ _gpgme_subkey#length. != 1024)
230 {
231 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key has unexpected length: %i\n",
232 key->subkeyscxx . . $ _gpgme_key#subkeys.->lengthcxx . . $ _gpgme_subkey#length.);
233 exitcxx . . $ exit(3ca292c338df9bb3). (1);
234 }
235 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (key->subkeyscxx . . $ _gpgme_key#subkeys.->keyidcxx . . $ _gpgme_subkey#keyid., &keyscxx . . $ keys.[i].fprcxx . . $ $anonymous_type_c64b81cea634e1f0_0#fpr.[40 - 16]))
236 {
237 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key has unexpected key ID: %s\n",
238 key->subkeyscxx . . $ _gpgme_key#subkeys.->keyidcxx . . $ _gpgme_subkey#keyid.);
239 exitcxx . . $ exit(3ca292c338df9bb3). (1);
240 }
241 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (key->subkeyscxx . . $ _gpgme_key#subkeys.->fprcxx . . $ _gpgme_subkey#fpr., keyscxx . . $ keys.[i].fprcxx . . $ $anonymous_type_c64b81cea634e1f0_0#fpr.))
242 {
243 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key has unexpected fingerprint: %s\n",
244 key->subkeyscxx . . $ _gpgme_key#subkeys.->fprcxx . . $ _gpgme_subkey#fpr.);
245 exitcxx . . $ exit(3ca292c338df9bb3). (1);
246 }
247 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->expirescxx . . $ _gpgme_subkey#expires.)
248 {
249 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Primary key unexpectedly expires: %lu\n",
250 key->subkeyscxx . . $ _gpgme_key#subkeys.->expirescxx . . $ _gpgme_subkey#expires.);
251 exitcxx . . $ exit(3ca292c338df9bb3). (1);
252 }
253
254 /* Secondary key. */
255 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->revokedcxx . . $ _gpgme_subkey#revoked.)
256 {
257 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly revoked\n");
258 exitcxx . . $ exit(3ca292c338df9bb3). (1);
259 }
260 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->expiredcxx . . $ _gpgme_subkey#expired.)
261 {
262 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly expired\n");
263 exitcxx . . $ exit(3ca292c338df9bb3). (1);
264 }
265 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->disabledcxx . . $ _gpgme_subkey#disabled.)
266 {
267 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly disabled\n");
268 exitcxx . . $ exit(3ca292c338df9bb3). (1);
269 }
270 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->invalidcxx . . $ _gpgme_subkey#invalid.)
271 {
272 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly invalid\n");
273 exitcxx . . $ exit(3ca292c338df9bb3). (1);
274 }
275 if (!key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->can_encryptcxx . . $ _gpgme_subkey#can_encrypt.)
276 {
277 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly unusable for encryption\n");
278 exitcxx . . $ exit(3ca292c338df9bb3). (1);
279 }
280 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->can_signcxx . . $ _gpgme_subkey#can_sign.)
281 {
282 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly usable for signing\n");
283 exitcxx . . $ exit(3ca292c338df9bb3). (1);
284 }
285 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->can_certifycxx . . $ _gpgme_subkey#can_certify.)
286 {
287 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly usable for certifications\n");
288 exitcxx . . $ exit(3ca292c338df9bb3). (1);
289 }
290 if (!key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->secretcxx . . $ _gpgme_subkey#secret.)
291 {
292 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly not secret\n");
293 exitcxx . . $ exit(3ca292c338df9bb3). (1);
294 }
295 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->pubkey_algocxx . . $ _gpgme_subkey#pubkey_algo. != GPGME_PK_ELG_Ecxx . . $ GPGME_PK_ELG_E.)
296 {
297 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key has unexpected public key algo: %s\n",
298 gpgme_pubkey_algo_namecxx . . $ gpgme_pubkey_algo_name(98fded15b1451a1c). (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->pubkey_algocxx . . $ _gpgme_subkey#pubkey_algo.));
299 exitcxx . . $ exit(3ca292c338df9bb3). (1);
300 }
301 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->lengthcxx . . $ _gpgme_subkey#length. != 1024)
302 {
303 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key has unexpected length: %i\n",
304 key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->lengthcxx . . $ _gpgme_subkey#length.);
305 exitcxx . . $ exit(3ca292c338df9bb3). (1);
306 }
307 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->keyidcxx . . $ _gpgme_subkey#keyid., keyscxx . . $ keys.[i].sec_keyidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#sec_keyid.))
308 {
309 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key has unexpected key ID: %s\n",
310 key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->keyidcxx . . $ _gpgme_subkey#keyid.);
311 exitcxx . . $ exit(3ca292c338df9bb3). (1);
312 }
313 if (!key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->fprcxx . . $ _gpgme_subkey#fpr.)
314 {
315 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key has unexpectedly no fingerprint\n");
316 exitcxx . . $ exit(3ca292c338df9bb3). (1);
317 }
318 if (key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->expirescxx . . $ _gpgme_subkey#expires.)
319 {
320 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Secondary key unexpectedly expires: %lu\n",
321 key->subkeyscxx . . $ _gpgme_key#subkeys.->nextcxx . . $ _gpgme_subkey#next.->expirescxx . . $ _gpgme_subkey#expires.);
322 exitcxx . . $ exit(3ca292c338df9bb3). (1);
323 }
324
325 /* FIXME: The below test will crash if we want to check for a
326 name, comment or email that doesn't exist in the key's user
327 IDs. */
328 if (!((!keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name. && !key->uidscxx . . $ _gpgme_key#uids.)
329 || (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name. && !keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
330 && key->uidscxx . . $ _gpgme_key#uids. && !key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.)
331 || (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name. && keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
332 && !keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
333 && key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && !key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.)
334 || (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name. && keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
335 && keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
336 && key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.
337 && !key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.)))
338 {
339 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key has unexpected number of user IDs\n");
340 exitcxx . . $ exit(3ca292c338df9bb3). (1);
341 }
342 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->revokedcxx . . $ _gpgme_user_id#revoked.)
343 {
344 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "First user ID unexpectedly revoked\n");
345 exitcxx . . $ exit(3ca292c338df9bb3). (1);
346 }
347 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->invalidcxx . . $ _gpgme_user_id#invalid.)
348 {
349 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "First user ID unexpectedly invalid\n");
350 exitcxx . . $ exit(3ca292c338df9bb3). (1);
351 }
352 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->validitycxx . . $ _gpgme_user_id#validity. != GPGME_VALIDITY_ULTIMATEcxx . . $ GPGME_VALIDITY_ULTIMATE.)
353 {
354 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "First user ID has unexpectedly validity: %i\n",
355 key->uidscxx . . $ _gpgme_key#uids.->validitycxx . . $ _gpgme_user_id#validity.);
356 exitcxx . . $ exit(3ca292c338df9bb3). (1);
357 }
358 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
359 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name., key->uidscxx . . $ _gpgme_key#uids.->namecxx . . $ _gpgme_user_id#name.))
360 {
361 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected name in first user ID: %s\n",
362 key->uidscxx . . $ _gpgme_key#uids.->namecxx . . $ _gpgme_user_id#name.);
363 exitcxx . . $ exit(3ca292c338df9bb3). (1);
364 }
365 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment.
366 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment., key->uidscxx . . $ _gpgme_key#uids.->commentcxx . . $ _gpgme_user_id#comment.))
367 {
368 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected comment in first user ID: %s\n",
369 key->uidscxx . . $ _gpgme_key#uids.->commentcxx . . $ _gpgme_user_id#comment.);
370 exitcxx . . $ exit(3ca292c338df9bb3). (1);
371 }
372 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email.
373 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email., key->uidscxx . . $ _gpgme_key#uids.->emailcxx . . $ _gpgme_user_id#email.))
374 {
375 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected email in first user ID: %s\n",
376 key->uidscxx . . $ _gpgme_key#uids.->emailcxx . . $ _gpgme_user_id#email.);
377 exitcxx . . $ exit(3ca292c338df9bb3). (1);
378 }
379 if (key->uidscxx . . $ _gpgme_key#uids. && (!key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures. || key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->nextcxx . . $ _gpgme_key_sig#next.))
380 {
381 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "First user ID unexpected number of signatures\n");
382 exitcxx . . $ exit(3ca292c338df9bb3). (1);
383 }
384 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..algocxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#algo. != key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->pubkey_algocxx . . $ _gpgme_key_sig#pubkey_algo.)
385 {
386 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected algorithm in first user ID sig: %s\n",
387 gpgme_pubkey_algo_namecxx . . $ gpgme_pubkey_algo_name(98fded15b1451a1c). (key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->pubkey_algocxx . . $ _gpgme_key_sig#pubkey_algo.));
388 exitcxx . . $ exit(3ca292c338df9bb3). (1);
389 }
390 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..keyidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#keyid., key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->keyidcxx . . $ _gpgme_key_sig#keyid.))
391 {
392 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected key ID in first user ID sig: %s\n",
393 key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->keyidcxx . . $ _gpgme_key_sig#keyid.);
394 exitcxx . . $ exit(3ca292c338df9bb3). (1);
395 }
396 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#name., key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->namecxx . . $ _gpgme_key_sig#name.))
397 {
398 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected name in first user ID sig: %s\n",
399 key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->namecxx . . $ _gpgme_key_sig#name.);
400 exitcxx . . $ exit(3ca292c338df9bb3). (1);
401 }
402 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#comment., key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->commentcxx . . $ _gpgme_key_sig#comment.))
403 {
404 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected comment in first user ID sig: %s\n",
405 key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->commentcxx . . $ _gpgme_key_sig#comment.);
406 exitcxx . . $ exit(3ca292c338df9bb3). (1);
407 }
408 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#email., key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->emailcxx . . $ _gpgme_key_sig#email.))
409 {
410 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected email in first user ID sig: %s\n",
411 key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->emailcxx . . $ _gpgme_key_sig#email.);
412 exitcxx . . $ exit(3ca292c338df9bb3). (1);
413 }
414 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..sig_classcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#sig_class. != key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->sig_classcxx . . $ _gpgme_key_sig#sig_class.)
415 {
416 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected class in first user ID sig: %i\n",
417 key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->sig_classcxx . . $ _gpgme_key_sig#sig_class.);
418 exitcxx . . $ exit(3ca292c338df9bb3). (1);
419 }
420 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[0].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..exportablecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#exportable. != key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->exportablecxx . . $ _gpgme_key_sig#exportable.)
421 {
422 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected exportable stat in first user ID sig: %i\n",
423 key->uidscxx . . $ _gpgme_key#uids.->signaturescxx . . $ _gpgme_user_id#signatures.->exportablecxx . . $ _gpgme_key_sig#exportable.);
424 exitcxx . . $ exit(3ca292c338df9bb3). (1);
425 }
426
427 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->revokedcxx . . $ _gpgme_user_id#revoked.)
428 {
429 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Second user ID unexpectedly revoked\n");
430 exitcxx . . $ exit(3ca292c338df9bb3). (1);
431 }
432 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->invalidcxx . . $ _gpgme_user_id#invalid.)
433 {
434 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Second user ID unexpectedly invalid\n");
435 exitcxx . . $ exit(3ca292c338df9bb3). (1);
436 }
437 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.
438 && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->validitycxx . . $ _gpgme_user_id#validity. != GPGME_VALIDITY_ULTIMATEcxx . . $ GPGME_VALIDITY_ULTIMATE.)
439 {
440 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Second user ID has unexpectedly validity: %i\n",
441 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->validitycxx . . $ _gpgme_user_id#validity.);
442 exitcxx . . $ exit(3ca292c338df9bb3). (1);
443 }
444 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
445 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->namecxx . . $ _gpgme_user_id#name.))
446 {
447 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected name in second user ID: %s\n",
448 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->namecxx . . $ _gpgme_user_id#name.);
449 exitcxx . . $ exit(3ca292c338df9bb3). (1);
450 }
451 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment.
452 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->commentcxx . . $ _gpgme_user_id#comment.))
453 {
454 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected comment in second user ID: %s\n",
455 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->commentcxx . . $ _gpgme_user_id#comment.);
456 exitcxx . . $ exit(3ca292c338df9bb3). (1);
457 }
458 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email.
459 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->emailcxx . . $ _gpgme_user_id#email.))
460 {
461 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected email in second user ID: %s\n",
462 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->emailcxx . . $ _gpgme_user_id#email.);
463 exitcxx . . $ exit(3ca292c338df9bb3). (1);
464 }
465 /* Note: There is a bug in gpg 1.3.4 which duplicates a
466 signature after importing the secret key. Thus we disable
467 the second part of the check. */
468 if (key->uidscxx . . $ _gpgme_key#uids. && (!key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures. /*|| key->uids->next->signatures->next*/))
469 {
470 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Second user ID unexpected number of signatures\n");
471 exitcxx . . $ exit(3ca292c338df9bb3). (1);
472 }
473 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..algocxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#algo. != key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->pubkey_algocxx . . $ _gpgme_key_sig#pubkey_algo.)
474 {
475 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected algorithm in second user ID sig: %s\n",
476 gpgme_pubkey_algo_namecxx . . $ gpgme_pubkey_algo_name(98fded15b1451a1c). (key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->pubkey_algocxx . . $ _gpgme_key_sig#pubkey_algo.));
477 exitcxx . . $ exit(3ca292c338df9bb3). (1);
478 }
479 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..keyidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#keyid., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->keyidcxx . . $ _gpgme_key_sig#keyid.))
480 {
481 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected key ID in second user ID sig: %s\n",
482 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->keyidcxx . . $ _gpgme_key_sig#keyid.);
483 exitcxx . . $ exit(3ca292c338df9bb3). (1);
484 }
485 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#name., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->namecxx . . $ _gpgme_key_sig#name.))
486 {
487 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected name in second user ID sig: %s\n",
488 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->namecxx . . $ _gpgme_key_sig#name.);
489 exitcxx . . $ exit(3ca292c338df9bb3). (1);
490 }
491 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#comment., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->commentcxx . . $ _gpgme_key_sig#comment.))
492 {
493 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected comment in second user ID sig: %s\n",
494 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->commentcxx . . $ _gpgme_key_sig#comment.);
495 exitcxx . . $ exit(3ca292c338df9bb3). (1);
496 }
497 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#email., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->emailcxx . . $ _gpgme_key_sig#email.))
498 {
499 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected email in second user ID sig: %s\n",
500 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->emailcxx . . $ _gpgme_key_sig#email.);
501 exitcxx . . $ exit(3ca292c338df9bb3). (1);
502 }
503 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..sig_classcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#sig_class. != key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->sig_classcxx . . $ _gpgme_key_sig#sig_class.)
504 {
505 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected class in second user ID sig: %i\n",
506 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->sig_classcxx . . $ _gpgme_key_sig#sig_class.);
507 exitcxx . . $ exit(3ca292c338df9bb3). (1);
508 }
509 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[1].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..exportablecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#exportable. != key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->exportablecxx . . $ _gpgme_key_sig#exportable.)
510 {
511 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected exportable stat in second user ID sig: %i\n",
512 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->exportablecxx . . $ _gpgme_key_sig#exportable.);
513 exitcxx . . $ exit(3ca292c338df9bb3). (1);
514 }
515
516 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.
517 && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->revokedcxx . . $ _gpgme_user_id#revoked.)
518 {
519 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Third user ID unexpectedly revoked\n");
520 exitcxx . . $ exit(3ca292c338df9bb3). (1);
521 }
522 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.
523 && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->invalidcxx . . $ _gpgme_user_id#invalid.)
524 {
525 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Third user ID unexpectedly invalid\n");
526 exitcxx . . $ exit(3ca292c338df9bb3). (1);
527 }
528 if (key->uidscxx . . $ _gpgme_key#uids. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next. && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.
529 && key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->validitycxx . . $ _gpgme_user_id#validity. != GPGME_VALIDITY_ULTIMATEcxx . . $ GPGME_VALIDITY_ULTIMATE.)
530 {
531 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Third user ID has unexpectedly validity: %i\n",
532 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->validitycxx . . $ _gpgme_user_id#validity.);
533 exitcxx . . $ exit(3ca292c338df9bb3). (1);
534 }
535 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name.
536 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#name., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->namecxx . . $ _gpgme_user_id#name.))
537 {
538 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected name in third user ID: %s\n",
539 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->namecxx . . $ _gpgme_user_id#name.);
540 exitcxx . . $ exit(3ca292c338df9bb3). (1);
541 }
542 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment.
543 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#comment., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->commentcxx . . $ _gpgme_user_id#comment.))
544 {
545 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected comment in third user ID: %s\n",
546 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->commentcxx . . $ _gpgme_user_id#comment.);
547 exitcxx . . $ exit(3ca292c338df9bb3). (1);
548 }
549 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email.
550 && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#email., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->emailcxx . . $ _gpgme_user_id#email.))
551 {
552 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected email in third user ID: %s\n",
553 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->emailcxx . . $ _gpgme_user_id#email.);
554 exitcxx . . $ exit(3ca292c338df9bb3). (1);
555 }
556 if (key->uidscxx . . $ _gpgme_key#uids. && (!key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.
557 || key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->nextcxx . . $ _gpgme_key_sig#next.))
558 {
559 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Third user ID unexpected number of signatures\n");
560 exitcxx . . $ exit(3ca292c338df9bb3). (1);
561 }
562 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..algocxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#algo. != key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->pubkey_algocxx . . $ _gpgme_key_sig#pubkey_algo.)
563 {
564 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected algorithm in third user ID sig: %s\n",
565 gpgme_pubkey_algo_namecxx . . $ gpgme_pubkey_algo_name(98fded15b1451a1c). (key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->pubkey_algocxx . . $ _gpgme_key_sig#pubkey_algo.));
566 exitcxx . . $ exit(3ca292c338df9bb3). (1);
567 }
568 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..keyidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#keyid., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->keyidcxx . . $ _gpgme_key_sig#keyid.))
569 {
570 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected key ID in third user ID sig: %s\n",
571 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->keyidcxx . . $ _gpgme_key_sig#keyid.);
572 exitcxx . . $ exit(3ca292c338df9bb3). (1);
573 }
574 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..namecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#name., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->namecxx . . $ _gpgme_key_sig#name.))
575 {
576 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected name in third user ID sig: %s\n",
577 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->namecxx . . $ _gpgme_key_sig#name.);
578 exitcxx . . $ exit(3ca292c338df9bb3). (1);
579 }
580 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..commentcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#comment., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->commentcxx . . $ _gpgme_key_sig#comment.))
581 {
582 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected comment in third user ID sig: %s\n",
583 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->commentcxx . . $ _gpgme_key_sig#comment.);
584 exitcxx . . $ exit(3ca292c338df9bb3). (1);
585 }
586 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..emailcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#email., key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->emailcxx . . $ _gpgme_key_sig#email.))
587 {
588 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected email in third user ID sig: %s\n",
589 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->emailcxx . . $ _gpgme_key_sig#email.);
590 exitcxx . . $ exit(3ca292c338df9bb3). (1);
591 }
592 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..sig_classcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#sig_class. != key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->sig_classcxx . . $ _gpgme_key_sig#sig_class.)
593 {
594 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected class in third user ID sig: %i\n",
595 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->sig_classcxx . . $ _gpgme_key_sig#sig_class.);
596 exitcxx . . $ exit(3ca292c338df9bb3). (1);
597 }
598 if (keyscxx . . $ keys.[i].uidcxx . . $ $anonymous_type_c64b81cea634e1f0_0#uid.[2].sigcxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#sig..exportablecxx . . $ $anonymous_type_c64b81cea634e1f0_0#$anonymous_type_1#$anonymous_type_2#exportable. != key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->exportablecxx . . $ _gpgme_key_sig#exportable.)
599 {
600 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Unexpected exportable stat in third user ID sig: %i\n",
601 key->uidscxx . . $ _gpgme_key#uids.->nextcxx . . $ _gpgme_user_id#next.->nextcxx . . $ _gpgme_user_id#next.->signaturescxx . . $ _gpgme_user_id#signatures.->exportablecxx . . $ _gpgme_key_sig#exportable.);
602 exitcxx . . $ exit(3ca292c338df9bb3). (1);
603 }
604
605 gpgme_key_unrefcxx . . $ gpgme_key_unref(2a5019450f09d1fb). (key);
606 i++;
607 }
608 if (gpgme_err_codecxx . . $ gpgme_err_code(3a8eb0b02ee1fc1a). (err) != GPG_ERR_EOFcxx . . $ GPG_ERR_EOF.)
609 fail_if_errcxx . . $ `tests/gpg/t-support.h:45:9`! (err);
610 err = gpgme_op_keylist_endcxx . . $ gpgme_op_keylist_end(5903391d3c4f5d95). (ctx);
611 fail_if_errcxx . . $ `tests/gpg/t-support.h:45:9`! (err);
612
613 result = gpgme_op_keylist_resultcxx . . $ gpgme_op_keylist_result(62bb709840c34347). (ctx);
614 if (result->truncatedcxx . . $ _gpgme_op_keylist_result#truncated.)
615 {
616 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Key listing unexpectedly truncated\n");
617 exitcxx . . $ exit(3ca292c338df9bb3). (1);
618 }
619
620 if (keyscxx . . $ keys.[i].fprcxx . . $ $anonymous_type_c64b81cea634e1f0_0#fpr.)
621 {
622 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac). (stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Less keys returned than expected\n");
623 exitcxx . . $ exit(3ca292c338df9bb3). (1);
624 }
625
626 gpgme_releasecxx . . $ gpgme_release(3e794d2fedd29935). (ctx);
627 return 0;
628 }