1 /* moonshot-webp-parser.c generated by valac 0.34.9, the Vala compiler
2 * generated from moonshot-webp-parser.vala, do not modify */
5 * Copyright (c) 2011-2016, JANET(UK)
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of JANET(UK) nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 #include <glib-object.h>
41 #include <glib/gi18n-lib.h>
42 #include <glib/gstdio.h>
43 #include <libmoonshot.h>
47 #define TYPE_MOONSHOT_LOGGER (moonshot_logger_get_type ())
48 #define MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLogger))
49 #define MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
50 #define IS_MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOONSHOT_LOGGER))
51 #define IS_MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOONSHOT_LOGGER))
52 #define MOONSHOT_LOGGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
54 typedef struct _MoonshotLogger MoonshotLogger;
55 typedef struct _MoonshotLoggerClass MoonshotLoggerClass;
56 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
57 #define _g_free0(var) (var = (g_free (var), NULL))
59 #define WEB_PROVISIONING_TYPE_PARSER (web_provisioning_parser_get_type ())
60 #define WEB_PROVISIONING_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParser))
61 #define WEB_PROVISIONING_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
62 #define WEB_PROVISIONING_IS_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEB_PROVISIONING_TYPE_PARSER))
63 #define WEB_PROVISIONING_IS_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEB_PROVISIONING_TYPE_PARSER))
64 #define WEB_PROVISIONING_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
66 typedef struct _WebProvisioningParser WebProvisioningParser;
67 typedef struct _WebProvisioningParserClass WebProvisioningParserClass;
69 #define TYPE_ID_CARD (id_card_get_type ())
70 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
71 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
72 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
73 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
74 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
76 typedef struct _IdCard IdCard;
77 typedef struct _IdCardClass IdCardClass;
79 #define TYPE_RULE (rule_get_type ())
80 typedef struct _Rule Rule;
82 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
83 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
84 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
85 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
86 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
87 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
89 typedef struct _TrustAnchor TrustAnchor;
90 typedef struct _TrustAnchorClass TrustAnchorClass;
91 #define _moonshot_error_free0(var) ((var == NULL) ? NULL : (var = (moonshot_error_free (var), NULL)))
95 gchar* always_confirm;
99 extern MoonshotLogger* web_provisioning_logger;
100 MoonshotLogger* web_provisioning_logger = NULL;
102 GType moonshot_logger_get_type (void) G_GNUC_CONST;
103 gint web_provisioning_main (gchar** args, int args_length1);
104 MoonshotLogger* moonshot_logger_new (const gchar* name);
105 MoonshotLogger* moonshot_logger_construct (GType object_type, const gchar* name);
106 GType web_provisioning_parser_get_type (void) G_GNUC_CONST;
107 WebProvisioningParser* web_provisioning_parser_new (const gchar* path);
108 WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const gchar* path);
109 void web_provisioning_parser_parse (WebProvisioningParser* self);
110 void moonshot_logger_trace (MoonshotLogger* self, const gchar* message, GError* e);
111 GType id_card_get_type (void) G_GNUC_CONST;
112 IdCard** web_provisioning_parser_get_cards (WebProvisioningParser* self, int* result_length1);
113 GType rule_get_type (void) G_GNUC_CONST;
114 Rule* rule_dup (const Rule* self);
115 void rule_free (Rule* self);
116 void rule_copy (const Rule* self, Rule* dest);
117 void rule_destroy (Rule* self);
118 Rule* id_card_get_rules (IdCard* self, int* result_length1);
119 static Rule* _vala_array_dup1 (Rule* self, int length);
120 GeeArrayList* id_card_get_services (IdCard* self);
121 const gchar* id_card_get_display_name (IdCard* self);
122 const gchar* id_card_get_username (IdCard* self);
123 const gchar* id_card_get_password (IdCard* self);
124 const gchar* id_card_get_issuer (IdCard* self);
125 GType trust_anchor_get_type (void) G_GNUC_CONST;
126 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
127 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
128 const gchar* trust_anchor_get_subject (TrustAnchor* self);
129 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
130 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
131 static void _vala_Rule_array_free (Rule* array, gint array_length);
132 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
133 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
136 static gunichar string_get_char (const gchar* self, glong index) {
137 gunichar result = 0U;
139 gunichar _tmp1_ = 0U;
140 #line 1124 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
141 g_return_val_if_fail (self != NULL, 0U);
142 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
144 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
145 _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
146 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
148 #line 1125 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
150 #line 151 "moonshot-webp-parser.c"
154 static gpointer _g_object_ref0 (gpointer self) {
155 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
156 return self ? g_object_ref (self) : NULL;
157 #line 158 "moonshot-webp-parser.c"
161 static Rule* _vala_array_dup1 (Rule* self, int length) {
164 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
165 result = g_new0 (Rule, length);
166 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
167 for (i = 0; i < length; i++) {
168 #line 169 "moonshot-webp-parser.c"
170 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
171 rule_copy (&self[i], &_tmp0_);
172 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
174 #line 175 "moonshot-webp-parser.c"
176 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
178 #line 179 "moonshot-webp-parser.c"
182 static const gchar* string_to_string (const gchar* self) {
183 const gchar* result = NULL;
184 #line 1420 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
185 g_return_val_if_fail (self != NULL, NULL);
186 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
188 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
190 #line 191 "moonshot-webp-parser.c"
194 static void _vala_Rule_array_free (Rule* array, gint array_length) {
195 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
197 #line 198 "moonshot-webp-parser.c"
199 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
200 for (i = 0; i < array_length; i = i + 1) {
201 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
202 rule_destroy (&array[i]);
203 #line 204 "moonshot-webp-parser.c"
206 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
208 #line 209 "moonshot-webp-parser.c"
212 gint web_provisioning_main (gchar** args, int args_length1) {
214 MoonshotLogger* _tmp0_ = NULL;
216 gint force_flat_file_store = 0;
217 gboolean bad_switch = FALSE;
218 gboolean _tmp18_ = FALSE;
219 gboolean _tmp19_ = FALSE;
220 gchar* webp_file = NULL;
221 gchar** _tmp26_ = NULL;
222 gint _tmp26__length1 = 0;
224 const gchar* _tmp28_ = NULL;
225 gchar* _tmp29_ = NULL;
226 const gchar* _tmp30_ = NULL;
227 gboolean _tmp31_ = FALSE;
228 WebProvisioningParser* webp = NULL;
229 const gchar* _tmp35_ = NULL;
230 WebProvisioningParser* _tmp36_ = NULL;
231 WebProvisioningParser* _tmp37_ = NULL;
232 MoonshotLogger* _tmp38_ = NULL;
233 WebProvisioningParser* _tmp39_ = NULL;
234 IdCard** _tmp40_ = NULL;
235 gint _tmp40__length1 = 0;
236 IdCard** _tmp41_ = NULL;
237 gint _tmp41__length1 = 0;
238 gchar* _tmp42_ = NULL;
239 gchar* _tmp43_ = NULL;
240 gchar* _tmp44_ = NULL;
241 gchar* _tmp45_ = NULL;
242 WebProvisioningParser* _tmp46_ = NULL;
243 IdCard** _tmp47_ = NULL;
244 gint _tmp47__length1 = 0;
245 IdCard** _tmp48_ = NULL;
246 gint _tmp48__length1 = 0;
247 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
248 _tmp0_ = moonshot_logger_new ("WebProvisioning (WebpParser)");
249 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
250 _g_object_unref0 (web_provisioning_logger);
251 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
252 web_provisioning_logger = _tmp0_;
253 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
255 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
256 force_flat_file_store = 0;
257 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
259 #line 260 "moonshot-webp-parser.c"
261 gboolean _tmp1_ = FALSE;
262 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
264 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
266 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
268 #line 269 "moonshot-webp-parser.c"
270 gchar** _tmp4_ = NULL;
271 gint _tmp4__length1 = 0;
273 gchar** _tmp5_ = NULL;
274 gint _tmp5__length1 = 0;
276 const gchar* _tmp7_ = NULL;
277 gchar* _tmp8_ = NULL;
279 const gchar* _tmp9_ = NULL;
280 gunichar _tmp10_ = 0U;
281 gunichar _tmp11_ = 0U;
282 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
284 #line 285 "moonshot-webp-parser.c"
286 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
288 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
289 arg_index = _tmp2_ + 1;
290 #line 291 "moonshot-webp-parser.c"
292 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
294 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
296 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
298 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
299 _tmp4__length1 = args_length1;
300 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
301 if (!(_tmp3_ < _tmp4__length1)) {
302 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
304 #line 305 "moonshot-webp-parser.c"
306 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
308 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
309 _tmp5__length1 = args_length1;
310 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
312 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
313 _tmp7_ = _tmp5_[_tmp6_];
314 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
315 _tmp8_ = g_strdup (_tmp7_);
316 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
318 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
320 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
321 _tmp10_ = string_get_char (_tmp9_, (glong) 0);
322 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
324 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
326 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
327 if (_tmp11_ == ((gunichar) '-')) {
328 #line 329 "moonshot-webp-parser.c"
329 const gchar* _tmp12_ = NULL;
330 const gchar* _tmp13_ = NULL;
331 gchar* _tmp14_ = NULL;
332 const gchar* _tmp15_ = NULL;
333 gunichar _tmp16_ = 0U;
334 gunichar _tmp17_ = 0U;
335 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
337 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
338 _tmp13_ = g_utf8_next_char (_tmp12_);
339 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
340 _tmp14_ = g_strdup (_tmp13_);
341 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
343 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
345 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
347 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
348 _tmp16_ = string_get_char (_tmp15_, (glong) 0);
349 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
351 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
353 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
355 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
357 #line 358 "moonshot-webp-parser.c"
359 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
360 force_flat_file_store = 1;
361 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
363 #line 364 "moonshot-webp-parser.c"
367 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
369 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
371 #line 372 "moonshot-webp-parser.c"
375 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
377 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
379 #line 380 "moonshot-webp-parser.c"
381 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
383 #line 384 "moonshot-webp-parser.c"
386 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
387 _tmp19_ = bad_switch;
388 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
390 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
392 #line 393 "moonshot-webp-parser.c"
395 gchar** _tmp21_ = NULL;
396 gint _tmp21__length1 = 0;
397 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
399 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
401 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
402 _tmp21__length1 = args_length1;
403 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
404 _tmp18_ = _tmp20_ != (_tmp21__length1 - 1);
405 #line 406 "moonshot-webp-parser.c"
407 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
409 #line 410 "moonshot-webp-parser.c"
410 FILE* _tmp22_ = NULL;
411 const gchar* _tmp23_ = NULL;
412 gchar** _tmp24_ = NULL;
413 gint _tmp24__length1 = 0;
414 const gchar* _tmp25_ = NULL;
415 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
417 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
418 _tmp23_ = _ ("Usage %s [-f] WEB_PROVISIONING_FILE\n" \
419 " -f: add identities to flat file store.\n");
420 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
422 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
423 _tmp24__length1 = args_length1;
424 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
425 _tmp25_ = _tmp24_[0];
426 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
427 fprintf (_tmp22_, _tmp23_, _tmp25_);
428 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
430 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
432 #line 432 "moonshot-webp-parser.c"
434 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
436 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
437 _tmp26__length1 = args_length1;
438 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
440 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
441 _tmp28_ = _tmp26_[_tmp27_];
442 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
443 _tmp29_ = g_strdup (_tmp28_);
444 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
446 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
448 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
449 _tmp31_ = g_file_test (_tmp30_, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR);
450 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
452 #line 452 "moonshot-webp-parser.c"
453 FILE* _tmp32_ = NULL;
454 const gchar* _tmp33_ = NULL;
455 const gchar* _tmp34_ = NULL;
456 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
458 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
459 _tmp33_ = _ ("%s does not exist\n");
460 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
462 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
463 fprintf (_tmp32_, _tmp33_, _tmp34_);
464 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
466 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
467 _g_free0 (webp_file);
468 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
470 #line 470 "moonshot-webp-parser.c"
472 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
474 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
475 _tmp36_ = web_provisioning_parser_new (_tmp35_);
476 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
478 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
480 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
481 web_provisioning_parser_parse (_tmp37_);
482 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
483 _tmp38_ = web_provisioning_logger;
484 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
486 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
487 _tmp40_ = web_provisioning_parser_get_cards (_tmp39_, &_tmp40__length1);
488 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
490 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
491 _tmp41__length1 = _tmp40__length1;
492 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
493 _tmp42_ = g_strdup_printf ("%i", _tmp41__length1);
494 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
496 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
497 _tmp44_ = g_strconcat ("Have ", _tmp43_, " IdCards", NULL);
498 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
500 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
501 moonshot_logger_trace (_tmp38_, _tmp45_, NULL);
502 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
504 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
506 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
508 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
509 _tmp47_ = web_provisioning_parser_get_cards (_tmp46_, &_tmp47__length1);
510 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
512 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
513 _tmp48__length1 = _tmp47__length1;
514 #line 514 "moonshot-webp-parser.c"
516 IdCard** card_collection = NULL;
517 gint card_collection_length1 = 0;
518 gint _card_collection_size_ = 0;
520 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
521 card_collection = _tmp48_;
522 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
523 card_collection_length1 = _tmp48__length1;
524 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
525 for (card_it = 0; card_it < _tmp48__length1; card_it = card_it + 1) {
526 #line 526 "moonshot-webp-parser.c"
527 IdCard* _tmp49_ = NULL;
529 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
530 _tmp49_ = _g_object_ref0 (card_collection[card_it]);
531 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
533 #line 533 "moonshot-webp-parser.c"
535 IdCard* _tmp50_ = NULL;
536 MoonshotError* _error_ = NULL;
537 gchar** rules_patterns = NULL;
538 gchar** _tmp52_ = NULL;
539 gint rules_patterns_length1 = 0;
540 gint _rules_patterns_size_ = 0;
541 gchar** rules_always_confirm = NULL;
542 gchar** _tmp53_ = NULL;
543 gint rules_always_confirm_length1 = 0;
544 gint _rules_always_confirm_size_ = 0;
546 IdCard* _tmp54_ = NULL;
547 Rule* _tmp55_ = NULL;
548 gint _tmp55__length1 = 0;
549 Rule* _tmp56_ = NULL;
550 gint _tmp56__length1 = 0;
551 Rule* _tmp57_ = NULL;
552 gint _tmp57__length1 = 0;
553 gint rules_length1 = 0;
554 gint _rules_size_ = 0;
556 IdCard* _tmp58_ = NULL;
557 GeeArrayList* _tmp59_ = NULL;
558 GeeArrayList* _tmp60_ = NULL;
561 gchar** _tmp63_ = NULL;
562 gint svcs_length1 = 0;
563 gint _svcs_size_ = 0;
564 Rule* _tmp80_ = NULL;
565 gint _tmp80__length1 = 0;
566 MoonshotLogger* _tmp100_ = NULL;
567 IdCard* _tmp101_ = NULL;
568 const gchar* _tmp102_ = NULL;
569 const gchar* _tmp103_ = NULL;
570 const gchar* _tmp104_ = NULL;
571 gchar* _tmp105_ = NULL;
572 gchar* _tmp106_ = NULL;
573 IdCard* _tmp107_ = NULL;
574 const gchar* _tmp108_ = NULL;
575 const gchar* _tmp109_ = NULL;
576 IdCard* _tmp110_ = NULL;
577 const gchar* _tmp111_ = NULL;
578 const gchar* _tmp112_ = NULL;
579 IdCard* _tmp113_ = NULL;
580 const gchar* _tmp114_ = NULL;
581 const gchar* _tmp115_ = NULL;
582 IdCard* _tmp116_ = NULL;
583 const gchar* _tmp117_ = NULL;
584 const gchar* _tmp118_ = NULL;
585 gchar** _tmp119_ = NULL;
586 gint _tmp119__length1 = 0;
587 gchar** _tmp120_ = NULL;
588 gint _tmp120__length1 = 0;
589 gchar** _tmp121_ = NULL;
590 gint _tmp121__length1 = 0;
591 IdCard* _tmp122_ = NULL;
592 TrustAnchor* _tmp123_ = NULL;
593 TrustAnchor* _tmp124_ = NULL;
594 const gchar* _tmp125_ = NULL;
595 const gchar* _tmp126_ = NULL;
596 IdCard* _tmp127_ = NULL;
597 TrustAnchor* _tmp128_ = NULL;
598 TrustAnchor* _tmp129_ = NULL;
599 const gchar* _tmp130_ = NULL;
600 const gchar* _tmp131_ = NULL;
601 IdCard* _tmp132_ = NULL;
602 TrustAnchor* _tmp133_ = NULL;
603 TrustAnchor* _tmp134_ = NULL;
604 const gchar* _tmp135_ = NULL;
605 const gchar* _tmp136_ = NULL;
606 IdCard* _tmp137_ = NULL;
607 TrustAnchor* _tmp138_ = NULL;
608 TrustAnchor* _tmp139_ = NULL;
609 const gchar* _tmp140_ = NULL;
610 const gchar* _tmp141_ = NULL;
612 MoonshotError* _tmp143_ = NULL;
613 MoonshotError* _tmp144_ = NULL;
614 #line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
616 #line 82 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
617 if (_tmp50_ == NULL) {
618 #line 618 "moonshot-webp-parser.c"
619 MoonshotLogger* _tmp51_ = NULL;
620 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
621 _tmp51_ = web_provisioning_logger;
622 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
623 moonshot_logger_trace (_tmp51_, "Skipping null IdCard", NULL);
624 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
625 _g_object_unref0 (card);
626 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
628 #line 628 "moonshot-webp-parser.c"
630 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
631 _tmp52_ = g_new0 (gchar*, 0 + 1);
632 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
633 rules_patterns = _tmp52_;
634 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
635 rules_patterns_length1 = 0;
636 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
637 _rules_patterns_size_ = rules_patterns_length1;
638 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
639 _tmp53_ = g_new0 (gchar*, 0 + 1);
640 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
641 rules_always_confirm = _tmp53_;
642 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
643 rules_always_confirm_length1 = 0;
644 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
645 _rules_always_confirm_size_ = rules_always_confirm_length1;
646 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
648 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
649 _tmp55_ = id_card_get_rules (_tmp54_, &_tmp55__length1);
650 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
652 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
653 _tmp56__length1 = _tmp55__length1;
654 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
655 _tmp57_ = (_tmp56_ != NULL) ? _vala_array_dup1 (_tmp56_, _tmp56__length1) : ((gpointer) _tmp56_);
656 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
657 _tmp57__length1 = _tmp56__length1;
658 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
660 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
661 rules_length1 = _tmp57__length1;
662 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
663 _rules_size_ = rules_length1;
664 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
666 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
667 _tmp59_ = id_card_get_services (_tmp58_);
668 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
670 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
671 _tmp61_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp60_);
672 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
674 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
675 _tmp63_ = g_new0 (gchar*, _tmp62_ + 1);
676 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
678 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
679 svcs_length1 = _tmp62_;
680 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
681 _svcs_size_ = svcs_length1;
682 #line 682 "moonshot-webp-parser.c"
685 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
687 #line 687 "moonshot-webp-parser.c"
689 gboolean _tmp64_ = FALSE;
690 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
692 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
694 #line 694 "moonshot-webp-parser.c"
696 IdCard* _tmp67_ = NULL;
697 GeeArrayList* _tmp68_ = NULL;
698 GeeArrayList* _tmp69_ = NULL;
701 gchar** _tmp72_ = NULL;
702 gint _tmp72__length1 = 0;
704 IdCard* _tmp74_ = NULL;
705 GeeArrayList* _tmp75_ = NULL;
706 GeeArrayList* _tmp76_ = NULL;
708 gpointer _tmp78_ = NULL;
709 gchar* _tmp79_ = NULL;
710 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
712 #line 712 "moonshot-webp-parser.c"
714 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
716 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
718 #line 718 "moonshot-webp-parser.c"
720 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
722 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
724 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
726 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
727 _tmp68_ = id_card_get_services (_tmp67_);
728 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
730 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
731 _tmp70_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp69_);
732 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
734 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
735 if (!(_tmp66_ < _tmp71_)) {
736 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
738 #line 738 "moonshot-webp-parser.c"
740 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
742 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
743 _tmp72__length1 = svcs_length1;
744 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
746 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
748 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
749 _tmp75_ = id_card_get_services (_tmp74_);
750 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
752 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
754 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
755 _tmp78_ = gee_abstract_list_get ((GeeAbstractList*) _tmp76_, _tmp77_);
756 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
757 _g_free0 (_tmp72_[_tmp73_]);
758 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
759 _tmp72_[_tmp73_] = (gchar*) _tmp78_;
760 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
761 _tmp79_ = _tmp72_[_tmp73_];
762 #line 762 "moonshot-webp-parser.c"
766 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
768 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
769 _tmp80__length1 = rules_length1;
770 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
771 if (_tmp80__length1 > 0) {
772 #line 772 "moonshot-webp-parser.c"
774 Rule* _tmp81_ = NULL;
775 gint _tmp81__length1 = 0;
776 gchar** _tmp82_ = NULL;
777 Rule* _tmp83_ = NULL;
778 gint _tmp83__length1 = 0;
779 gchar** _tmp84_ = NULL;
780 Rule* _tmp85_ = NULL;
781 gint _tmp85__length1 = 0;
782 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
784 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
786 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
787 _tmp81__length1 = rules_length1;
788 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
789 _tmp82_ = g_new0 (gchar*, _tmp81__length1 + 1);
790 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
791 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
792 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
793 rules_patterns = _tmp82_;
794 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
795 rules_patterns_length1 = _tmp81__length1;
796 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
797 _rules_patterns_size_ = rules_patterns_length1;
798 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
800 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
801 _tmp83__length1 = rules_length1;
802 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
803 _tmp84_ = g_new0 (gchar*, _tmp83__length1 + 1);
804 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
805 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
806 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
807 rules_always_confirm = _tmp84_;
808 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
809 rules_always_confirm_length1 = _tmp83__length1;
810 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
811 _rules_always_confirm_size_ = rules_always_confirm_length1;
812 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
814 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
815 _tmp85__length1 = rules_length1;
816 #line 816 "moonshot-webp-parser.c"
818 Rule* r_collection = NULL;
819 gint r_collection_length1 = 0;
820 gint _r_collection_size_ = 0;
822 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
823 r_collection = _tmp85_;
824 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
825 r_collection_length1 = _tmp85__length1;
826 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
827 for (r_it = 0; r_it < _tmp85__length1; r_it = r_it + 1) {
828 #line 828 "moonshot-webp-parser.c"
831 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
832 rule_copy (&r_collection[r_it], &_tmp86_);
833 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
835 #line 835 "moonshot-webp-parser.c"
837 gchar** _tmp87_ = NULL;
838 gint _tmp87__length1 = 0;
841 const gchar* _tmp90_ = NULL;
842 gchar* _tmp91_ = NULL;
843 gchar* _tmp92_ = NULL;
844 gchar** _tmp93_ = NULL;
845 gint _tmp93__length1 = 0;
848 const gchar* _tmp96_ = NULL;
849 gchar* _tmp97_ = NULL;
850 gchar* _tmp98_ = NULL;
852 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
853 _tmp87_ = rules_patterns;
854 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
855 _tmp87__length1 = rules_patterns_length1;
856 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
858 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
860 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
861 _tmp90_ = _tmp89_.pattern;
862 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
863 _tmp91_ = g_strdup (_tmp90_);
864 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
865 _g_free0 (_tmp87_[_tmp88_]);
866 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
867 _tmp87_[_tmp88_] = _tmp91_;
868 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
869 _tmp92_ = _tmp87_[_tmp88_];
870 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
871 _tmp93_ = rules_always_confirm;
872 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
873 _tmp93__length1 = rules_always_confirm_length1;
874 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
876 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
878 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
879 _tmp96_ = _tmp95_.always_confirm;
880 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
881 _tmp97_ = g_strdup (_tmp96_);
882 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
883 _g_free0 (_tmp93_[_tmp94_]);
884 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
885 _tmp93_[_tmp94_] = _tmp97_;
886 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
887 _tmp98_ = _tmp93_[_tmp94_];
888 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
890 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
892 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
894 #line 894 "moonshot-webp-parser.c"
899 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
900 _tmp100_ = web_provisioning_logger;
901 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
903 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
904 _tmp102_ = id_card_get_display_name (_tmp101_);
905 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
907 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
908 _tmp104_ = string_to_string (_tmp103_);
909 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
910 _tmp105_ = g_strconcat ("Installing IdCard named '", _tmp104_, "'", NULL);
911 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
913 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
914 moonshot_logger_trace (_tmp100_, _tmp106_, NULL);
915 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
917 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
919 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
920 _tmp108_ = id_card_get_display_name (_tmp107_);
921 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
923 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
925 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
926 _tmp111_ = id_card_get_username (_tmp110_);
927 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
929 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
931 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
932 _tmp114_ = id_card_get_password (_tmp113_);
933 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
935 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
937 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
938 _tmp117_ = id_card_get_issuer (_tmp116_);
939 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
941 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
942 _tmp119_ = rules_patterns;
943 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
944 _tmp119__length1 = rules_patterns_length1;
945 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
946 _tmp120_ = rules_always_confirm;
947 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
948 _tmp120__length1 = rules_always_confirm_length1;
949 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
951 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
952 _tmp121__length1 = svcs_length1;
953 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
955 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
956 _tmp123_ = id_card_get_trust_anchor (_tmp122_);
957 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
959 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
960 _tmp125_ = trust_anchor_get_ca_cert (_tmp124_);
961 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
963 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
965 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
966 _tmp128_ = id_card_get_trust_anchor (_tmp127_);
967 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
969 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
970 _tmp130_ = trust_anchor_get_subject (_tmp129_);
971 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
973 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
975 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
976 _tmp133_ = id_card_get_trust_anchor (_tmp132_);
977 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
979 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
980 _tmp135_ = trust_anchor_get_subject_alt (_tmp134_);
981 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
983 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
985 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
986 _tmp138_ = id_card_get_trust_anchor (_tmp137_);
987 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
989 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
990 _tmp140_ = trust_anchor_get_server_cert (_tmp139_);
991 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
993 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
994 _tmp142_ = force_flat_file_store;
995 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
996 moonshot_install_id_card (_tmp109_, _tmp112_, _tmp115_, _tmp118_, _tmp119_, _tmp119__length1, _tmp120_, _tmp120__length1, _tmp121_, _tmp121__length1, _tmp126_, _tmp131_, _tmp136_, _tmp141_, _tmp142_, &_tmp143_);
997 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
998 _moonshot_error_free0 (_error_);
999 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1001 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1003 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1004 if (_tmp144_ != NULL) {
1005 #line 1005 "moonshot-webp-parser.c"
1006 FILE* _tmp145_ = NULL;
1007 MoonshotError* _tmp146_ = NULL;
1008 const gchar* _tmp147_ = NULL;
1009 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1011 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1013 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1014 _tmp147_ = _tmp146_->message;
1015 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1016 fprintf (_tmp145_, "Error: %s", _tmp147_);
1017 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1018 svcs = (_vala_array_free (svcs, svcs_length1, (GDestroyNotify) g_free), NULL);
1019 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1020 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1021 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1022 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1023 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1024 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1025 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1026 _moonshot_error_free0 (_error_);
1027 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1028 _g_object_unref0 (card);
1029 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1031 #line 1031 "moonshot-webp-parser.c"
1033 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1034 svcs = (_vala_array_free (svcs, svcs_length1, (GDestroyNotify) g_free), NULL);
1035 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1036 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1037 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1038 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1039 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1040 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1041 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1042 _moonshot_error_free0 (_error_);
1043 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1044 _g_object_unref0 (card);
1045 #line 1045 "moonshot-webp-parser.c"
1049 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1051 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1052 _g_object_unref0 (webp);
1053 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1054 _g_free0 (webp_file);
1055 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1057 #line 1057 "moonshot-webp-parser.c"
1061 int main (int argc, char ** argv) {
1062 #if !GLIB_CHECK_VERSION (2,35,0)
1065 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
1066 return web_provisioning_main (argv, argc);
1067 #line 1067 "moonshot-webp-parser.c"
1071 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
1072 if ((array != NULL) && (destroy_func != NULL)) {
1074 for (i = 0; i < array_length; i = i + 1) {
1075 if (((gpointer*) array)[i] != NULL) {
1076 destroy_func (((gpointer*) array)[i]);
1083 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
1084 _vala_array_destroy (array, array_length, destroy_func);