1 /* moonshot-local-flat-file-store.c generated by valac 0.24.0, the Vala compiler
2 * generated from moonshot-local-flat-file-store.vala, do not modify */
5 * Copyright (c) 2011-2014, 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>
43 #include <glib/gstdio.h>
47 #define TYPE_IIDENTITY_CARD_STORE (iidentity_card_store_get_type ())
48 #define IIDENTITY_CARD_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IIDENTITY_CARD_STORE, IIdentityCardStore))
49 #define IS_IIDENTITY_CARD_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IIDENTITY_CARD_STORE))
50 #define IIDENTITY_CARD_STORE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_IIDENTITY_CARD_STORE, IIdentityCardStoreIface))
52 typedef struct _IIdentityCardStore IIdentityCardStore;
53 typedef struct _IIdentityCardStoreIface IIdentityCardStoreIface;
55 #define TYPE_ID_CARD (id_card_get_type ())
56 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
57 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
58 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
59 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
60 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
62 typedef struct _IdCard IdCard;
63 typedef struct _IdCardClass IdCardClass;
65 #define IIDENTITY_CARD_STORE_TYPE_STORE_TYPE (iidentity_card_store_store_type_get_type ())
67 #define TYPE_LOCAL_FLAT_FILE_STORE (local_flat_file_store_get_type ())
68 #define LOCAL_FLAT_FILE_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LOCAL_FLAT_FILE_STORE, LocalFlatFileStore))
69 #define LOCAL_FLAT_FILE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LOCAL_FLAT_FILE_STORE, LocalFlatFileStoreClass))
70 #define IS_LOCAL_FLAT_FILE_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LOCAL_FLAT_FILE_STORE))
71 #define IS_LOCAL_FLAT_FILE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LOCAL_FLAT_FILE_STORE))
72 #define LOCAL_FLAT_FILE_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LOCAL_FLAT_FILE_STORE, LocalFlatFileStoreClass))
74 typedef struct _LocalFlatFileStore LocalFlatFileStore;
75 typedef struct _LocalFlatFileStoreClass LocalFlatFileStoreClass;
76 typedef struct _LocalFlatFileStorePrivate LocalFlatFileStorePrivate;
77 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
78 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
79 #define _g_free0(var) (var = (g_free (var), NULL))
80 #define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
82 #define TYPE_RULE (rule_get_type ())
83 typedef struct _Rule Rule;
85 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
86 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
87 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
88 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
89 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
90 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
92 typedef struct _TrustAnchor TrustAnchor;
93 typedef struct _TrustAnchorClass TrustAnchorClass;
96 IIDENTITY_CARD_STORE_STORE_TYPE_FLAT_FILE,
97 IIDENTITY_CARD_STORE_STORE_TYPE_KEYRING
98 } IIdentityCardStoreStoreType;
100 struct _IIdentityCardStoreIface {
101 GTypeInterface parent_iface;
102 void (*add_card) (IIdentityCardStore* self, IdCard* card);
103 gboolean (*remove_card) (IIdentityCardStore* self, IdCard* card);
104 IdCard* (*update_card) (IIdentityCardStore* self, IdCard* card);
105 IIdentityCardStoreStoreType (*get_store_type) (IIdentityCardStore* self);
106 GeeLinkedList* (*get_card_list) (IIdentityCardStore* self);
109 struct _LocalFlatFileStore {
110 GObject parent_instance;
111 LocalFlatFileStorePrivate * priv;
114 struct _LocalFlatFileStoreClass {
115 GObjectClass parent_class;
118 struct _LocalFlatFileStorePrivate {
119 GeeLinkedList* id_card_list;
124 gchar* always_confirm;
128 static gpointer local_flat_file_store_parent_class = NULL;
129 static IIdentityCardStoreIface* local_flat_file_store_iidentity_card_store_parent_iface = NULL;
131 GType id_card_get_type (void) G_GNUC_CONST;
132 GType iidentity_card_store_store_type_get_type (void) G_GNUC_CONST;
133 GType iidentity_card_store_get_type (void) G_GNUC_CONST;
134 GType local_flat_file_store_get_type (void) G_GNUC_CONST;
135 #define LOCAL_FLAT_FILE_STORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LOCAL_FLAT_FILE_STORE, LocalFlatFileStorePrivate))
137 LOCAL_FLAT_FILE_STORE_DUMMY_PROPERTY
139 #define LOCAL_FLAT_FILE_STORE_FILE_NAME "identities.txt"
140 static void local_flat_file_store_real_add_card (IIdentityCardStore* base, IdCard* card);
141 void local_flat_file_store_store_id_cards (LocalFlatFileStore* self);
142 static IdCard* local_flat_file_store_real_update_card (IIdentityCardStore* base, IdCard* card);
143 const gchar* id_card_get_display_name (IdCard* self);
144 static gboolean local_flat_file_store_real_remove_card (IIdentityCardStore* base, IdCard* card);
145 static GeeLinkedList* local_flat_file_store_real_get_card_list (IIdentityCardStore* base);
146 static IIdentityCardStoreStoreType local_flat_file_store_real_get_store_type (IIdentityCardStore* base);
147 static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self);
148 static gchar* local_flat_file_store_get_data_dir (LocalFlatFileStore* self);
149 IdCard* id_card_new (void);
150 IdCard* id_card_construct (GType object_type);
151 void id_card_set_issuer (IdCard* self, const gchar* value);
152 void id_card_set_username (IdCard* self, const gchar* value);
153 void id_card_set_password (IdCard* self, const gchar* value);
154 void id_card_set_services (IdCard* self, gchar** value, int value_length1);
155 void id_card_set_display_name (IdCard* self, const gchar* value);
156 void id_card_set_store_password (IdCard* self, gboolean value);
157 const gchar* id_card_get_password (IdCard* self);
158 GType rule_get_type (void) G_GNUC_CONST;
159 Rule* rule_dup (const Rule* self);
160 void rule_free (Rule* self);
161 void rule_copy (const Rule* self, Rule* dest);
162 void rule_destroy (Rule* self);
163 void id_card_set_rules (IdCard* self, Rule* value, int value_length1);
164 static void _vala_Rule_array_free (Rule* array, gint array_length);
165 GType trust_anchor_get_type (void) G_GNUC_CONST;
166 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
167 void trust_anchor_set_ca_cert (TrustAnchor* self, const gchar* value);
168 void trust_anchor_set_subject (TrustAnchor* self, const gchar* value);
169 void trust_anchor_set_subject_alt (TrustAnchor* self, const gchar* value);
170 void trust_anchor_set_server_cert (TrustAnchor* self, const gchar* value);
171 Rule* id_card_get_rules (IdCard* self, int* result_length1);
172 static Rule* _vala_array_dup1 (Rule* self, int length);
173 gchar** id_card_get_services (IdCard* self, int* result_length1);
174 static gchar** _vala_array_dup2 (gchar** self, int length);
175 const gchar* id_card_get_issuer (IdCard* self);
176 const gchar* id_card_get_username (IdCard* self);
177 gboolean id_card_get_store_password (IdCard* self);
178 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
179 const gchar* trust_anchor_get_subject (TrustAnchor* self);
180 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
181 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
182 LocalFlatFileStore* local_flat_file_store_new (void);
183 LocalFlatFileStore* local_flat_file_store_construct (GType object_type);
184 static void local_flat_file_store_finalize (GObject* obj);
185 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
186 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
189 static void local_flat_file_store_real_add_card (IIdentityCardStore* base, IdCard* card) {
190 LocalFlatFileStore * self;
191 GeeLinkedList* _tmp0_ = NULL;
192 IdCard* _tmp1_ = NULL;
193 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
194 self = (LocalFlatFileStore*) base;
195 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
196 g_return_if_fail (card != NULL);
197 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
198 _tmp0_ = self->priv->id_card_list;
199 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
201 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
202 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp0_, _tmp1_);
203 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
204 local_flat_file_store_store_id_cards (self);
205 #line 206 "moonshot-local-flat-file-store.c"
209 static gpointer _g_object_ref0 (gpointer self) {
210 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
211 return self ? g_object_ref (self) : NULL;
212 #line 213 "moonshot-local-flat-file-store.c"
216 static IdCard* local_flat_file_store_real_update_card (IIdentityCardStore* base, IdCard* card) {
217 LocalFlatFileStore * self;
218 IdCard* result = NULL;
219 GeeLinkedList* _tmp0_ = NULL;
220 IdCard* _tmp1_ = NULL;
221 GeeLinkedList* _tmp2_ = NULL;
222 IdCard* _tmp3_ = NULL;
223 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
224 self = (LocalFlatFileStore*) base;
225 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
226 g_return_val_if_fail (card != NULL, NULL);
227 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
228 _tmp0_ = self->priv->id_card_list;
229 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
231 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
232 gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
233 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
234 _tmp2_ = self->priv->id_card_list;
235 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
237 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
238 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp2_, _tmp3_);
239 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
240 local_flat_file_store_store_id_cards (self);
241 #line 242 "moonshot-local-flat-file-store.c"
243 GeeLinkedList* _idcard_list = NULL;
244 GeeLinkedList* _tmp4_ = NULL;
245 GeeLinkedList* _tmp5_ = NULL;
246 gint _idcard_size = 0;
247 GeeLinkedList* _tmp6_ = NULL;
250 gint _idcard_index = 0;
251 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
252 _tmp4_ = self->priv->id_card_list;
253 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
254 _tmp5_ = _g_object_ref0 (_tmp4_);
255 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
256 _idcard_list = _tmp5_;
257 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
258 _tmp6_ = _idcard_list;
259 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
260 _tmp7_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp6_);
261 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
263 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
264 _idcard_size = _tmp8_;
265 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
267 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
269 #line 270 "moonshot-local-flat-file-store.c"
273 IdCard* idcard = NULL;
274 GeeLinkedList* _tmp12_ = NULL;
276 gpointer _tmp14_ = NULL;
277 IdCard* _tmp15_ = NULL;
278 const gchar* _tmp16_ = NULL;
279 const gchar* _tmp17_ = NULL;
280 IdCard* _tmp18_ = NULL;
281 const gchar* _tmp19_ = NULL;
282 const gchar* _tmp20_ = NULL;
283 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
284 _tmp9_ = _idcard_index;
285 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
286 _idcard_index = _tmp9_ + 1;
287 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
288 _tmp10_ = _idcard_index;
289 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
290 _tmp11_ = _idcard_size;
291 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
292 if (!(_tmp10_ < _tmp11_)) {
293 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
295 #line 296 "moonshot-local-flat-file-store.c"
297 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
298 _tmp12_ = _idcard_list;
299 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
300 _tmp13_ = _idcard_index;
301 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
302 _tmp14_ = gee_abstract_list_get ((GeeAbstractList*) _tmp12_, _tmp13_);
303 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
304 idcard = (IdCard*) _tmp14_;
305 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
307 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
308 _tmp16_ = id_card_get_display_name (_tmp15_);
309 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
311 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
313 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
314 _tmp19_ = id_card_get_display_name (_tmp18_);
315 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
317 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
318 if (g_strcmp0 (_tmp17_, _tmp20_) == 0) {
319 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
321 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
322 _g_object_unref0 (_idcard_list);
323 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
325 #line 326 "moonshot-local-flat-file-store.c"
327 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
328 _g_object_unref0 (idcard);
329 #line 330 "moonshot-local-flat-file-store.c"
331 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
332 _g_object_unref0 (_idcard_list);
333 #line 334 "moonshot-local-flat-file-store.c"
335 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
337 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
339 #line 340 "moonshot-local-flat-file-store.c"
343 static gboolean local_flat_file_store_real_remove_card (IIdentityCardStore* base, IdCard* card) {
344 LocalFlatFileStore * self;
345 gboolean result = FALSE;
346 GeeLinkedList* _tmp0_ = NULL;
347 IdCard* _tmp1_ = NULL;
348 gboolean _tmp2_ = FALSE;
349 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
350 self = (LocalFlatFileStore*) base;
351 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
352 g_return_val_if_fail (card != NULL, FALSE);
353 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
354 _tmp0_ = self->priv->id_card_list;
355 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
357 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
358 _tmp2_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
359 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
361 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
362 local_flat_file_store_store_id_cards (self);
363 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
365 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
367 #line 368 "moonshot-local-flat-file-store.c"
369 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
371 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
373 #line 374 "moonshot-local-flat-file-store.c"
377 static GeeLinkedList* local_flat_file_store_real_get_card_list (IIdentityCardStore* base) {
378 LocalFlatFileStore * self;
379 GeeLinkedList* result = NULL;
380 GeeLinkedList* _tmp0_ = NULL;
381 GeeLinkedList* _tmp1_ = NULL;
382 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
383 self = (LocalFlatFileStore*) base;
384 #line 62 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
385 _tmp0_ = self->priv->id_card_list;
386 #line 62 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
387 _tmp1_ = _g_object_ref0 (_tmp0_);
388 #line 62 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
390 #line 62 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
392 #line 393 "moonshot-local-flat-file-store.c"
396 static IIdentityCardStoreStoreType local_flat_file_store_real_get_store_type (IIdentityCardStore* base) {
397 LocalFlatFileStore * self;
398 IIdentityCardStoreStoreType result = 0;
399 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
400 self = (LocalFlatFileStore*) base;
401 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
402 result = IIDENTITY_CARD_STORE_STORE_TYPE_FLAT_FILE;
403 #line 66 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
405 #line 406 "moonshot-local-flat-file-store.c"
409 static void _vala_Rule_array_free (Rule* array, gint array_length) {
410 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
412 #line 413 "moonshot-local-flat-file-store.c"
414 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
415 for (i = 0; i < array_length; i = i + 1) {
416 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
417 rule_destroy (&array[i]);
418 #line 419 "moonshot-local-flat-file-store.c"
421 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
423 #line 424 "moonshot-local-flat-file-store.c"
427 static void local_flat_file_store_load_id_cards (LocalFlatFileStore* self) {
428 GeeLinkedList* _tmp0_ = NULL;
429 GKeyFile* key_file = NULL;
430 GKeyFile* _tmp1_ = NULL;
432 gchar* _tmp2_ = NULL;
433 gchar* filename = NULL;
434 const gchar* _tmp3_ = NULL;
435 gchar* _tmp4_ = NULL;
436 gchar** identities_uris = NULL;
437 GKeyFile* _tmp10_ = NULL;
439 gchar** _tmp12_ = NULL;
440 gint identities_uris_length1 = 0;
441 gint _identities_uris_size_ = 0;
442 gchar** _tmp13_ = NULL;
443 gint _tmp13__length1 = 0;
444 GError * _inner_error_ = NULL;
445 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
446 g_return_if_fail (self != NULL);
447 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
448 _tmp0_ = self->priv->id_card_list;
449 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
450 gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
451 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
452 _tmp1_ = g_key_file_new ();
453 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
455 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
456 _tmp2_ = local_flat_file_store_get_data_dir (self);
457 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
459 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
461 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
462 _tmp4_ = g_build_filename (_tmp3_, LOCAL_FLAT_FILE_STORE_FILE_NAME, NULL);
463 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
465 #line 466 "moonshot-local-flat-file-store.c"
467 GKeyFile* _tmp5_ = NULL;
468 const gchar* _tmp6_ = NULL;
469 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
471 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
473 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
474 g_key_file_load_from_file (_tmp5_, _tmp6_, G_KEY_FILE_NONE, &_inner_error_);
475 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
476 if (_inner_error_ != NULL) {
477 #line 478 "moonshot-local-flat-file-store.c"
478 goto __catch5_g_error;
486 GError* _tmp8_ = NULL;
487 const gchar* _tmp9_ = NULL;
488 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
490 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
491 _inner_error_ = NULL;
492 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
494 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
496 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
497 _tmp9_ = _tmp8_->message;
498 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
499 fprintf (_tmp7_, "Error: %s\n", _tmp9_);
500 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
502 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
504 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
506 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
507 _g_key_file_free0 (key_file);
508 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
510 #line 511 "moonshot-local-flat-file-store.c"
513 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
514 if (_inner_error_ != NULL) {
515 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
517 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
519 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
520 _g_key_file_free0 (key_file);
521 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
522 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
523 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
524 g_clear_error (&_inner_error_);
525 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
527 #line 528 "moonshot-local-flat-file-store.c"
529 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
531 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
532 _tmp12_ = g_key_file_get_groups (_tmp10_, &_tmp11_);
533 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
534 identities_uris = _tmp12_;
535 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
536 identities_uris_length1 = _tmp11_;
537 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
538 _identities_uris_size_ = identities_uris_length1;
539 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
540 _tmp13_ = identities_uris;
541 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
542 _tmp13__length1 = identities_uris_length1;
543 #line 544 "moonshot-local-flat-file-store.c"
545 gchar** identity_collection = NULL;
546 gint identity_collection_length1 = 0;
547 gint _identity_collection_size_ = 0;
548 gint identity_it = 0;
549 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
550 identity_collection = _tmp13_;
551 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
552 identity_collection_length1 = _tmp13__length1;
553 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
554 for (identity_it = 0; identity_it < _tmp13__length1; identity_it = identity_it + 1) {
555 #line 556 "moonshot-local-flat-file-store.c"
556 gchar* _tmp14_ = NULL;
557 gchar* identity = NULL;
558 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
559 _tmp14_ = g_strdup (identity_collection[identity_it]);
560 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
562 #line 563 "moonshot-local-flat-file-store.c"
565 IdCard* id_card = NULL;
566 IdCard* _tmp15_ = NULL;
567 gchar* _tmp16_ = NULL;
568 GKeyFile* _tmp17_ = NULL;
569 const gchar* _tmp18_ = NULL;
570 gchar* _tmp19_ = NULL;
571 IdCard* _tmp20_ = NULL;
572 gchar* _tmp21_ = NULL;
573 GKeyFile* _tmp22_ = NULL;
574 const gchar* _tmp23_ = NULL;
575 gchar* _tmp24_ = NULL;
576 IdCard* _tmp25_ = NULL;
577 gchar* _tmp26_ = NULL;
578 GKeyFile* _tmp27_ = NULL;
579 const gchar* _tmp28_ = NULL;
580 gchar* _tmp29_ = NULL;
581 IdCard* _tmp30_ = NULL;
582 gchar** _tmp31_ = NULL;
583 GKeyFile* _tmp32_ = NULL;
584 const gchar* _tmp33_ = NULL;
586 gchar** _tmp35_ = NULL;
587 gint _tmp31__length1 = 0;
588 gint __tmp31__size_ = 0;
589 IdCard* _tmp36_ = NULL;
590 gchar* _tmp37_ = NULL;
591 GKeyFile* _tmp38_ = NULL;
592 const gchar* _tmp39_ = NULL;
593 gchar* _tmp40_ = NULL;
594 IdCard* _tmp41_ = NULL;
595 gboolean _tmp42_ = FALSE;
596 GKeyFile* _tmp43_ = NULL;
597 const gchar* _tmp44_ = NULL;
598 gboolean _tmp45_ = FALSE;
599 gboolean _tmp61_ = FALSE;
600 gboolean _tmp62_ = FALSE;
601 GKeyFile* _tmp63_ = NULL;
602 const gchar* _tmp64_ = NULL;
603 gboolean _tmp65_ = FALSE;
604 gchar* _tmp100_ = NULL;
605 GKeyFile* _tmp101_ = NULL;
606 const gchar* _tmp102_ = NULL;
607 gchar* _tmp103_ = NULL;
608 IdCard* _tmp104_ = NULL;
609 TrustAnchor* _tmp105_ = NULL;
610 TrustAnchor* _tmp106_ = NULL;
611 gchar* _tmp107_ = NULL;
612 GKeyFile* _tmp108_ = NULL;
613 const gchar* _tmp109_ = NULL;
614 gchar* _tmp110_ = NULL;
615 IdCard* _tmp111_ = NULL;
616 TrustAnchor* _tmp112_ = NULL;
617 TrustAnchor* _tmp113_ = NULL;
618 gchar* _tmp114_ = NULL;
619 GKeyFile* _tmp115_ = NULL;
620 const gchar* _tmp116_ = NULL;
621 gchar* _tmp117_ = NULL;
622 IdCard* _tmp118_ = NULL;
623 TrustAnchor* _tmp119_ = NULL;
624 TrustAnchor* _tmp120_ = NULL;
625 gchar* _tmp121_ = NULL;
626 GKeyFile* _tmp122_ = NULL;
627 const gchar* _tmp123_ = NULL;
628 gchar* _tmp124_ = NULL;
629 IdCard* _tmp125_ = NULL;
630 TrustAnchor* _tmp126_ = NULL;
631 TrustAnchor* _tmp127_ = NULL;
632 GeeLinkedList* _tmp128_ = NULL;
633 IdCard* _tmp129_ = NULL;
634 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
635 _tmp15_ = id_card_new ();
636 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
638 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
640 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
642 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
643 _tmp19_ = g_key_file_get_string (_tmp17_, _tmp18_, "Issuer", &_inner_error_);
644 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
646 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
647 if (_inner_error_ != NULL) {
648 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
649 _g_object_unref0 (id_card);
650 #line 651 "moonshot-local-flat-file-store.c"
651 goto __catch6_g_error;
653 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
655 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
656 id_card_set_issuer (_tmp20_, _tmp16_);
657 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
659 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
661 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
662 _tmp24_ = g_key_file_get_string (_tmp22_, _tmp23_, "Username", &_inner_error_);
663 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
665 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
666 if (_inner_error_ != NULL) {
667 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
669 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
670 _g_object_unref0 (id_card);
671 #line 672 "moonshot-local-flat-file-store.c"
672 goto __catch6_g_error;
674 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
676 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
677 id_card_set_username (_tmp25_, _tmp21_);
678 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
680 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
682 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
683 _tmp29_ = g_key_file_get_string (_tmp27_, _tmp28_, "Password", &_inner_error_);
684 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
686 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
687 if (_inner_error_ != NULL) {
688 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
690 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
692 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
693 _g_object_unref0 (id_card);
694 #line 695 "moonshot-local-flat-file-store.c"
695 goto __catch6_g_error;
697 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
699 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
700 id_card_set_password (_tmp30_, _tmp26_);
701 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
703 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
705 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
706 _tmp35_ = g_key_file_get_string_list (_tmp32_, _tmp33_, "Services", &_tmp34_, &_inner_error_);
707 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
709 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
710 _tmp31__length1 = _tmp34_;
711 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
712 __tmp31__size_ = _tmp31__length1;
713 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
714 if (_inner_error_ != NULL) {
715 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
717 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
719 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
721 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
722 _g_object_unref0 (id_card);
723 #line 724 "moonshot-local-flat-file-store.c"
724 goto __catch6_g_error;
726 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
728 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
729 id_card_set_services (_tmp36_, _tmp31_, _tmp31__length1);
730 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
732 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
734 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
735 _tmp40_ = g_key_file_get_string (_tmp38_, _tmp39_, "DisplayName", &_inner_error_);
736 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
738 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
739 if (_inner_error_ != NULL) {
740 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
741 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
742 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
744 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
746 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
748 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
749 _g_object_unref0 (id_card);
750 #line 751 "moonshot-local-flat-file-store.c"
751 goto __catch6_g_error;
753 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
755 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
756 id_card_set_display_name (_tmp41_, _tmp37_);
757 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
759 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
761 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
762 _tmp45_ = g_key_file_has_key (_tmp43_, _tmp44_, "StorePassword", &_inner_error_);
763 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
765 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
766 if (_inner_error_ != NULL) {
767 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
769 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
770 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
771 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
773 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
775 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
777 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
778 _g_object_unref0 (id_card);
779 #line 780 "moonshot-local-flat-file-store.c"
780 goto __catch6_g_error;
782 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
784 #line 785 "moonshot-local-flat-file-store.c"
785 gchar* _tmp46_ = NULL;
786 GKeyFile* _tmp47_ = NULL;
787 const gchar* _tmp48_ = NULL;
788 gchar* _tmp49_ = NULL;
789 IdCard* _tmp50_ = NULL;
790 gchar* _tmp51_ = NULL;
791 gchar* _tmp52_ = NULL;
792 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
794 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
796 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
797 _tmp49_ = g_key_file_get_string (_tmp47_, _tmp48_, "StorePassword", &_inner_error_);
798 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
800 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
801 if (_inner_error_ != NULL) {
802 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
804 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
805 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
806 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
808 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
810 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
812 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
813 _g_object_unref0 (id_card);
814 #line 815 "moonshot-local-flat-file-store.c"
815 goto __catch6_g_error;
817 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
819 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
821 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
823 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
825 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
826 id_card_set_store_password (_tmp50_, g_strcmp0 (_tmp52_, "yes") == 0);
827 #line 94 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
829 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
831 #line 832 "moonshot-local-flat-file-store.c"
833 gboolean _tmp53_ = FALSE;
834 IdCard* _tmp54_ = NULL;
835 const gchar* _tmp55_ = NULL;
836 const gchar* _tmp56_ = NULL;
837 IdCard* _tmp60_ = NULL;
838 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
840 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
841 _tmp55_ = id_card_get_password (_tmp54_);
842 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
844 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
845 if (_tmp56_ != NULL) {
846 #line 847 "moonshot-local-flat-file-store.c"
847 IdCard* _tmp57_ = NULL;
848 const gchar* _tmp58_ = NULL;
849 const gchar* _tmp59_ = NULL;
850 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
852 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
853 _tmp58_ = id_card_get_password (_tmp57_);
854 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
856 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
857 _tmp53_ = g_strcmp0 (_tmp59_, "") != 0;
858 #line 859 "moonshot-local-flat-file-store.c"
860 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
862 #line 863 "moonshot-local-flat-file-store.c"
864 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
866 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
867 id_card_set_store_password (_tmp60_, _tmp53_);
868 #line 869 "moonshot-local-flat-file-store.c"
870 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
872 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
874 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
875 _tmp65_ = g_key_file_has_key (_tmp63_, _tmp64_, "Rules-Patterns", &_inner_error_);
876 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
878 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
879 if (_inner_error_ != NULL) {
880 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
882 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
883 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
884 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
886 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
888 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
890 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
891 _g_object_unref0 (id_card);
892 #line 893 "moonshot-local-flat-file-store.c"
893 goto __catch6_g_error;
895 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
897 #line 898 "moonshot-local-flat-file-store.c"
898 gboolean _tmp66_ = FALSE;
899 GKeyFile* _tmp67_ = NULL;
900 const gchar* _tmp68_ = NULL;
901 gboolean _tmp69_ = FALSE;
902 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
904 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
906 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
907 _tmp69_ = g_key_file_has_key (_tmp67_, _tmp68_, "Rules-AlwaysConfirm", &_inner_error_);
908 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
910 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
911 if (_inner_error_ != NULL) {
912 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
914 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
915 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
916 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
918 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
920 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
922 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
923 _g_object_unref0 (id_card);
924 #line 925 "moonshot-local-flat-file-store.c"
925 goto __catch6_g_error;
927 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
929 #line 930 "moonshot-local-flat-file-store.c"
931 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
933 #line 934 "moonshot-local-flat-file-store.c"
935 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
937 #line 938 "moonshot-local-flat-file-store.c"
938 gchar** rules_patterns = NULL;
939 GKeyFile* _tmp70_ = NULL;
940 const gchar* _tmp71_ = NULL;
942 gchar** _tmp73_ = NULL;
943 gint rules_patterns_length1 = 0;
944 gint _rules_patterns_size_ = 0;
945 gchar** rules_always_conf = NULL;
946 GKeyFile* _tmp74_ = NULL;
947 const gchar* _tmp75_ = NULL;
949 gchar** _tmp77_ = NULL;
950 gint rules_always_conf_length1 = 0;
951 gint _rules_always_conf_size_ = 0;
952 gchar** _tmp78_ = NULL;
953 gint _tmp78__length1 = 0;
954 gchar** _tmp79_ = NULL;
955 gint _tmp79__length1 = 0;
956 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
958 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
960 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
961 _tmp73_ = g_key_file_get_string_list (_tmp70_, _tmp71_, "Rules-Patterns", &_tmp72_, &_inner_error_);
962 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
963 rules_patterns = _tmp73_;
964 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
965 rules_patterns_length1 = _tmp72_;
966 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
967 _rules_patterns_size_ = rules_patterns_length1;
968 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
969 if (_inner_error_ != NULL) {
970 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
972 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
973 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
974 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
976 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
978 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
980 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
981 _g_object_unref0 (id_card);
982 #line 983 "moonshot-local-flat-file-store.c"
983 goto __catch6_g_error;
985 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
987 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
989 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
990 _tmp77_ = g_key_file_get_string_list (_tmp74_, _tmp75_, "Rules-AlwaysConfirm", &_tmp76_, &_inner_error_);
991 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
992 rules_always_conf = _tmp77_;
993 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
994 rules_always_conf_length1 = _tmp76_;
995 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
996 _rules_always_conf_size_ = rules_always_conf_length1;
997 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
998 if (_inner_error_ != NULL) {
999 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1000 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1001 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1003 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1004 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
1005 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1007 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1009 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1011 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1012 _g_object_unref0 (id_card);
1013 #line 1014 "moonshot-local-flat-file-store.c"
1014 goto __catch6_g_error;
1016 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1017 _tmp78_ = rules_patterns;
1018 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1019 _tmp78__length1 = rules_patterns_length1;
1020 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1021 _tmp79_ = rules_always_conf;
1022 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1023 _tmp79__length1 = rules_always_conf_length1;
1024 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1025 if (_tmp78__length1 == _tmp79__length1) {
1026 #line 1027 "moonshot-local-flat-file-store.c"
1028 gchar** _tmp80_ = NULL;
1029 gint _tmp80__length1 = 0;
1030 Rule* _tmp81_ = NULL;
1031 gint rules_length1 = 0;
1032 gint _rules_size_ = 0;
1033 IdCard* _tmp98_ = NULL;
1034 Rule* _tmp99_ = NULL;
1035 gint _tmp99__length1 = 0;
1036 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1037 _tmp80_ = rules_patterns;
1038 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1039 _tmp80__length1 = rules_patterns_length1;
1040 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1041 _tmp81_ = g_new0 (Rule, _tmp80__length1);
1042 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1044 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1045 rules_length1 = _tmp80__length1;
1046 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1047 _rules_size_ = rules_length1;
1048 #line 1049 "moonshot-local-flat-file-store.c"
1051 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1053 #line 1054 "moonshot-local-flat-file-store.c"
1055 gboolean _tmp82_ = FALSE;
1056 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1058 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1060 #line 1061 "moonshot-local-flat-file-store.c"
1062 gchar** _tmp85_ = NULL;
1063 gint _tmp85__length1 = 0;
1064 Rule* _tmp86_ = NULL;
1065 gint _tmp86__length1 = 0;
1067 gchar** _tmp88_ = NULL;
1068 gint _tmp88__length1 = 0;
1070 const gchar* _tmp90_ = NULL;
1071 gchar* _tmp91_ = NULL;
1072 gchar** _tmp92_ = NULL;
1073 gint _tmp92__length1 = 0;
1075 const gchar* _tmp94_ = NULL;
1076 gchar* _tmp95_ = NULL;
1079 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1081 #line 1082 "moonshot-local-flat-file-store.c"
1083 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1085 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1087 #line 1088 "moonshot-local-flat-file-store.c"
1089 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1091 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1093 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1094 _tmp85_ = rules_patterns;
1095 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1096 _tmp85__length1 = rules_patterns_length1;
1097 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1098 if (!(_tmp84_ < _tmp85__length1)) {
1099 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1101 #line 1102 "moonshot-local-flat-file-store.c"
1103 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1105 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1106 _tmp86__length1 = rules_length1;
1107 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1109 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1110 _tmp88_ = rules_patterns;
1111 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1112 _tmp88__length1 = rules_patterns_length1;
1113 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1115 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1116 _tmp90_ = _tmp88_[_tmp89_];
1117 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1118 _tmp91_ = g_strdup (_tmp90_);
1119 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1120 _tmp92_ = rules_always_conf;
1121 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1122 _tmp92__length1 = rules_always_conf_length1;
1123 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1125 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1126 _tmp94_ = _tmp92_[_tmp93_];
1127 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1128 _tmp95_ = g_strdup (_tmp94_);
1129 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1130 _g_free0 (_tmp96_.pattern);
1131 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1132 _tmp96_.pattern = _tmp91_;
1133 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1134 _g_free0 (_tmp96_.always_confirm);
1135 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1136 _tmp96_.always_confirm = _tmp95_;
1137 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1138 rule_destroy (&_tmp86_[_tmp87_]);
1139 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1140 _tmp86_[_tmp87_] = _tmp96_;
1141 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1142 _tmp97_ = _tmp86_[_tmp87_];
1143 #line 1144 "moonshot-local-flat-file-store.c"
1147 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1149 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1151 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1152 _tmp99__length1 = rules_length1;
1153 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1154 id_card_set_rules (_tmp98_, _tmp99_, _tmp99__length1);
1155 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1156 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1157 #line 1158 "moonshot-local-flat-file-store.c"
1159 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1160 rules_always_conf = (_vala_array_free (rules_always_conf, rules_always_conf_length1, (GDestroyNotify) g_free), NULL);
1161 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1162 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1163 #line 1164 "moonshot-local-flat-file-store.c"
1165 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1166 _tmp101_ = key_file;
1167 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1168 _tmp102_ = identity;
1169 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1170 _tmp103_ = g_key_file_get_string (_tmp101_, _tmp102_, "CA-Cert", &_inner_error_);
1171 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1172 _tmp100_ = _tmp103_;
1173 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1174 if (_inner_error_ != NULL) {
1175 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1177 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1178 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
1179 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1181 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1183 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1185 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1186 _g_object_unref0 (id_card);
1187 #line 1188 "moonshot-local-flat-file-store.c"
1188 goto __catch6_g_error;
1190 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1192 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1193 _tmp105_ = id_card_get_trust_anchor (_tmp104_);
1194 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1195 _tmp106_ = _tmp105_;
1196 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1197 trust_anchor_set_ca_cert (_tmp106_, _tmp100_);
1198 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1199 _tmp108_ = key_file;
1200 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1201 _tmp109_ = identity;
1202 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1203 _tmp110_ = g_key_file_get_string (_tmp108_, _tmp109_, "Subject", &_inner_error_);
1204 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1205 _tmp107_ = _tmp110_;
1206 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1207 if (_inner_error_ != NULL) {
1208 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1209 _g_free0 (_tmp100_);
1210 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1212 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1213 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
1214 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1216 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1218 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1220 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1221 _g_object_unref0 (id_card);
1222 #line 1223 "moonshot-local-flat-file-store.c"
1223 goto __catch6_g_error;
1225 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1227 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1228 _tmp112_ = id_card_get_trust_anchor (_tmp111_);
1229 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1230 _tmp113_ = _tmp112_;
1231 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1232 trust_anchor_set_subject (_tmp113_, _tmp107_);
1233 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1234 _tmp115_ = key_file;
1235 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1236 _tmp116_ = identity;
1237 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1238 _tmp117_ = g_key_file_get_string (_tmp115_, _tmp116_, "SubjectAlt", &_inner_error_);
1239 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1240 _tmp114_ = _tmp117_;
1241 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1242 if (_inner_error_ != NULL) {
1243 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1244 _g_free0 (_tmp107_);
1245 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1246 _g_free0 (_tmp100_);
1247 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1249 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1250 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
1251 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1253 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1255 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1257 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1258 _g_object_unref0 (id_card);
1259 #line 1260 "moonshot-local-flat-file-store.c"
1260 goto __catch6_g_error;
1262 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1264 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1265 _tmp119_ = id_card_get_trust_anchor (_tmp118_);
1266 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1267 _tmp120_ = _tmp119_;
1268 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1269 trust_anchor_set_subject_alt (_tmp120_, _tmp114_);
1270 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1271 _tmp122_ = key_file;
1272 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1273 _tmp123_ = identity;
1274 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1275 _tmp124_ = g_key_file_get_string (_tmp122_, _tmp123_, "ServerCert", &_inner_error_);
1276 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1277 _tmp121_ = _tmp124_;
1278 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1279 if (_inner_error_ != NULL) {
1280 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1281 _g_free0 (_tmp114_);
1282 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1283 _g_free0 (_tmp107_);
1284 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1285 _g_free0 (_tmp100_);
1286 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1288 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1289 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
1290 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1292 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1294 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1296 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1297 _g_object_unref0 (id_card);
1298 #line 1299 "moonshot-local-flat-file-store.c"
1299 goto __catch6_g_error;
1301 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1303 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1304 _tmp126_ = id_card_get_trust_anchor (_tmp125_);
1305 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1306 _tmp127_ = _tmp126_;
1307 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1308 trust_anchor_set_server_cert (_tmp127_, _tmp121_);
1309 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1310 _tmp128_ = self->priv->id_card_list;
1311 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1313 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1314 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp128_, _tmp129_);
1315 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1316 _g_free0 (_tmp121_);
1317 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1318 _g_free0 (_tmp114_);
1319 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1320 _g_free0 (_tmp107_);
1321 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1322 _g_free0 (_tmp100_);
1323 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1325 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1326 _tmp31_ = (_vala_array_free (_tmp31_, _tmp31__length1, (GDestroyNotify) g_free), NULL);
1327 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1329 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1331 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1333 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1334 _g_object_unref0 (id_card);
1335 #line 1336 "moonshot-local-flat-file-store.c"
1341 FILE* _tmp130_ = NULL;
1342 GError* _tmp131_ = NULL;
1343 const gchar* _tmp132_ = NULL;
1344 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1346 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1347 _inner_error_ = NULL;
1348 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1350 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1352 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1353 _tmp132_ = _tmp131_->message;
1354 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1355 fprintf (_tmp130_, "Error: %s\n", _tmp132_);
1356 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1358 #line 1359 "moonshot-local-flat-file-store.c"
1361 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1362 if (_inner_error_ != NULL) {
1363 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1364 _g_free0 (identity);
1365 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1366 identities_uris = (_vala_array_free (identities_uris, identities_uris_length1, (GDestroyNotify) g_free), NULL);
1367 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1368 _g_free0 (filename);
1369 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1371 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1372 _g_key_file_free0 (key_file);
1373 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1374 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1375 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1376 g_clear_error (&_inner_error_);
1377 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1379 #line 1380 "moonshot-local-flat-file-store.c"
1381 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1382 _g_free0 (identity);
1383 #line 1384 "moonshot-local-flat-file-store.c"
1387 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1388 identities_uris = (_vala_array_free (identities_uris, identities_uris_length1, (GDestroyNotify) g_free), NULL);
1389 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1390 _g_free0 (filename);
1391 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1393 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1394 _g_key_file_free0 (key_file);
1395 #line 1396 "moonshot-local-flat-file-store.c"
1399 static gchar* local_flat_file_store_get_data_dir (LocalFlatFileStore* self) {
1400 gchar* result = NULL;
1402 const gchar* _tmp0_ = NULL;
1403 gchar* _tmp1_ = NULL;
1404 const gchar* _tmp2_ = NULL;
1405 gboolean _tmp3_ = FALSE;
1406 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1407 g_return_val_if_fail (self != NULL, NULL);
1408 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1409 _tmp0_ = g_get_user_data_dir ();
1410 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1411 _tmp1_ = g_build_filename (_tmp0_, PACKAGE_TARNAME, NULL);
1412 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1414 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1416 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1418 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1419 _tmp3_ = g_file_test (_tmp2_, G_FILE_TEST_EXISTS);
1420 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1422 #line 1423 "moonshot-local-flat-file-store.c"
1423 const gchar* _tmp4_ = NULL;
1424 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1426 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1427 g_mkdir_with_parents (_tmp4_, 0700);
1428 #line 1429 "moonshot-local-flat-file-store.c"
1430 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1432 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1434 #line 1435 "moonshot-local-flat-file-store.c"
1438 static Rule* _vala_array_dup1 (Rule* self, int length) {
1441 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1442 result = g_new0 (Rule, length);
1443 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1444 for (i = 0; i < length; i++) {
1445 #line 1446 "moonshot-local-flat-file-store.c"
1447 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1448 rule_copy (&self[i], &_tmp0_);
1449 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1451 #line 1452 "moonshot-local-flat-file-store.c"
1453 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1455 #line 1456 "moonshot-local-flat-file-store.c"
1459 static gchar** _vala_array_dup2 (gchar** self, int length) {
1462 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1463 result = g_new0 (gchar*, length + 1);
1464 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1465 for (i = 0; i < length; i++) {
1466 #line 1467 "moonshot-local-flat-file-store.c"
1467 gchar* _tmp0_ = NULL;
1468 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1469 _tmp0_ = g_strdup (self[i]);
1470 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1472 #line 1473 "moonshot-local-flat-file-store.c"
1474 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1476 #line 1477 "moonshot-local-flat-file-store.c"
1480 static guint8* string_get_data (const gchar* self, int* result_length1) {
1483 gint res_length1 = 0;
1484 gint _res_size_ = 0;
1488 guint8* _tmp3_ = NULL;
1489 gint _tmp3__length1 = 0;
1490 guint8* _tmp4_ = NULL;
1491 gint _tmp4__length1 = 0;
1492 #line 1296 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1493 g_return_val_if_fail (self != NULL, NULL);
1494 #line 1297 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1495 res = (guint8*) self;
1496 #line 1297 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1498 #line 1297 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1499 _res_size_ = res_length1;
1500 #line 1298 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1501 _tmp0_ = strlen (self);
1502 #line 1298 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1504 #line 1298 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1505 res_length1 = (gint) _tmp1_;
1506 #line 1298 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1507 _tmp2_ = res_length1;
1508 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1510 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1511 _tmp3__length1 = res_length1;
1512 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1514 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1515 _tmp4__length1 = _tmp3__length1;
1516 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1517 if (result_length1) {
1518 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1519 *result_length1 = _tmp4__length1;
1520 #line 1521 "moonshot-local-flat-file-store.c"
1522 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1524 #line 1299 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1526 #line 1527 "moonshot-local-flat-file-store.c"
1530 void local_flat_file_store_store_id_cards (LocalFlatFileStore* self) {
1531 GKeyFile* key_file = NULL;
1532 GKeyFile* _tmp0_ = NULL;
1534 GKeyFile* _tmp153_ = NULL;
1535 gchar* _tmp154_ = NULL;
1536 GError * _inner_error_ = NULL;
1537 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1538 g_return_if_fail (self != NULL);
1539 #line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1540 _tmp0_ = g_key_file_new ();
1541 #line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1543 #line 1544 "moonshot-local-flat-file-store.c"
1545 GeeLinkedList* _id_card_list = NULL;
1546 GeeLinkedList* _tmp1_ = NULL;
1547 GeeLinkedList* _tmp2_ = NULL;
1548 gint _id_card_size = 0;
1549 GeeLinkedList* _tmp3_ = NULL;
1552 gint _id_card_index = 0;
1553 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1554 _tmp1_ = self->priv->id_card_list;
1555 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1556 _tmp2_ = _g_object_ref0 (_tmp1_);
1557 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1558 _id_card_list = _tmp2_;
1559 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1560 _tmp3_ = _id_card_list;
1561 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1562 _tmp4_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp3_);
1563 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1565 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1566 _id_card_size = _tmp5_;
1567 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1568 _id_card_index = -1;
1569 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1571 #line 1572 "moonshot-local-flat-file-store.c"
1575 IdCard* id_card = NULL;
1576 GeeLinkedList* _tmp9_ = NULL;
1578 gpointer _tmp11_ = NULL;
1580 IdCard* _tmp12_ = NULL;
1581 Rule* _tmp13_ = NULL;
1582 gint _tmp13__length1 = 0;
1583 Rule* _tmp14_ = NULL;
1584 gint _tmp14__length1 = 0;
1585 Rule* _tmp15_ = NULL;
1586 gint _tmp15__length1 = 0;
1587 gint rules_length1 = 0;
1588 gint _rules_size_ = 0;
1589 gchar** services = NULL;
1590 IdCard* _tmp16_ = NULL;
1591 gchar** _tmp17_ = NULL;
1592 gint _tmp17__length1 = 0;
1593 gchar** _tmp18_ = NULL;
1594 gint _tmp18__length1 = 0;
1595 gchar** _tmp19_ = NULL;
1596 gint _tmp19__length1 = 0;
1597 gint services_length1 = 0;
1598 gint _services_size_ = 0;
1599 gchar** empty = NULL;
1600 gchar** _tmp20_ = NULL;
1601 gint empty_length1 = 0;
1602 gint _empty_size_ = 0;
1603 gchar** rules_patterns = NULL;
1604 Rule* _tmp21_ = NULL;
1605 gint _tmp21__length1 = 0;
1606 gchar** _tmp22_ = NULL;
1607 gint rules_patterns_length1 = 0;
1608 gint _rules_patterns_size_ = 0;
1609 gchar** rules_always_conf = NULL;
1610 Rule* _tmp23_ = NULL;
1611 gint _tmp23__length1 = 0;
1612 gchar** _tmp24_ = NULL;
1613 gint rules_always_conf_length1 = 0;
1614 gint _rules_always_conf_size_ = 0;
1615 const gchar* _tmp45_ = NULL;
1616 IdCard* _tmp46_ = NULL;
1617 const gchar* _tmp47_ = NULL;
1618 const gchar* _tmp48_ = NULL;
1619 GKeyFile* _tmp49_ = NULL;
1620 IdCard* _tmp50_ = NULL;
1621 const gchar* _tmp51_ = NULL;
1622 const gchar* _tmp52_ = NULL;
1623 const gchar* _tmp53_ = NULL;
1624 IdCard* _tmp54_ = NULL;
1625 const gchar* _tmp55_ = NULL;
1626 const gchar* _tmp56_ = NULL;
1627 GKeyFile* _tmp57_ = NULL;
1628 IdCard* _tmp58_ = NULL;
1629 const gchar* _tmp59_ = NULL;
1630 const gchar* _tmp60_ = NULL;
1631 const gchar* _tmp61_ = NULL;
1632 IdCard* _tmp62_ = NULL;
1633 const gchar* _tmp63_ = NULL;
1634 const gchar* _tmp64_ = NULL;
1635 GKeyFile* _tmp65_ = NULL;
1636 IdCard* _tmp66_ = NULL;
1637 const gchar* _tmp67_ = NULL;
1638 const gchar* _tmp68_ = NULL;
1639 gboolean _tmp69_ = FALSE;
1640 IdCard* _tmp70_ = NULL;
1641 gboolean _tmp71_ = FALSE;
1642 gboolean _tmp72_ = FALSE;
1643 gchar** _tmp87_ = NULL;
1644 gchar** _tmp88_ = NULL;
1645 gint _tmp88__length1 = 0;
1646 gint _tmp87__length1 = 0;
1647 gint __tmp87__size_ = 0;
1648 GKeyFile* _tmp90_ = NULL;
1649 IdCard* _tmp91_ = NULL;
1650 const gchar* _tmp92_ = NULL;
1651 const gchar* _tmp93_ = NULL;
1652 Rule* _tmp94_ = NULL;
1653 gint _tmp94__length1 = 0;
1654 const gchar* _tmp105_ = NULL;
1655 IdCard* _tmp106_ = NULL;
1656 gboolean _tmp107_ = FALSE;
1657 gboolean _tmp108_ = FALSE;
1658 GKeyFile* _tmp109_ = NULL;
1659 IdCard* _tmp110_ = NULL;
1660 const gchar* _tmp111_ = NULL;
1661 const gchar* _tmp112_ = NULL;
1662 const gchar* _tmp113_ = NULL;
1663 IdCard* _tmp114_ = NULL;
1664 TrustAnchor* _tmp115_ = NULL;
1665 TrustAnchor* _tmp116_ = NULL;
1666 const gchar* _tmp117_ = NULL;
1667 const gchar* _tmp118_ = NULL;
1668 GKeyFile* _tmp119_ = NULL;
1669 IdCard* _tmp120_ = NULL;
1670 const gchar* _tmp121_ = NULL;
1671 const gchar* _tmp122_ = NULL;
1672 const gchar* _tmp123_ = NULL;
1673 IdCard* _tmp124_ = NULL;
1674 TrustAnchor* _tmp125_ = NULL;
1675 TrustAnchor* _tmp126_ = NULL;
1676 const gchar* _tmp127_ = NULL;
1677 const gchar* _tmp128_ = NULL;
1678 GKeyFile* _tmp129_ = NULL;
1679 IdCard* _tmp130_ = NULL;
1680 const gchar* _tmp131_ = NULL;
1681 const gchar* _tmp132_ = NULL;
1682 const gchar* _tmp133_ = NULL;
1683 IdCard* _tmp134_ = NULL;
1684 TrustAnchor* _tmp135_ = NULL;
1685 TrustAnchor* _tmp136_ = NULL;
1686 const gchar* _tmp137_ = NULL;
1687 const gchar* _tmp138_ = NULL;
1688 GKeyFile* _tmp139_ = NULL;
1689 IdCard* _tmp140_ = NULL;
1690 const gchar* _tmp141_ = NULL;
1691 const gchar* _tmp142_ = NULL;
1692 const gchar* _tmp143_ = NULL;
1693 IdCard* _tmp144_ = NULL;
1694 TrustAnchor* _tmp145_ = NULL;
1695 TrustAnchor* _tmp146_ = NULL;
1696 const gchar* _tmp147_ = NULL;
1697 const gchar* _tmp148_ = NULL;
1698 GKeyFile* _tmp149_ = NULL;
1699 IdCard* _tmp150_ = NULL;
1700 const gchar* _tmp151_ = NULL;
1701 const gchar* _tmp152_ = NULL;
1702 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1703 _tmp6_ = _id_card_index;
1704 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1705 _id_card_index = _tmp6_ + 1;
1706 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1707 _tmp7_ = _id_card_index;
1708 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1709 _tmp8_ = _id_card_size;
1710 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1711 if (!(_tmp7_ < _tmp8_)) {
1712 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1714 #line 1715 "moonshot-local-flat-file-store.c"
1716 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1717 _tmp9_ = _id_card_list;
1718 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1719 _tmp10_ = _id_card_index;
1720 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1721 _tmp11_ = gee_abstract_list_get ((GeeAbstractList*) _tmp9_, _tmp10_);
1722 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1723 id_card = (IdCard*) _tmp11_;
1724 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1726 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1727 _tmp13_ = id_card_get_rules (_tmp12_, &_tmp13__length1);
1728 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1730 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1731 _tmp14__length1 = _tmp13__length1;
1732 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1733 _tmp15_ = (_tmp14_ != NULL) ? _vala_array_dup1 (_tmp14_, _tmp14__length1) : ((gpointer) _tmp14_);
1734 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1735 _tmp15__length1 = _tmp14__length1;
1736 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1738 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1739 rules_length1 = _tmp15__length1;
1740 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1741 _rules_size_ = rules_length1;
1742 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1744 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1745 _tmp17_ = id_card_get_services (_tmp16_, &_tmp17__length1);
1746 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1748 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1749 _tmp18__length1 = _tmp17__length1;
1750 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1751 _tmp19_ = (_tmp18_ != NULL) ? _vala_array_dup2 (_tmp18_, _tmp18__length1) : ((gpointer) _tmp18_);
1752 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1753 _tmp19__length1 = _tmp18__length1;
1754 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1756 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1757 services_length1 = _tmp19__length1;
1758 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1759 _services_size_ = services_length1;
1760 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1761 _tmp20_ = g_new0 (gchar*, 0 + 1);
1762 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1764 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1766 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1767 _empty_size_ = empty_length1;
1768 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1770 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1771 _tmp21__length1 = rules_length1;
1772 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1773 _tmp22_ = g_new0 (gchar*, _tmp21__length1 + 1);
1774 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1775 rules_patterns = _tmp22_;
1776 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1777 rules_patterns_length1 = _tmp21__length1;
1778 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1779 _rules_patterns_size_ = rules_patterns_length1;
1780 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1782 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1783 _tmp23__length1 = rules_length1;
1784 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1785 _tmp24_ = g_new0 (gchar*, _tmp23__length1 + 1);
1786 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1787 rules_always_conf = _tmp24_;
1788 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1789 rules_always_conf_length1 = _tmp23__length1;
1790 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1791 _rules_always_conf_size_ = rules_always_conf_length1;
1792 #line 1793 "moonshot-local-flat-file-store.c"
1795 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1797 #line 1798 "moonshot-local-flat-file-store.c"
1799 gboolean _tmp25_ = FALSE;
1800 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1802 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1804 #line 1805 "moonshot-local-flat-file-store.c"
1806 Rule* _tmp28_ = NULL;
1807 gint _tmp28__length1 = 0;
1808 gchar** _tmp29_ = NULL;
1809 gint _tmp29__length1 = 0;
1811 Rule* _tmp31_ = NULL;
1812 gint _tmp31__length1 = 0;
1815 const gchar* _tmp34_ = NULL;
1816 gchar* _tmp35_ = NULL;
1817 gchar* _tmp36_ = NULL;
1818 gchar** _tmp37_ = NULL;
1819 gint _tmp37__length1 = 0;
1821 Rule* _tmp39_ = NULL;
1822 gint _tmp39__length1 = 0;
1825 const gchar* _tmp42_ = NULL;
1826 gchar* _tmp43_ = NULL;
1827 gchar* _tmp44_ = NULL;
1828 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1830 #line 1831 "moonshot-local-flat-file-store.c"
1832 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1834 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1836 #line 1837 "moonshot-local-flat-file-store.c"
1838 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1840 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1842 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1844 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1845 _tmp28__length1 = rules_length1;
1846 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1847 if (!(_tmp27_ < _tmp28__length1)) {
1848 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1850 #line 1851 "moonshot-local-flat-file-store.c"
1852 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1853 _tmp29_ = rules_patterns;
1854 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1855 _tmp29__length1 = rules_patterns_length1;
1856 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1858 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1860 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1861 _tmp31__length1 = rules_length1;
1862 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1864 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1865 _tmp33_ = _tmp31_[_tmp32_];
1866 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1867 _tmp34_ = _tmp33_.pattern;
1868 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1869 _tmp35_ = g_strdup (_tmp34_);
1870 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1871 _g_free0 (_tmp29_[_tmp30_]);
1872 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1873 _tmp29_[_tmp30_] = _tmp35_;
1874 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1875 _tmp36_ = _tmp29_[_tmp30_];
1876 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1877 _tmp37_ = rules_always_conf;
1878 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1879 _tmp37__length1 = rules_always_conf_length1;
1880 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1882 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1884 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1885 _tmp39__length1 = rules_length1;
1886 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1888 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1889 _tmp41_ = _tmp39_[_tmp40_];
1890 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1891 _tmp42_ = _tmp41_.always_confirm;
1892 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1893 _tmp43_ = g_strdup (_tmp42_);
1894 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1895 _g_free0 (_tmp37_[_tmp38_]);
1896 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1897 _tmp37_[_tmp38_] = _tmp43_;
1898 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1899 _tmp44_ = _tmp37_[_tmp38_];
1900 #line 1901 "moonshot-local-flat-file-store.c"
1904 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1906 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1907 _tmp47_ = id_card_get_issuer (_tmp46_);
1908 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1910 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1912 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1913 if (_tmp45_ == NULL) {
1914 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1916 #line 1917 "moonshot-local-flat-file-store.c"
1918 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1920 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1922 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1923 _tmp51_ = id_card_get_display_name (_tmp50_);
1924 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1926 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1927 g_key_file_set_string (_tmp49_, _tmp52_, "Issuer", _tmp45_);
1928 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1930 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1931 _tmp55_ = id_card_get_display_name (_tmp54_);
1932 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1934 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1936 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1937 if (_tmp53_ == NULL) {
1938 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1940 #line 1941 "moonshot-local-flat-file-store.c"
1942 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1944 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1946 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1947 _tmp59_ = id_card_get_display_name (_tmp58_);
1948 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1950 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1951 g_key_file_set_string (_tmp57_, _tmp60_, "DisplayName", _tmp53_);
1952 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1954 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1955 _tmp63_ = id_card_get_username (_tmp62_);
1956 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1958 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1960 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1961 if (_tmp61_ == NULL) {
1962 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1964 #line 1965 "moonshot-local-flat-file-store.c"
1966 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1968 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1970 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1971 _tmp67_ = id_card_get_display_name (_tmp66_);
1972 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1974 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1975 g_key_file_set_string (_tmp65_, _tmp68_, "Username", _tmp61_);
1976 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1978 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1979 _tmp71_ = id_card_get_store_password (_tmp70_);
1980 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1982 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1984 #line 1985 "moonshot-local-flat-file-store.c"
1985 IdCard* _tmp73_ = NULL;
1986 const gchar* _tmp74_ = NULL;
1987 const gchar* _tmp75_ = NULL;
1988 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1990 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1991 _tmp74_ = id_card_get_password (_tmp73_);
1992 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1994 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
1995 _tmp69_ = _tmp75_ != NULL;
1996 #line 1997 "moonshot-local-flat-file-store.c"
1998 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2000 #line 2001 "moonshot-local-flat-file-store.c"
2002 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2004 #line 2005 "moonshot-local-flat-file-store.c"
2005 GKeyFile* _tmp76_ = NULL;
2006 IdCard* _tmp77_ = NULL;
2007 const gchar* _tmp78_ = NULL;
2008 const gchar* _tmp79_ = NULL;
2009 IdCard* _tmp80_ = NULL;
2010 const gchar* _tmp81_ = NULL;
2011 const gchar* _tmp82_ = NULL;
2012 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2014 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2016 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2017 _tmp78_ = id_card_get_display_name (_tmp77_);
2018 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2020 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2022 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2023 _tmp81_ = id_card_get_password (_tmp80_);
2024 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2026 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2027 g_key_file_set_string (_tmp76_, _tmp79_, "Password", _tmp82_);
2028 #line 2029 "moonshot-local-flat-file-store.c"
2030 GKeyFile* _tmp83_ = NULL;
2031 IdCard* _tmp84_ = NULL;
2032 const gchar* _tmp85_ = NULL;
2033 const gchar* _tmp86_ = NULL;
2034 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2036 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2038 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2039 _tmp85_ = id_card_get_display_name (_tmp84_);
2040 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2042 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2043 g_key_file_set_string (_tmp83_, _tmp86_, "Password", "");
2044 #line 2045 "moonshot-local-flat-file-store.c"
2046 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2048 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2049 _tmp88__length1 = services_length1;
2050 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2052 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2053 _tmp87__length1 = _tmp88__length1;
2054 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2055 __tmp87__size_ = _tmp87__length1;
2056 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2057 if (_tmp87_ == NULL) {
2058 #line 2059 "moonshot-local-flat-file-store.c"
2059 gchar** _tmp89_ = NULL;
2060 gint _tmp89__length1 = 0;
2061 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2063 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2064 _tmp89__length1 = empty_length1;
2065 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2067 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2068 _tmp87__length1 = _tmp89__length1;
2069 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2070 __tmp87__size_ = _tmp87__length1;
2071 #line 2072 "moonshot-local-flat-file-store.c"
2073 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2075 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2077 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2078 _tmp92_ = id_card_get_display_name (_tmp91_);
2079 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2081 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2082 g_key_file_set_string_list (_tmp90_, _tmp93_, "Services", (const gchar* const*) _tmp87_, _tmp87__length1);
2083 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2085 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2086 _tmp94__length1 = rules_length1;
2087 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2088 if (_tmp94__length1 > 0) {
2089 #line 2090 "moonshot-local-flat-file-store.c"
2090 GKeyFile* _tmp95_ = NULL;
2091 IdCard* _tmp96_ = NULL;
2092 const gchar* _tmp97_ = NULL;
2093 const gchar* _tmp98_ = NULL;
2094 gchar** _tmp99_ = NULL;
2095 gint _tmp99__length1 = 0;
2096 GKeyFile* _tmp100_ = NULL;
2097 IdCard* _tmp101_ = NULL;
2098 const gchar* _tmp102_ = NULL;
2099 const gchar* _tmp103_ = NULL;
2100 gchar** _tmp104_ = NULL;
2101 gint _tmp104__length1 = 0;
2102 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2104 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2106 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2107 _tmp97_ = id_card_get_display_name (_tmp96_);
2108 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2110 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2111 _tmp99_ = rules_patterns;
2112 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2113 _tmp99__length1 = rules_patterns_length1;
2114 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2115 g_key_file_set_string_list (_tmp95_, _tmp98_, "Rules-Patterns", (const gchar* const*) _tmp99_, _tmp99__length1);
2116 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2117 _tmp100_ = key_file;
2118 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2120 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2121 _tmp102_ = id_card_get_display_name (_tmp101_);
2122 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2123 _tmp103_ = _tmp102_;
2124 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2125 _tmp104_ = rules_always_conf;
2126 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2127 _tmp104__length1 = rules_always_conf_length1;
2128 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2129 g_key_file_set_string_list (_tmp100_, _tmp103_, "Rules-AlwaysConfirm", (const gchar* const*) _tmp104_, _tmp104__length1);
2130 #line 2131 "moonshot-local-flat-file-store.c"
2132 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2134 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2135 _tmp107_ = id_card_get_store_password (_tmp106_);
2136 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2137 _tmp108_ = _tmp107_;
2138 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2140 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2142 #line 2143 "moonshot-local-flat-file-store.c"
2144 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2146 #line 2147 "moonshot-local-flat-file-store.c"
2148 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2149 _tmp109_ = key_file;
2150 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2152 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2153 _tmp111_ = id_card_get_display_name (_tmp110_);
2154 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2155 _tmp112_ = _tmp111_;
2156 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2157 g_key_file_set_string (_tmp109_, _tmp112_, "StorePassword", _tmp105_);
2158 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2160 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2161 _tmp115_ = id_card_get_trust_anchor (_tmp114_);
2162 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2163 _tmp116_ = _tmp115_;
2164 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2165 _tmp117_ = trust_anchor_get_ca_cert (_tmp116_);
2166 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2167 _tmp118_ = _tmp117_;
2168 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2169 _tmp113_ = _tmp118_;
2170 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2171 if (_tmp113_ == NULL) {
2172 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2174 #line 2175 "moonshot-local-flat-file-store.c"
2176 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2177 _tmp119_ = key_file;
2178 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2180 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2181 _tmp121_ = id_card_get_display_name (_tmp120_);
2182 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2183 _tmp122_ = _tmp121_;
2184 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2185 g_key_file_set_string (_tmp119_, _tmp122_, "CA-Cert", _tmp113_);
2186 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2188 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2189 _tmp125_ = id_card_get_trust_anchor (_tmp124_);
2190 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2191 _tmp126_ = _tmp125_;
2192 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2193 _tmp127_ = trust_anchor_get_subject (_tmp126_);
2194 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2195 _tmp128_ = _tmp127_;
2196 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2197 _tmp123_ = _tmp128_;
2198 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2199 if (_tmp123_ == NULL) {
2200 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2202 #line 2203 "moonshot-local-flat-file-store.c"
2204 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2205 _tmp129_ = key_file;
2206 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2208 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2209 _tmp131_ = id_card_get_display_name (_tmp130_);
2210 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2211 _tmp132_ = _tmp131_;
2212 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2213 g_key_file_set_string (_tmp129_, _tmp132_, "Subject", _tmp123_);
2214 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2216 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2217 _tmp135_ = id_card_get_trust_anchor (_tmp134_);
2218 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2219 _tmp136_ = _tmp135_;
2220 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2221 _tmp137_ = trust_anchor_get_subject_alt (_tmp136_);
2222 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2223 _tmp138_ = _tmp137_;
2224 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2225 _tmp133_ = _tmp138_;
2226 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2227 if (_tmp133_ == NULL) {
2228 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2230 #line 2231 "moonshot-local-flat-file-store.c"
2232 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2233 _tmp139_ = key_file;
2234 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2236 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2237 _tmp141_ = id_card_get_display_name (_tmp140_);
2238 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2239 _tmp142_ = _tmp141_;
2240 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2241 g_key_file_set_string (_tmp139_, _tmp142_, "SubjectAlt", _tmp133_);
2242 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2244 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2245 _tmp145_ = id_card_get_trust_anchor (_tmp144_);
2246 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2247 _tmp146_ = _tmp145_;
2248 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2249 _tmp147_ = trust_anchor_get_server_cert (_tmp146_);
2250 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2251 _tmp148_ = _tmp147_;
2252 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2253 _tmp143_ = _tmp148_;
2254 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2255 if (_tmp143_ == NULL) {
2256 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2258 #line 2259 "moonshot-local-flat-file-store.c"
2260 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2261 _tmp149_ = key_file;
2262 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2264 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2265 _tmp151_ = id_card_get_display_name (_tmp150_);
2266 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2267 _tmp152_ = _tmp151_;
2268 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2269 g_key_file_set_string (_tmp149_, _tmp152_, "ServerCert", _tmp143_);
2270 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2271 rules_always_conf = (_vala_array_free (rules_always_conf, rules_always_conf_length1, (GDestroyNotify) g_free), NULL);
2272 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2273 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
2274 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2275 empty = (_vala_array_free (empty, empty_length1, (GDestroyNotify) g_free), NULL);
2276 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2277 services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_free), NULL);
2278 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2279 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
2280 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2281 _g_object_unref0 (id_card);
2282 #line 2283 "moonshot-local-flat-file-store.c"
2284 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2285 _g_object_unref0 (_id_card_list);
2286 #line 2287 "moonshot-local-flat-file-store.c"
2288 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2289 _tmp153_ = key_file;
2290 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2291 _tmp154_ = g_key_file_to_data (_tmp153_, NULL, NULL);
2292 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2294 #line 2295 "moonshot-local-flat-file-store.c"
2297 gchar* _tmp155_ = NULL;
2298 gchar* filename = NULL;
2299 const gchar* _tmp156_ = NULL;
2300 gchar* _tmp157_ = NULL;
2302 const gchar* _tmp158_ = NULL;
2303 GFile* _tmp159_ = NULL;
2304 GFileOutputStream* stream = NULL;
2305 GFile* _tmp160_ = NULL;
2306 GFileOutputStream* _tmp161_ = NULL;
2307 GFileOutputStream* _tmp162_ = NULL;
2308 const gchar* _tmp163_ = NULL;
2309 guint8* _tmp164_ = NULL;
2310 gint _tmp164__length1 = 0;
2311 guint8* _tmp165_ = NULL;
2312 gint _tmp165__length1 = 0;
2313 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2314 _tmp155_ = local_flat_file_store_get_data_dir (self);
2315 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2317 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2319 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2320 _tmp157_ = g_build_filename (_tmp156_, LOCAL_FLAT_FILE_STORE_FILE_NAME, NULL);
2321 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2322 filename = _tmp157_;
2323 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2324 _tmp158_ = filename;
2325 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2326 _tmp159_ = g_file_new_for_path (_tmp158_);
2327 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2329 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2331 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2332 _tmp161_ = g_file_replace (_tmp160_, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, &_inner_error_);
2333 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2335 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2336 if (_inner_error_ != NULL) {
2337 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2338 _g_object_unref0 (file);
2339 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2340 _g_free0 (filename);
2341 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2343 #line 2344 "moonshot-local-flat-file-store.c"
2344 goto __catch7_g_error;
2346 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2348 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2350 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2351 _tmp164_ = string_get_data (_tmp163_, &_tmp164__length1);
2352 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2353 _tmp165_ = _tmp164_;
2354 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2355 _tmp165__length1 = _tmp164__length1;
2356 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2357 g_output_stream_write ((GOutputStream*) _tmp162_, _tmp165_, (gsize) _tmp165__length1, NULL, &_inner_error_);
2358 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2359 if (_inner_error_ != NULL) {
2360 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2361 _g_object_unref0 (stream);
2362 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2363 _g_object_unref0 (file);
2364 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2365 _g_free0 (filename);
2366 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2368 #line 2369 "moonshot-local-flat-file-store.c"
2369 goto __catch7_g_error;
2371 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2372 _g_object_unref0 (stream);
2373 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2374 _g_object_unref0 (file);
2375 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2376 _g_free0 (filename);
2377 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2379 #line 2380 "moonshot-local-flat-file-store.c"
2385 FILE* _tmp166_ = NULL;
2386 GError* _tmp167_ = NULL;
2387 const gchar* _tmp168_ = NULL;
2388 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2390 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2391 _inner_error_ = NULL;
2392 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2394 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2396 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2397 _tmp168_ = _tmp167_->message;
2398 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2399 fprintf (_tmp166_, "Error: %s\n", _tmp168_);
2400 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2402 #line 2403 "moonshot-local-flat-file-store.c"
2405 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2406 if (_inner_error_ != NULL) {
2407 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2409 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2410 _g_key_file_free0 (key_file);
2411 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2412 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2413 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2414 g_clear_error (&_inner_error_);
2415 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2417 #line 2418 "moonshot-local-flat-file-store.c"
2419 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2420 local_flat_file_store_load_id_cards (self);
2421 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2423 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2424 _g_key_file_free0 (key_file);
2425 #line 2426 "moonshot-local-flat-file-store.c"
2429 LocalFlatFileStore* local_flat_file_store_construct (GType object_type) {
2430 LocalFlatFileStore * self = NULL;
2431 GeeLinkedList* _tmp0_ = NULL;
2432 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2433 self = (LocalFlatFileStore*) g_object_new (object_type, NULL);
2434 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2435 _tmp0_ = gee_linked_list_new (TYPE_ID_CARD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
2436 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2437 _g_object_unref0 (self->priv->id_card_list);
2438 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2439 self->priv->id_card_list = _tmp0_;
2440 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2441 local_flat_file_store_load_id_cards (self);
2442 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2444 #line 2445 "moonshot-local-flat-file-store.c"
2448 LocalFlatFileStore* local_flat_file_store_new (void) {
2449 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2450 return local_flat_file_store_construct (TYPE_LOCAL_FLAT_FILE_STORE);
2451 #line 2452 "moonshot-local-flat-file-store.c"
2455 static void local_flat_file_store_class_init (LocalFlatFileStoreClass * klass) {
2456 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2457 local_flat_file_store_parent_class = g_type_class_peek_parent (klass);
2458 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2459 g_type_class_add_private (klass, sizeof (LocalFlatFileStorePrivate));
2460 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2461 G_OBJECT_CLASS (klass)->finalize = local_flat_file_store_finalize;
2462 #line 2463 "moonshot-local-flat-file-store.c"
2466 static void local_flat_file_store_iidentity_card_store_interface_init (IIdentityCardStoreIface * iface) {
2467 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2468 local_flat_file_store_iidentity_card_store_parent_iface = g_type_interface_peek_parent (iface);
2469 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2470 iface->add_card = (void (*)(IIdentityCardStore*, IdCard*)) local_flat_file_store_real_add_card;
2471 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2472 iface->update_card = (IdCard* (*)(IIdentityCardStore*, IdCard*)) local_flat_file_store_real_update_card;
2473 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2474 iface->remove_card = (gboolean (*)(IIdentityCardStore*, IdCard*)) local_flat_file_store_real_remove_card;
2475 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2476 iface->get_card_list = (GeeLinkedList* (*)(IIdentityCardStore*)) local_flat_file_store_real_get_card_list;
2477 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2478 iface->get_store_type = (IIdentityCardStoreStoreType (*)(IIdentityCardStore*)) local_flat_file_store_real_get_store_type;
2479 #line 2480 "moonshot-local-flat-file-store.c"
2483 static void local_flat_file_store_instance_init (LocalFlatFileStore * self) {
2484 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2485 self->priv = LOCAL_FLAT_FILE_STORE_GET_PRIVATE (self);
2486 #line 2487 "moonshot-local-flat-file-store.c"
2490 static void local_flat_file_store_finalize (GObject* obj) {
2491 LocalFlatFileStore * self;
2492 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2493 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LOCAL_FLAT_FILE_STORE, LocalFlatFileStore);
2494 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2495 _g_object_unref0 (self->priv->id_card_list);
2496 #line 34 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-local-flat-file-store.vala"
2497 G_OBJECT_CLASS (local_flat_file_store_parent_class)->finalize (obj);
2498 #line 2499 "moonshot-local-flat-file-store.c"
2502 GType local_flat_file_store_get_type (void) {
2503 static volatile gsize local_flat_file_store_type_id__volatile = 0;
2504 if (g_once_init_enter (&local_flat_file_store_type_id__volatile)) {
2505 static const GTypeInfo g_define_type_info = { sizeof (LocalFlatFileStoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) local_flat_file_store_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LocalFlatFileStore), 0, (GInstanceInitFunc) local_flat_file_store_instance_init, NULL };
2506 static const GInterfaceInfo iidentity_card_store_info = { (GInterfaceInitFunc) local_flat_file_store_iidentity_card_store_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
2507 GType local_flat_file_store_type_id;
2508 local_flat_file_store_type_id = g_type_register_static (G_TYPE_OBJECT, "LocalFlatFileStore", &g_define_type_info, 0);
2509 g_type_add_interface_static (local_flat_file_store_type_id, TYPE_IIDENTITY_CARD_STORE, &iidentity_card_store_info);
2510 g_once_init_leave (&local_flat_file_store_type_id__volatile, local_flat_file_store_type_id);
2512 return local_flat_file_store_type_id__volatile;
2516 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2517 if ((array != NULL) && (destroy_func != NULL)) {
2519 for (i = 0; i < array_length; i = i + 1) {
2520 if (((gpointer*) array)[i] != NULL) {
2521 destroy_func (((gpointer*) array)[i]);
2528 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2529 _vala_array_destroy (array, array_length, destroy_func);