+++ /dev/null
-/* moonshot-webp-parser.c generated by valac 0.28.0, the Vala compiler
- * generated from moonshot-webp-parser.vala, do not modify */
-
-/*
- * Copyright (c) 2011-2014, JANET(UK)
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * 3. Neither the name of JANET(UK) nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
-*/
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <glib/gi18n-lib.h>
-#include <glib/gstdio.h>
-#include <libmoonshot.h>
-
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define WEB_PROVISIONING_TYPE_PARSER (web_provisioning_parser_get_type ())
-#define WEB_PROVISIONING_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParser))
-#define WEB_PROVISIONING_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
-#define WEB_PROVISIONING_IS_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEB_PROVISIONING_TYPE_PARSER))
-#define WEB_PROVISIONING_IS_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEB_PROVISIONING_TYPE_PARSER))
-#define WEB_PROVISIONING_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WEB_PROVISIONING_TYPE_PARSER, WebProvisioningParserClass))
-
-typedef struct _WebProvisioningParser WebProvisioningParser;
-typedef struct _WebProvisioningParserClass WebProvisioningParserClass;
-
-#define TYPE_ID_CARD (id_card_get_type ())
-#define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
-#define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
-#define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
-#define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
-#define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
-
-typedef struct _IdCard IdCard;
-typedef struct _IdCardClass IdCardClass;
-
-#define TYPE_RULE (rule_get_type ())
-typedef struct _Rule Rule;
-
-#define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
-#define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
-#define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
-#define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
-#define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
-#define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
-
-typedef struct _TrustAnchor TrustAnchor;
-typedef struct _TrustAnchorClass TrustAnchorClass;
-#define _moonshot_error_free0(var) ((var == NULL) ? NULL : (var = (moonshot_error_free (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _web_provisioning_parser_unref0(var) ((var == NULL) ? NULL : (var = (web_provisioning_parser_unref (var), NULL)))
-
-struct _Rule {
- gchar* pattern;
- gchar* always_confirm;
-};
-
-
-extern IdCard** web_provisioning_cards;
-extern gint web_provisioning_cards_length1;
-
-gint web_provisioning_main (gchar** args, int args_length1);
-gpointer web_provisioning_parser_ref (gpointer instance);
-void web_provisioning_parser_unref (gpointer instance);
-GParamSpec* web_provisioning_param_spec_parser (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void web_provisioning_value_set_parser (GValue* value, gpointer v_object);
-void web_provisioning_value_take_parser (GValue* value, gpointer v_object);
-gpointer web_provisioning_value_get_parser (const GValue* value);
-GType web_provisioning_parser_get_type (void) G_GNUC_CONST;
-WebProvisioningParser* web_provisioning_parser_new (const gchar* path);
-WebProvisioningParser* web_provisioning_parser_construct (GType object_type, const gchar* path);
-void web_provisioning_parser_parse (WebProvisioningParser* self);
-GType id_card_get_type (void) G_GNUC_CONST;
-GType rule_get_type (void) G_GNUC_CONST;
-Rule* rule_dup (const Rule* self);
-void rule_free (Rule* self);
-void rule_copy (const Rule* self, Rule* dest);
-void rule_destroy (Rule* self);
-Rule* id_card_get_rules (IdCard* self, int* result_length1);
-static Rule* _vala_array_dup1 (Rule* self, int length);
-gchar** id_card_get_services (IdCard* self, int* result_length1);
-static gchar** _vala_array_dup2 (gchar** self, int length);
-const gchar* id_card_get_display_name (IdCard* self);
-const gchar* id_card_get_username (IdCard* self);
-const gchar* id_card_get_password (IdCard* self);
-const gchar* id_card_get_issuer (IdCard* self);
-GType trust_anchor_get_type (void) G_GNUC_CONST;
-TrustAnchor* id_card_get_trust_anchor (IdCard* self);
-const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
-const gchar* trust_anchor_get_subject (TrustAnchor* self);
-const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
-const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
-static void _vala_Rule_array_free (Rule* array, gint array_length);
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
-
-
-static gunichar string_get_char (const gchar* self, glong index) {
- gunichar result = 0U;
- glong _tmp0_ = 0L;
- gunichar _tmp1_ = 0U;
-#line 1026 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
- g_return_val_if_fail (self != NULL, 0U);
-#line 1027 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
- _tmp0_ = index;
-#line 1027 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
- _tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
-#line 1027 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
- result = _tmp1_;
-#line 1027 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
- return result;
-#line 143 "moonshot-webp-parser.c"
-}
-
-
-static gpointer _g_object_ref0 (gpointer self) {
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return self ? g_object_ref (self) : NULL;
-#line 150 "moonshot-webp-parser.c"
-}
-
-
-static Rule* _vala_array_dup1 (Rule* self, int length) {
- Rule* result;
- int i;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result = g_new0 (Rule, length);
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- for (i = 0; i < length; i++) {
-#line 161 "moonshot-webp-parser.c"
- Rule _tmp0_ = {0};
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rule_copy (&self[i], &_tmp0_);
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result[i] = _tmp0_;
-#line 167 "moonshot-webp-parser.c"
- }
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return result;
-#line 171 "moonshot-webp-parser.c"
-}
-
-
-static gchar** _vala_array_dup2 (gchar** self, int length) {
- gchar** result;
- int i;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result = g_new0 (gchar*, length + 1);
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- for (i = 0; i < length; i++) {
-#line 182 "moonshot-webp-parser.c"
- gchar* _tmp0_ = NULL;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp0_ = g_strdup (self[i]);
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result[i] = _tmp0_;
-#line 188 "moonshot-webp-parser.c"
- }
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return result;
-#line 192 "moonshot-webp-parser.c"
-}
-
-
-static void _vala_Rule_array_free (Rule* array, gint array_length) {
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (array != NULL) {
-#line 199 "moonshot-webp-parser.c"
- int i;
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- for (i = 0; i < array_length; i = i + 1) {
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rule_destroy (&array[i]);
-#line 205 "moonshot-webp-parser.c"
- }
- }
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- g_free (array);
-#line 210 "moonshot-webp-parser.c"
-}
-
-
-gint web_provisioning_main (gchar** args, int args_length1) {
- gint result = 0;
- gint arg_index = 0;
- gint force_flat_file_store = 0;
- gboolean bad_switch = FALSE;
- gboolean _tmp17_ = FALSE;
- gboolean _tmp18_ = FALSE;
- gchar* webp_file = NULL;
- gchar** _tmp25_ = NULL;
- gint _tmp25__length1 = 0;
- gint _tmp26_ = 0;
- const gchar* _tmp27_ = NULL;
- gchar* _tmp28_ = NULL;
- const gchar* _tmp29_ = NULL;
- gboolean _tmp30_ = FALSE;
- WebProvisioningParser* webp = NULL;
- const gchar* _tmp34_ = NULL;
- WebProvisioningParser* _tmp35_ = NULL;
- WebProvisioningParser* _tmp36_ = NULL;
- IdCard** _tmp37_ = NULL;
- gint _tmp37__length1 = 0;
-#line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- arg_index = -1;
-#line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- force_flat_file_store = 0;
-#line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- bad_switch = FALSE;
-#line 241 "moonshot-webp-parser.c"
- {
- gboolean _tmp0_ = FALSE;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- arg_index = 1;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp0_ = TRUE;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- while (TRUE) {
-#line 250 "moonshot-webp-parser.c"
- gint _tmp2_ = 0;
- gchar** _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
- gchar* arg = NULL;
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
- gint _tmp5_ = 0;
- const gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gunichar c = 0U;
- const gchar* _tmp8_ = NULL;
- gunichar _tmp9_ = 0U;
- gunichar _tmp10_ = 0U;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (!_tmp0_) {
-#line 266 "moonshot-webp-parser.c"
- gint _tmp1_ = 0;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp1_ = arg_index;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- arg_index = _tmp1_ + 1;
-#line 272 "moonshot-webp-parser.c"
- }
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp0_ = FALSE;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp2_ = arg_index;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp3_ = args;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp3__length1 = args_length1;
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (!(_tmp2_ < _tmp3__length1)) {
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- break;
-#line 286 "moonshot-webp-parser.c"
- }
-#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp4_ = args;
-#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp4__length1 = args_length1;
-#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp5_ = arg_index;
-#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp6_ = _tmp4_[_tmp5_];
-#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- arg = _tmp7_;
-#line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp8_ = arg;
-#line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp9_ = string_get_char (_tmp8_, (glong) 0);
-#line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- c = _tmp9_;
-#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp10_ = c;
-#line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (_tmp10_ == ((gunichar) '-')) {
-#line 310 "moonshot-webp-parser.c"
- const gchar* _tmp11_ = NULL;
- const gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- const gchar* _tmp14_ = NULL;
- gunichar _tmp15_ = 0U;
- gunichar _tmp16_ = 0U;
-#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp11_ = arg;
-#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp12_ = g_utf8_next_char (_tmp11_);
-#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (arg);
-#line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- arg = _tmp13_;
-#line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp14_ = arg;
-#line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp15_ = string_get_char (_tmp14_, (glong) 0);
-#line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- c = _tmp15_;
-#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp16_ = c;
-#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- switch (_tmp16_) {
-#line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- case 'f':
-#line 339 "moonshot-webp-parser.c"
- {
-#line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- force_flat_file_store = 1;
-#line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- break;
-#line 345 "moonshot-webp-parser.c"
- }
- default:
- {
-#line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- bad_switch = TRUE;
-#line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- break;
-#line 353 "moonshot-webp-parser.c"
- }
- }
- } else {
-#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (arg);
-#line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- break;
-#line 361 "moonshot-webp-parser.c"
- }
-#line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (arg);
-#line 365 "moonshot-webp-parser.c"
- }
- }
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp18_ = bad_switch;
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (_tmp18_) {
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp17_ = TRUE;
-#line 374 "moonshot-webp-parser.c"
- } else {
- gint _tmp19_ = 0;
- gchar** _tmp20_ = NULL;
- gint _tmp20__length1 = 0;
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp19_ = arg_index;
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp20_ = args;
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp20__length1 = args_length1;
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp17_ = _tmp19_ != (_tmp20__length1 - 1);
-#line 387 "moonshot-webp-parser.c"
- }
-#line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (_tmp17_) {
-#line 391 "moonshot-webp-parser.c"
- FILE* _tmp21_ = NULL;
- const gchar* _tmp22_ = NULL;
- gchar** _tmp23_ = NULL;
- gint _tmp23__length1 = 0;
- const gchar* _tmp24_ = NULL;
-#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp21_ = stdout;
-#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp22_ = _ ("Usage %s [-f] WEB_PROVISIONING_FILE\n" \
-" -f: add identities to flat file store.\n");
-#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp23_ = args;
-#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp23__length1 = args_length1;
-#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp24_ = _tmp23_[0];
-#line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- fprintf (_tmp21_, _tmp22_, _tmp24_);
-#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result = -1;
-#line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return result;
-#line 413 "moonshot-webp-parser.c"
- }
-#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp25_ = args;
-#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp25__length1 = args_length1;
-#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp26_ = arg_index;
-#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp27_ = _tmp25_[_tmp26_];
-#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp28_ = g_strdup (_tmp27_);
-#line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- webp_file = _tmp28_;
-#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp29_ = webp_file;
-#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp30_ = g_file_test (_tmp29_, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR);
-#line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (!_tmp30_) {
-#line 433 "moonshot-webp-parser.c"
- FILE* _tmp31_ = NULL;
- const gchar* _tmp32_ = NULL;
- const gchar* _tmp33_ = NULL;
-#line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp31_ = stdout;
-#line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp32_ = _ ("%s does not exist\n");
-#line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp33_ = webp_file;
-#line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- fprintf (_tmp31_, _tmp32_, _tmp33_);
-#line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result = -1;
-#line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (webp_file);
-#line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return result;
-#line 451 "moonshot-webp-parser.c"
- }
-#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp34_ = webp_file;
-#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp35_ = web_provisioning_parser_new (_tmp34_);
-#line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- webp = _tmp35_;
-#line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp36_ = webp;
-#line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- web_provisioning_parser_parse (_tmp36_);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp37_ = web_provisioning_cards;
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp37__length1 = web_provisioning_cards_length1;
-#line 467 "moonshot-webp-parser.c"
- {
- IdCard** card_collection = NULL;
- gint card_collection_length1 = 0;
- gint _card_collection_size_ = 0;
- gint card_it = 0;
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- card_collection = _tmp37_;
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- card_collection_length1 = _tmp37__length1;
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- for (card_it = 0; card_it < _tmp37__length1; card_it = card_it + 1) {
-#line 479 "moonshot-webp-parser.c"
- IdCard* _tmp38_ = NULL;
- IdCard* card = NULL;
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp38_ = _g_object_ref0 (card_collection[card_it]);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- card = _tmp38_;
-#line 486 "moonshot-webp-parser.c"
- {
- MoonshotError* _error_ = NULL;
- gchar** rules_patterns = NULL;
- gchar** _tmp39_ = NULL;
- gint rules_patterns_length1 = 0;
- gint _rules_patterns_size_ = 0;
- gchar** rules_always_confirm = NULL;
- gchar** _tmp40_ = NULL;
- gint rules_always_confirm_length1 = 0;
- gint _rules_always_confirm_size_ = 0;
- Rule* rules = NULL;
- IdCard* _tmp41_ = NULL;
- Rule* _tmp42_ = NULL;
- gint _tmp42__length1 = 0;
- Rule* _tmp43_ = NULL;
- gint _tmp43__length1 = 0;
- Rule* _tmp44_ = NULL;
- gint _tmp44__length1 = 0;
- gint rules_length1 = 0;
- gint _rules_size_ = 0;
- gchar** services = NULL;
- IdCard* _tmp45_ = NULL;
- gchar** _tmp46_ = NULL;
- gint _tmp46__length1 = 0;
- gchar** _tmp47_ = NULL;
- gint _tmp47__length1 = 0;
- gchar** _tmp48_ = NULL;
- gint _tmp48__length1 = 0;
- gint services_length1 = 0;
- gint _services_size_ = 0;
- Rule* _tmp49_ = NULL;
- gint _tmp49__length1 = 0;
- IdCard* _tmp69_ = NULL;
- const gchar* _tmp70_ = NULL;
- const gchar* _tmp71_ = NULL;
- IdCard* _tmp72_ = NULL;
- const gchar* _tmp73_ = NULL;
- const gchar* _tmp74_ = NULL;
- IdCard* _tmp75_ = NULL;
- const gchar* _tmp76_ = NULL;
- const gchar* _tmp77_ = NULL;
- IdCard* _tmp78_ = NULL;
- const gchar* _tmp79_ = NULL;
- const gchar* _tmp80_ = NULL;
- gchar** _tmp81_ = NULL;
- gint _tmp81__length1 = 0;
- gchar** _tmp82_ = NULL;
- gint _tmp82__length1 = 0;
- gchar** _tmp83_ = NULL;
- gint _tmp83__length1 = 0;
- IdCard* _tmp84_ = NULL;
- TrustAnchor* _tmp85_ = NULL;
- TrustAnchor* _tmp86_ = NULL;
- const gchar* _tmp87_ = NULL;
- const gchar* _tmp88_ = NULL;
- IdCard* _tmp89_ = NULL;
- TrustAnchor* _tmp90_ = NULL;
- TrustAnchor* _tmp91_ = NULL;
- const gchar* _tmp92_ = NULL;
- const gchar* _tmp93_ = NULL;
- IdCard* _tmp94_ = NULL;
- TrustAnchor* _tmp95_ = NULL;
- TrustAnchor* _tmp96_ = NULL;
- const gchar* _tmp97_ = NULL;
- const gchar* _tmp98_ = NULL;
- IdCard* _tmp99_ = NULL;
- TrustAnchor* _tmp100_ = NULL;
- TrustAnchor* _tmp101_ = NULL;
- const gchar* _tmp102_ = NULL;
- const gchar* _tmp103_ = NULL;
- gint _tmp104_ = 0;
- MoonshotError* _tmp105_ = NULL;
- MoonshotError* _tmp106_ = NULL;
-#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp39_ = g_new0 (gchar*, 0 + 1);
-#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns = _tmp39_;
-#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns_length1 = 0;
-#line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _rules_patterns_size_ = rules_patterns_length1;
-#line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp40_ = g_new0 (gchar*, 0 + 1);
-#line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm = _tmp40_;
-#line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm_length1 = 0;
-#line 81 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _rules_always_confirm_size_ = rules_always_confirm_length1;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp41_ = card;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp42_ = id_card_get_rules (_tmp41_, &_tmp42__length1);
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp43_ = _tmp42_;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp43__length1 = _tmp42__length1;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp44_ = (_tmp43_ != NULL) ? _vala_array_dup1 (_tmp43_, _tmp43__length1) : ((gpointer) _tmp43_);
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp44__length1 = _tmp43__length1;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules = _tmp44_;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_length1 = _tmp44__length1;
-#line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _rules_size_ = rules_length1;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp45_ = card;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp46_ = id_card_get_services (_tmp45_, &_tmp46__length1);
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp47_ = _tmp46_;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp47__length1 = _tmp46__length1;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp48_ = (_tmp47_ != NULL) ? _vala_array_dup2 (_tmp47_, _tmp47__length1) : ((gpointer) _tmp47_);
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp48__length1 = _tmp47__length1;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- services = _tmp48_;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- services_length1 = _tmp48__length1;
-#line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _services_size_ = services_length1;
-#line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp49_ = rules;
-#line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp49__length1 = rules_length1;
-#line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (_tmp49__length1 > 0) {
-#line 618 "moonshot-webp-parser.c"
- gint i = 0;
- Rule* _tmp50_ = NULL;
- gint _tmp50__length1 = 0;
- gchar** _tmp51_ = NULL;
- Rule* _tmp52_ = NULL;
- gint _tmp52__length1 = 0;
- gchar** _tmp53_ = NULL;
- Rule* _tmp54_ = NULL;
- gint _tmp54__length1 = 0;
-#line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- i = 0;
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp50_ = rules;
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp50__length1 = rules_length1;
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp51_ = g_new0 (gchar*, _tmp50__length1 + 1);
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns = _tmp51_;
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns_length1 = _tmp50__length1;
-#line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _rules_patterns_size_ = rules_patterns_length1;
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp52_ = rules;
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp52__length1 = rules_length1;
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp53_ = g_new0 (gchar*, _tmp52__length1 + 1);
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm = _tmp53_;
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm_length1 = _tmp52__length1;
-#line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _rules_always_confirm_size_ = rules_always_confirm_length1;
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp54_ = rules;
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp54__length1 = rules_length1;
-#line 662 "moonshot-webp-parser.c"
- {
- Rule* r_collection = NULL;
- gint r_collection_length1 = 0;
- gint _r_collection_size_ = 0;
- gint r_it = 0;
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- r_collection = _tmp54_;
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- r_collection_length1 = _tmp54__length1;
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- for (r_it = 0; r_it < _tmp54__length1; r_it = r_it + 1) {
-#line 674 "moonshot-webp-parser.c"
- Rule _tmp55_ = {0};
- Rule r = {0};
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rule_copy (&r_collection[r_it], &_tmp55_);
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- r = _tmp55_;
-#line 681 "moonshot-webp-parser.c"
- {
- gchar** _tmp56_ = NULL;
- gint _tmp56__length1 = 0;
- gint _tmp57_ = 0;
- Rule _tmp58_ = {0};
- const gchar* _tmp59_ = NULL;
- gchar* _tmp60_ = NULL;
- gchar* _tmp61_ = NULL;
- gchar** _tmp62_ = NULL;
- gint _tmp62__length1 = 0;
- gint _tmp63_ = 0;
- Rule _tmp64_ = {0};
- const gchar* _tmp65_ = NULL;
- gchar* _tmp66_ = NULL;
- gchar* _tmp67_ = NULL;
- gint _tmp68_ = 0;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp56_ = rules_patterns;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp56__length1 = rules_patterns_length1;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp57_ = i;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp58_ = r;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp59_ = _tmp58_.pattern;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp60_ = g_strdup (_tmp59_);
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (_tmp56_[_tmp57_]);
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp56_[_tmp57_] = _tmp60_;
-#line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp61_ = _tmp56_[_tmp57_];
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp62_ = rules_always_confirm;
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp62__length1 = rules_always_confirm_length1;
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp63_ = i;
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp64_ = r;
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp65_ = _tmp64_.always_confirm;
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp66_ = g_strdup (_tmp65_);
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (_tmp62_[_tmp63_]);
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp62_[_tmp63_] = _tmp66_;
-#line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp67_ = _tmp62_[_tmp63_];
-#line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp68_ = i;
-#line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- i = _tmp68_ + 1;
-#line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rule_destroy (&r);
-#line 740 "moonshot-webp-parser.c"
- }
- }
- }
- }
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp69_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp70_ = id_card_get_display_name (_tmp69_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp71_ = _tmp70_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp72_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp73_ = id_card_get_username (_tmp72_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp74_ = _tmp73_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp75_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp76_ = id_card_get_password (_tmp75_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp77_ = _tmp76_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp78_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp79_ = id_card_get_issuer (_tmp78_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp80_ = _tmp79_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp81_ = rules_patterns;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp81__length1 = rules_patterns_length1;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp82_ = rules_always_confirm;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp82__length1 = rules_always_confirm_length1;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp83_ = services;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp83__length1 = services_length1;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp84_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp85_ = id_card_get_trust_anchor (_tmp84_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp86_ = _tmp85_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp87_ = trust_anchor_get_ca_cert (_tmp86_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp88_ = _tmp87_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp89_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp90_ = id_card_get_trust_anchor (_tmp89_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp91_ = _tmp90_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp92_ = trust_anchor_get_subject (_tmp91_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp93_ = _tmp92_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp94_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp95_ = id_card_get_trust_anchor (_tmp94_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp96_ = _tmp95_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp97_ = trust_anchor_get_subject_alt (_tmp96_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp98_ = _tmp97_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp99_ = card;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp100_ = id_card_get_trust_anchor (_tmp99_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp101_ = _tmp100_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp102_ = trust_anchor_get_server_cert (_tmp101_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp103_ = _tmp102_;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp104_ = force_flat_file_store;
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- moonshot_install_id_card (_tmp71_, _tmp74_, _tmp77_, _tmp80_, _tmp81_, _tmp81__length1, _tmp82_, _tmp82__length1, _tmp83_, _tmp83__length1, _tmp88_, _tmp93_, _tmp98_, _tmp103_, _tmp104_, &_tmp105_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _moonshot_error_free0 (_error_);
-#line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _error_ = _tmp105_;
-#line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp106_ = _error_;
-#line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- if (_tmp106_ != NULL) {
-#line 833 "moonshot-webp-parser.c"
- FILE* _tmp107_ = NULL;
- MoonshotError* _tmp108_ = NULL;
- const gchar* _tmp109_ = NULL;
-#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp107_ = stderr;
-#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp108_ = _error_;
-#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _tmp109_ = _tmp108_->message;
-#line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- fprintf (_tmp107_, "Error: %s", _tmp109_);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _moonshot_error_free0 (_error_);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_object_unref0 (card);
-#line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- continue;
-#line 859 "moonshot-webp-parser.c"
- }
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _moonshot_error_free0 (_error_);
-#line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_object_unref0 (card);
-#line 873 "moonshot-webp-parser.c"
- }
- }
- }
-#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- result = 0;
-#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _web_provisioning_parser_unref0 (webp);
-#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- _g_free0 (webp_file);
-#line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return result;
-#line 885 "moonshot-webp-parser.c"
-}
-
-
-int main (int argc, char ** argv) {
-#if !GLIB_CHECK_VERSION (2,35,0)
- g_type_init ();
-#endif
-#line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-webp-parser.vala"
- return web_provisioning_main (argv, argc);
-#line 895 "moonshot-webp-parser.c"
-}
-
-
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-
-