1 /* moonshot-keyring-store.c generated by valac 0.26.1, the Vala compiler
2 * generated from moonshot-keyring-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>
41 #include <gnome-keyring.h>
45 #define TYPE_IIDENTITY_CARD_STORE (iidentity_card_store_get_type ())
46 #define IIDENTITY_CARD_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IIDENTITY_CARD_STORE, IIdentityCardStore))
47 #define IS_IIDENTITY_CARD_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IIDENTITY_CARD_STORE))
48 #define IIDENTITY_CARD_STORE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_IIDENTITY_CARD_STORE, IIdentityCardStoreIface))
50 typedef struct _IIdentityCardStore IIdentityCardStore;
51 typedef struct _IIdentityCardStoreIface IIdentityCardStoreIface;
53 #define TYPE_ID_CARD (id_card_get_type ())
54 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
55 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
56 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
57 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
58 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
60 typedef struct _IdCard IdCard;
61 typedef struct _IdCardClass IdCardClass;
63 #define IIDENTITY_CARD_STORE_TYPE_STORE_TYPE (iidentity_card_store_store_type_get_type ())
65 #define TYPE_KEYRING_STORE (keyring_store_get_type ())
66 #define KEYRING_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEYRING_STORE, KeyringStore))
67 #define KEYRING_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEYRING_STORE, KeyringStoreClass))
68 #define IS_KEYRING_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEYRING_STORE))
69 #define IS_KEYRING_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEYRING_STORE))
70 #define KEYRING_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEYRING_STORE, KeyringStoreClass))
72 typedef struct _KeyringStore KeyringStore;
73 typedef struct _KeyringStoreClass KeyringStoreClass;
74 typedef struct _KeyringStorePrivate KeyringStorePrivate;
75 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
76 #define __g_list_free__gnome_keyring_found_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gnome_keyring_found_free0_ (var), NULL)))
77 #define _gnome_keyring_attribute_list_free0(var) ((var == NULL) ? NULL : (var = (gnome_keyring_attribute_list_free (var), NULL)))
79 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
80 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
81 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
82 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
83 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
84 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
86 typedef struct _TrustAnchor TrustAnchor;
87 typedef struct _TrustAnchorClass TrustAnchorClass;
88 #define _g_free0(var) (var = (g_free (var), NULL))
90 #define TYPE_RULE (rule_get_type ())
91 typedef struct _Rule Rule;
94 IIDENTITY_CARD_STORE_STORE_TYPE_FLAT_FILE,
95 IIDENTITY_CARD_STORE_STORE_TYPE_KEYRING
96 } IIdentityCardStoreStoreType;
98 struct _IIdentityCardStoreIface {
99 GTypeInterface parent_iface;
100 void (*add_card) (IIdentityCardStore* self, IdCard* card);
101 gboolean (*remove_card) (IIdentityCardStore* self, IdCard* card);
102 IdCard* (*update_card) (IIdentityCardStore* self, IdCard* card);
103 IIdentityCardStoreStoreType (*get_store_type) (IIdentityCardStore* self);
104 GeeLinkedList* (*get_card_list) (IIdentityCardStore* self);
107 struct _KeyringStore {
108 GObject parent_instance;
109 KeyringStorePrivate * priv;
112 struct _KeyringStoreClass {
113 GObjectClass parent_class;
116 struct _KeyringStorePrivate {
117 GeeLinkedList* id_card_list;
122 gchar* always_confirm;
126 static gpointer keyring_store_parent_class = NULL;
127 static IIdentityCardStoreIface* keyring_store_iidentity_card_store_parent_iface = NULL;
129 GType id_card_get_type (void) G_GNUC_CONST;
130 GType iidentity_card_store_store_type_get_type (void) G_GNUC_CONST;
131 GType iidentity_card_store_get_type (void) G_GNUC_CONST;
132 GType keyring_store_get_type (void) G_GNUC_CONST;
133 #define KEYRING_STORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_KEYRING_STORE, KeyringStorePrivate))
135 KEYRING_STORE_DUMMY_PROPERTY
137 #define KEYRING_STORE_keyring_store_attribute "Moonshot"
138 #define KEYRING_STORE_keyring_store_version "1.0"
139 #define KEYRING_STORE_item_type GNOME_KEYRING_ITEM_GENERIC_SECRET
140 static void keyring_store_real_add_card (IIdentityCardStore* base, IdCard* card);
141 void keyring_store_store_id_cards (KeyringStore* self);
142 static IdCard* keyring_store_real_update_card (IIdentityCardStore* base, IdCard* card);
143 const gchar* id_card_get_display_name (IdCard* self);
144 static gboolean keyring_store_real_remove_card (IIdentityCardStore* base, IdCard* card);
145 static IIdentityCardStoreStoreType keyring_store_real_get_store_type (IIdentityCardStore* base);
146 static GeeLinkedList* keyring_store_real_get_card_list (IIdentityCardStore* base);
147 static void keyring_store_clear_keyring (KeyringStore* self);
148 static void _gnome_keyring_found_free0_ (gpointer var);
149 static void _g_list_free__gnome_keyring_found_free0_ (GList* self);
150 static void keyring_store_load_id_cards (KeyringStore* self);
151 IdCard* id_card_new (void);
152 IdCard* id_card_construct (GType object_type);
153 void id_card_set_issuer (IdCard* self, const gchar* value);
154 void id_card_set_username (IdCard* self, const gchar* value);
155 void id_card_set_display_name (IdCard* self, const gchar* value);
156 void id_card_set_services (IdCard* self, gchar** value, int value_length1);
157 GType trust_anchor_get_type (void) G_GNUC_CONST;
158 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
159 void trust_anchor_set_ca_cert (TrustAnchor* self, const gchar* value);
160 void trust_anchor_set_server_cert (TrustAnchor* self, const gchar* value);
161 void trust_anchor_set_subject (TrustAnchor* self, const gchar* value);
162 void trust_anchor_set_subject_alt (TrustAnchor* self, const gchar* value);
163 GType rule_get_type (void) G_GNUC_CONST;
164 Rule* rule_dup (const Rule* self);
165 void rule_free (Rule* self);
166 void rule_copy (const Rule* self, Rule* dest);
167 void rule_destroy (Rule* self);
168 void id_card_set_rules (IdCard* self, Rule* value, int value_length1);
169 static void _vala_Rule_array_free (Rule* array, gint array_length);
170 void id_card_set_store_password (IdCard* self, gboolean value);
171 gboolean id_card_get_store_password (IdCard* self);
172 void id_card_set_password (IdCard* self, const gchar* value);
173 Rule* id_card_get_rules (IdCard* self, int* result_length1);
174 static Rule* _vala_array_dup3 (Rule* self, int length);
175 gchar** id_card_get_services (IdCard* self, int* result_length1);
176 static gchar** _vala_array_dup4 (gchar** self, int length);
177 const gchar* id_card_get_issuer (IdCard* self);
178 const gchar* id_card_get_username (IdCard* self);
179 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
180 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
181 const gchar* trust_anchor_get_subject (TrustAnchor* self);
182 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
183 const gchar* id_card_get_password (IdCard* self);
184 KeyringStore* keyring_store_new (void);
185 KeyringStore* keyring_store_construct (GType object_type);
186 static void keyring_store_finalize (GObject* obj);
187 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
188 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
189 static gint _vala_array_length (gpointer array);
192 static void keyring_store_real_add_card (IIdentityCardStore* base, IdCard* card) {
194 GeeLinkedList* _tmp0_ = NULL;
195 IdCard* _tmp1_ = NULL;
196 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
197 self = (KeyringStore*) base;
198 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
199 g_return_if_fail (card != NULL);
200 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
201 _tmp0_ = self->priv->id_card_list;
202 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
204 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
205 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp0_, _tmp1_);
206 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
207 keyring_store_store_id_cards (self);
208 #line 209 "moonshot-keyring-store.c"
212 static gpointer _g_object_ref0 (gpointer self) {
213 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
214 return self ? g_object_ref (self) : NULL;
215 #line 216 "moonshot-keyring-store.c"
219 static IdCard* keyring_store_real_update_card (IIdentityCardStore* base, IdCard* card) {
221 IdCard* result = NULL;
222 GeeLinkedList* _tmp0_ = NULL;
223 IdCard* _tmp1_ = NULL;
224 GeeLinkedList* _tmp2_ = NULL;
225 IdCard* _tmp3_ = NULL;
226 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
227 self = (KeyringStore*) base;
228 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
229 g_return_val_if_fail (card != NULL, NULL);
230 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
231 _tmp0_ = self->priv->id_card_list;
232 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
234 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
235 gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
236 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
237 _tmp2_ = self->priv->id_card_list;
238 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
240 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
241 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp2_, _tmp3_);
242 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
243 keyring_store_store_id_cards (self);
244 #line 245 "moonshot-keyring-store.c"
246 GeeLinkedList* _idcard_list = NULL;
247 GeeLinkedList* _tmp4_ = NULL;
248 GeeLinkedList* _tmp5_ = NULL;
249 gint _idcard_size = 0;
250 GeeLinkedList* _tmp6_ = NULL;
253 gint _idcard_index = 0;
254 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
255 _tmp4_ = self->priv->id_card_list;
256 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
257 _tmp5_ = _g_object_ref0 (_tmp4_);
258 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
259 _idcard_list = _tmp5_;
260 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
261 _tmp6_ = _idcard_list;
262 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
263 _tmp7_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp6_);
264 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
266 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
267 _idcard_size = _tmp8_;
268 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
270 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
272 #line 273 "moonshot-keyring-store.c"
276 IdCard* idcard = NULL;
277 GeeLinkedList* _tmp12_ = NULL;
279 gpointer _tmp14_ = NULL;
280 IdCard* _tmp15_ = NULL;
281 const gchar* _tmp16_ = NULL;
282 const gchar* _tmp17_ = NULL;
283 IdCard* _tmp18_ = NULL;
284 const gchar* _tmp19_ = NULL;
285 const gchar* _tmp20_ = NULL;
286 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
287 _tmp9_ = _idcard_index;
288 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
289 _idcard_index = _tmp9_ + 1;
290 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
291 _tmp10_ = _idcard_index;
292 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
293 _tmp11_ = _idcard_size;
294 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
295 if (!(_tmp10_ < _tmp11_)) {
296 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
298 #line 299 "moonshot-keyring-store.c"
300 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
301 _tmp12_ = _idcard_list;
302 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
303 _tmp13_ = _idcard_index;
304 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
305 _tmp14_ = gee_abstract_list_get ((GeeAbstractList*) _tmp12_, _tmp13_);
306 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
307 idcard = (IdCard*) _tmp14_;
308 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
310 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
311 _tmp16_ = id_card_get_display_name (_tmp15_);
312 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
314 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
316 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
317 _tmp19_ = id_card_get_display_name (_tmp18_);
318 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
320 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
321 if (g_strcmp0 (_tmp17_, _tmp20_) == 0) {
322 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
324 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
325 _g_object_unref0 (_idcard_list);
326 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
328 #line 329 "moonshot-keyring-store.c"
330 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
331 _g_object_unref0 (idcard);
332 #line 333 "moonshot-keyring-store.c"
334 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
335 _g_object_unref0 (_idcard_list);
336 #line 337 "moonshot-keyring-store.c"
338 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
340 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
342 #line 343 "moonshot-keyring-store.c"
346 static gboolean keyring_store_real_remove_card (IIdentityCardStore* base, IdCard* card) {
348 gboolean result = FALSE;
349 gboolean retval = FALSE;
350 GeeLinkedList* _tmp0_ = NULL;
351 IdCard* _tmp1_ = NULL;
352 gboolean _tmp2_ = FALSE;
353 gboolean _tmp3_ = FALSE;
354 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
355 self = (KeyringStore*) base;
356 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
357 g_return_val_if_fail (card != NULL, FALSE);
358 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
359 _tmp0_ = self->priv->id_card_list;
360 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
362 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
363 _tmp2_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
364 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
366 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
368 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
370 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
371 keyring_store_store_id_cards (self);
372 #line 373 "moonshot-keyring-store.c"
374 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
376 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
378 #line 379 "moonshot-keyring-store.c"
382 static IIdentityCardStoreStoreType keyring_store_real_get_store_type (IIdentityCardStore* base) {
384 IIdentityCardStoreStoreType result = 0;
385 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
386 self = (KeyringStore*) base;
387 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
388 result = IIDENTITY_CARD_STORE_STORE_TYPE_KEYRING;
389 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
391 #line 392 "moonshot-keyring-store.c"
395 static GeeLinkedList* keyring_store_real_get_card_list (IIdentityCardStore* base) {
397 GeeLinkedList* result = NULL;
398 GeeLinkedList* _tmp0_ = NULL;
399 GeeLinkedList* _tmp1_ = NULL;
400 #line 67 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
401 self = (KeyringStore*) base;
402 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
403 _tmp0_ = self->priv->id_card_list;
404 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
405 _tmp1_ = _g_object_ref0 (_tmp0_);
406 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
408 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
410 #line 411 "moonshot-keyring-store.c"
414 static void _gnome_keyring_found_free0_ (gpointer var) {
415 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
416 (var == NULL) ? NULL : (var = (gnome_keyring_found_free (var), NULL));
417 #line 418 "moonshot-keyring-store.c"
421 static void _g_list_free__gnome_keyring_found_free0_ (GList* self) {
422 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
423 g_list_foreach (self, (GFunc) _gnome_keyring_found_free0_, NULL);
424 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
426 #line 427 "moonshot-keyring-store.c"
430 static void keyring_store_clear_keyring (KeyringStore* self) {
431 GnomeKeyringAttributeList* match = NULL;
432 GnomeKeyringAttributeList* _tmp0_ = NULL;
433 GnomeKeyringAttributeList* _tmp1_ = NULL;
435 GnomeKeyringAttributeList* _tmp2_ = NULL;
436 GList* _tmp3_ = NULL;
437 GList* _tmp4_ = NULL;
438 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
439 g_return_if_fail (self != NULL);
440 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
441 _tmp0_ = gnome_keyring_attribute_list_new ();
442 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
444 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
446 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
447 gnome_keyring_attribute_list_append_string (_tmp1_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
448 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
450 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
451 gnome_keyring_find_items_sync (KEYRING_STORE_item_type, _tmp2_, &_tmp3_);
452 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
453 __g_list_free__gnome_keyring_found_free0_0 (items);
454 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
456 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
458 #line 459 "moonshot-keyring-store.c"
460 GList* entry_collection = NULL;
461 GList* entry_it = NULL;
462 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
463 entry_collection = _tmp4_;
464 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
465 for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
466 #line 467 "moonshot-keyring-store.c"
467 GnomeKeyringFound* entry = NULL;
468 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
469 entry = (GnomeKeyringFound*) entry_it->data;
470 #line 471 "moonshot-keyring-store.c"
472 GnomeKeyringResult _result_ = 0;
473 GnomeKeyringFound* _tmp5_ = NULL;
475 GnomeKeyringResult _tmp7_ = 0;
476 GnomeKeyringResult _tmp8_ = 0;
477 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
479 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
480 _tmp6_ = _tmp5_->item_id;
481 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
482 _tmp7_ = gnome_keyring_item_delete_sync (NULL, (guint32) _tmp6_);
483 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
485 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
487 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
488 if (_tmp8_ != GNOME_KEYRING_RESULT_OK) {
489 #line 490 "moonshot-keyring-store.c"
491 GnomeKeyringResult _tmp10_ = 0;
492 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
494 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
496 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
497 fprintf (_tmp9_, "GnomeKeyring.item_delete_sync() failed. result: %d", (gint) _tmp10_);
498 #line 499 "moonshot-keyring-store.c"
503 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
504 __g_list_free__gnome_keyring_found_free0_0 (items);
505 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
506 _gnome_keyring_attribute_list_free0 (match);
507 #line 508 "moonshot-keyring-store.c"
511 static gchar* string_strip (const gchar* self) {
512 gchar* result = NULL;
513 gchar* _result_ = NULL;
514 gchar* _tmp0_ = NULL;
515 const gchar* _tmp1_ = NULL;
516 #line 1115 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
517 g_return_val_if_fail (self != NULL, NULL);
518 #line 1116 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
519 _tmp0_ = g_strdup (self);
520 #line 1116 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
522 #line 1117 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
524 #line 1117 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
526 #line 1118 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
528 #line 1118 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
530 #line 531 "moonshot-keyring-store.c"
534 static void _vala_Rule_array_free (Rule* array, gint array_length) {
535 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
537 #line 538 "moonshot-keyring-store.c"
539 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
540 for (i = 0; i < array_length; i = i + 1) {
541 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
542 rule_destroy (&array[i]);
543 #line 544 "moonshot-keyring-store.c"
546 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
548 #line 549 "moonshot-keyring-store.c"
552 static void keyring_store_load_id_cards (KeyringStore* self) {
553 GeeLinkedList* _tmp0_ = NULL;
554 GnomeKeyringAttributeList* match = NULL;
555 GnomeKeyringAttributeList* _tmp1_ = NULL;
556 GnomeKeyringAttributeList* _tmp2_ = NULL;
558 GnomeKeyringAttributeList* _tmp3_ = NULL;
559 GList* _tmp4_ = NULL;
560 GList* _tmp5_ = NULL;
561 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
562 g_return_if_fail (self != NULL);
563 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
564 _tmp0_ = self->priv->id_card_list;
565 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
566 gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
567 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
568 _tmp1_ = gnome_keyring_attribute_list_new ();
569 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
571 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
573 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
574 gnome_keyring_attribute_list_append_string (_tmp2_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
575 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
577 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
578 gnome_keyring_find_items_sync (KEYRING_STORE_item_type, _tmp3_, &_tmp4_);
579 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
580 __g_list_free__gnome_keyring_found_free0_0 (items);
581 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
583 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
585 #line 586 "moonshot-keyring-store.c"
587 GList* entry_collection = NULL;
588 GList* entry_it = NULL;
589 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
590 entry_collection = _tmp5_;
591 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
592 for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
593 #line 594 "moonshot-keyring-store.c"
594 GnomeKeyringFound* entry = NULL;
595 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
596 entry = (GnomeKeyringFound*) entry_it->data;
597 #line 598 "moonshot-keyring-store.c"
599 IdCard* id_card = NULL;
600 IdCard* _tmp6_ = NULL;
602 gint rules_patterns_index = 0;
603 gint rules_always_confirm_index = 0;
604 gchar* store_password = NULL;
605 gboolean _tmp76_ = FALSE;
607 const gchar* _tmp121_ = NULL;
608 IdCard* _tmp130_ = NULL;
609 gboolean _tmp131_ = FALSE;
610 gboolean _tmp132_ = FALSE;
611 GeeLinkedList* _tmp137_ = NULL;
612 IdCard* _tmp138_ = NULL;
613 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
614 _tmp6_ = id_card_new ();
615 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
617 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
618 rules_patterns_index = -1;
619 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
620 rules_always_confirm_index = -1;
621 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
622 store_password = NULL;
623 #line 624 "moonshot-keyring-store.c"
625 gboolean _tmp7_ = FALSE;
626 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
628 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
630 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
632 #line 633 "moonshot-keyring-store.c"
634 GnomeKeyringFound* _tmp10_ = NULL;
635 GnomeKeyringAttributeList* _tmp11_ = NULL;
637 GnomeKeyringAttribute attribute = {0};
638 GnomeKeyringFound* _tmp13_ = NULL;
639 GnomeKeyringAttributeList* _tmp14_ = NULL;
640 GnomeKeyringAttribute* _tmp15_ = NULL;
641 gint _tmp15__length1 = 0;
643 GnomeKeyringAttribute _tmp17_ = {0};
645 GnomeKeyringAttribute _tmp18_ = {0};
646 const gchar* _tmp19_ = NULL;
647 gchar* _tmp20_ = NULL;
648 GnomeKeyringAttribute _tmp21_ = {0};
649 const gchar* _tmp22_ = NULL;
650 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
652 #line 653 "moonshot-keyring-store.c"
654 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
656 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
658 #line 659 "moonshot-keyring-store.c"
660 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
662 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
664 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
666 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
667 _tmp11_ = _tmp10_->attributes;
668 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
669 _tmp12_ = _tmp11_->len;
670 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
671 if (!(((guint) _tmp9_) < _tmp12_)) {
672 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
674 #line 675 "moonshot-keyring-store.c"
676 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
678 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
679 _tmp14_ = _tmp13_->attributes;
680 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
681 _tmp15_ = _tmp14_->data;
682 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
683 _tmp15__length1 = -1;
684 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
686 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
687 _tmp17_ = ((GnomeKeyringAttribute*) _tmp15_)[_tmp16_];
688 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
690 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
692 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
693 _tmp19_ = _tmp18_.value.string;
694 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
695 _tmp20_ = g_strdup (_tmp19_);
696 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
698 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
700 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
701 _tmp22_ = _tmp21_.name;
702 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
703 if (g_strcmp0 (_tmp22_, "Issuer") == 0) {
704 #line 705 "moonshot-keyring-store.c"
705 IdCard* _tmp23_ = NULL;
706 const gchar* _tmp24_ = NULL;
707 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
709 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
711 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
712 id_card_set_issuer (_tmp23_, _tmp24_);
713 #line 714 "moonshot-keyring-store.c"
715 GnomeKeyringAttribute _tmp25_ = {0};
716 const gchar* _tmp26_ = NULL;
717 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
719 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
720 _tmp26_ = _tmp25_.name;
721 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
722 if (g_strcmp0 (_tmp26_, "Username") == 0) {
723 #line 724 "moonshot-keyring-store.c"
724 IdCard* _tmp27_ = NULL;
725 const gchar* _tmp28_ = NULL;
726 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
728 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
730 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
731 id_card_set_username (_tmp27_, _tmp28_);
732 #line 733 "moonshot-keyring-store.c"
734 GnomeKeyringAttribute _tmp29_ = {0};
735 const gchar* _tmp30_ = NULL;
736 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
738 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
739 _tmp30_ = _tmp29_.name;
740 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
741 if (g_strcmp0 (_tmp30_, "DisplayName") == 0) {
742 #line 743 "moonshot-keyring-store.c"
743 IdCard* _tmp31_ = NULL;
744 const gchar* _tmp32_ = NULL;
745 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
747 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
749 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
750 id_card_set_display_name (_tmp31_, _tmp32_);
751 #line 752 "moonshot-keyring-store.c"
753 GnomeKeyringAttribute _tmp33_ = {0};
754 const gchar* _tmp34_ = NULL;
755 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
757 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
758 _tmp34_ = _tmp33_.name;
759 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
760 if (g_strcmp0 (_tmp34_, "Services") == 0) {
761 #line 762 "moonshot-keyring-store.c"
762 IdCard* _tmp35_ = NULL;
763 const gchar* _tmp36_ = NULL;
764 gchar** _tmp37_ = NULL;
765 gchar** _tmp38_ = NULL;
766 gchar** _tmp39_ = NULL;
767 gint _tmp39__length1 = 0;
768 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
770 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
772 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
773 _tmp38_ = _tmp37_ = g_strsplit (_tmp36_, ";", 0);
774 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
776 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
777 _tmp39__length1 = _vala_array_length (_tmp37_);
778 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
779 id_card_set_services (_tmp35_, _tmp39_, _vala_array_length (_tmp37_));
780 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
781 _tmp39_ = (_vala_array_free (_tmp39_, _tmp39__length1, (GDestroyNotify) g_free), NULL);
782 #line 783 "moonshot-keyring-store.c"
784 GnomeKeyringAttribute _tmp40_ = {0};
785 const gchar* _tmp41_ = NULL;
786 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
788 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
789 _tmp41_ = _tmp40_.name;
790 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
791 if (g_strcmp0 (_tmp41_, "Rules-Pattern") == 0) {
792 #line 793 "moonshot-keyring-store.c"
794 #line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
796 #line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
797 rules_patterns_index = _tmp42_;
798 #line 799 "moonshot-keyring-store.c"
800 GnomeKeyringAttribute _tmp43_ = {0};
801 const gchar* _tmp44_ = NULL;
802 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
804 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
805 _tmp44_ = _tmp43_.name;
806 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
807 if (g_strcmp0 (_tmp44_, "Rules-AlwaysConfirm") == 0) {
808 #line 809 "moonshot-keyring-store.c"
810 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
812 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
813 rules_always_confirm_index = _tmp45_;
814 #line 815 "moonshot-keyring-store.c"
816 GnomeKeyringAttribute _tmp46_ = {0};
817 const gchar* _tmp47_ = NULL;
818 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
820 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
821 _tmp47_ = _tmp46_.name;
822 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
823 if (g_strcmp0 (_tmp47_, "CA-Cert") == 0) {
824 #line 825 "moonshot-keyring-store.c"
825 IdCard* _tmp48_ = NULL;
826 TrustAnchor* _tmp49_ = NULL;
827 TrustAnchor* _tmp50_ = NULL;
828 const gchar* _tmp51_ = NULL;
829 gchar* _tmp52_ = NULL;
830 gchar* _tmp53_ = NULL;
831 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
833 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
834 _tmp49_ = id_card_get_trust_anchor (_tmp48_);
835 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
837 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
839 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
840 _tmp52_ = string_strip (_tmp51_);
841 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
843 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
844 trust_anchor_set_ca_cert (_tmp50_, _tmp53_);
845 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
847 #line 848 "moonshot-keyring-store.c"
849 GnomeKeyringAttribute _tmp54_ = {0};
850 const gchar* _tmp55_ = NULL;
851 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
853 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
854 _tmp55_ = _tmp54_.name;
855 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
856 if (g_strcmp0 (_tmp55_, "Server-Cert") == 0) {
857 #line 858 "moonshot-keyring-store.c"
858 IdCard* _tmp56_ = NULL;
859 TrustAnchor* _tmp57_ = NULL;
860 TrustAnchor* _tmp58_ = NULL;
861 const gchar* _tmp59_ = NULL;
862 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
864 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
865 _tmp57_ = id_card_get_trust_anchor (_tmp56_);
866 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
868 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
870 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
871 trust_anchor_set_server_cert (_tmp58_, _tmp59_);
872 #line 873 "moonshot-keyring-store.c"
874 GnomeKeyringAttribute _tmp60_ = {0};
875 const gchar* _tmp61_ = NULL;
876 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
878 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
879 _tmp61_ = _tmp60_.name;
880 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
881 if (g_strcmp0 (_tmp61_, "Subject") == 0) {
882 #line 883 "moonshot-keyring-store.c"
883 IdCard* _tmp62_ = NULL;
884 TrustAnchor* _tmp63_ = NULL;
885 TrustAnchor* _tmp64_ = NULL;
886 const gchar* _tmp65_ = NULL;
887 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
889 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
890 _tmp63_ = id_card_get_trust_anchor (_tmp62_);
891 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
893 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
895 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
896 trust_anchor_set_subject (_tmp64_, _tmp65_);
897 #line 898 "moonshot-keyring-store.c"
899 GnomeKeyringAttribute _tmp66_ = {0};
900 const gchar* _tmp67_ = NULL;
901 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
903 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
904 _tmp67_ = _tmp66_.name;
905 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
906 if (g_strcmp0 (_tmp67_, "Subject-Alt") == 0) {
907 #line 908 "moonshot-keyring-store.c"
908 IdCard* _tmp68_ = NULL;
909 TrustAnchor* _tmp69_ = NULL;
910 TrustAnchor* _tmp70_ = NULL;
911 const gchar* _tmp71_ = NULL;
912 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
914 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
915 _tmp69_ = id_card_get_trust_anchor (_tmp68_);
916 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
918 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
920 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
921 trust_anchor_set_subject_alt (_tmp70_, _tmp71_);
922 #line 923 "moonshot-keyring-store.c"
924 GnomeKeyringAttribute _tmp72_ = {0};
925 const gchar* _tmp73_ = NULL;
926 #line 121 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
928 #line 121 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
929 _tmp73_ = _tmp72_.name;
930 #line 121 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
931 if (g_strcmp0 (_tmp73_, "StorePassword") == 0) {
932 #line 933 "moonshot-keyring-store.c"
933 const gchar* _tmp74_ = NULL;
934 gchar* _tmp75_ = NULL;
935 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
937 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
938 _tmp75_ = g_strdup (_tmp74_);
939 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
940 _g_free0 (store_password);
941 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
942 store_password = _tmp75_;
943 #line 944 "moonshot-keyring-store.c"
955 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
957 #line 958 "moonshot-keyring-store.c"
960 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
961 _tmp77_ = rules_always_confirm_index;
962 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
963 if (_tmp77_ != (-1)) {
964 #line 965 "moonshot-keyring-store.c"
966 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
967 _tmp78_ = rules_patterns_index;
968 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
969 _tmp76_ = _tmp78_ != (-1);
970 #line 971 "moonshot-keyring-store.c"
972 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
974 #line 975 "moonshot-keyring-store.c"
976 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
978 #line 979 "moonshot-keyring-store.c"
979 gchar* rules_patterns_all = NULL;
980 GnomeKeyringFound* _tmp79_ = NULL;
981 GnomeKeyringAttributeList* _tmp80_ = NULL;
982 GnomeKeyringAttribute* _tmp81_ = NULL;
983 gint _tmp81__length1 = 0;
985 GnomeKeyringAttribute _tmp83_ = {0};
986 const gchar* _tmp84_ = NULL;
987 gchar* _tmp85_ = NULL;
988 gchar* rules_always_confirm_all = NULL;
989 GnomeKeyringFound* _tmp86_ = NULL;
990 GnomeKeyringAttributeList* _tmp87_ = NULL;
991 GnomeKeyringAttribute* _tmp88_ = NULL;
992 gint _tmp88__length1 = 0;
994 GnomeKeyringAttribute _tmp90_ = {0};
995 const gchar* _tmp91_ = NULL;
996 gchar* _tmp92_ = NULL;
997 gchar** rules_always_confirm = NULL;
998 const gchar* _tmp93_ = NULL;
999 gchar** _tmp94_ = NULL;
1000 gchar** _tmp95_ = NULL;
1001 gint rules_always_confirm_length1 = 0;
1002 gint _rules_always_confirm_size_ = 0;
1003 gchar** rules_patterns = NULL;
1004 const gchar* _tmp96_ = NULL;
1005 gchar** _tmp97_ = NULL;
1006 gchar** _tmp98_ = NULL;
1007 gint rules_patterns_length1 = 0;
1008 gint _rules_patterns_size_ = 0;
1009 gchar** _tmp99_ = NULL;
1010 gint _tmp99__length1 = 0;
1011 gchar** _tmp100_ = NULL;
1012 gint _tmp100__length1 = 0;
1013 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1015 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1016 _tmp80_ = _tmp79_->attributes;
1017 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1018 _tmp81_ = _tmp80_->data;
1019 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1020 _tmp81__length1 = -1;
1021 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1022 _tmp82_ = rules_patterns_index;
1023 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1024 _tmp83_ = ((GnomeKeyringAttribute*) _tmp81_)[_tmp82_];
1025 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1026 _tmp84_ = _tmp83_.value.string;
1027 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1028 _tmp85_ = g_strdup (_tmp84_);
1029 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1030 rules_patterns_all = _tmp85_;
1031 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1033 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1034 _tmp87_ = _tmp86_->attributes;
1035 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1036 _tmp88_ = _tmp87_->data;
1037 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1038 _tmp88__length1 = -1;
1039 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1040 _tmp89_ = rules_always_confirm_index;
1041 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1042 _tmp90_ = ((GnomeKeyringAttribute*) _tmp88_)[_tmp89_];
1043 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1044 _tmp91_ = _tmp90_.value.string;
1045 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1046 _tmp92_ = g_strdup (_tmp91_);
1047 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1048 rules_always_confirm_all = _tmp92_;
1049 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1050 _tmp93_ = rules_always_confirm_all;
1051 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1052 _tmp95_ = _tmp94_ = g_strsplit (_tmp93_, ";", 0);
1053 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1054 rules_always_confirm = _tmp95_;
1055 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1056 rules_always_confirm_length1 = _vala_array_length (_tmp94_);
1057 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1058 _rules_always_confirm_size_ = rules_always_confirm_length1;
1059 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1060 _tmp96_ = rules_patterns_all;
1061 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1062 _tmp98_ = _tmp97_ = g_strsplit (_tmp96_, ";", 0);
1063 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1064 rules_patterns = _tmp98_;
1065 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1066 rules_patterns_length1 = _vala_array_length (_tmp97_);
1067 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1068 _rules_patterns_size_ = rules_patterns_length1;
1069 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1070 _tmp99_ = rules_patterns;
1071 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1072 _tmp99__length1 = rules_patterns_length1;
1073 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1074 _tmp100_ = rules_always_confirm;
1075 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1076 _tmp100__length1 = rules_always_confirm_length1;
1077 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1078 if (_tmp99__length1 == _tmp100__length1) {
1079 #line 1080 "moonshot-keyring-store.c"
1081 gchar** _tmp101_ = NULL;
1082 gint _tmp101__length1 = 0;
1083 Rule* _tmp102_ = NULL;
1084 gint rules_length1 = 0;
1085 gint _rules_size_ = 0;
1086 IdCard* _tmp119_ = NULL;
1087 Rule* _tmp120_ = NULL;
1088 gint _tmp120__length1 = 0;
1089 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1090 _tmp101_ = rules_patterns;
1091 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1092 _tmp101__length1 = rules_patterns_length1;
1093 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1094 _tmp102_ = g_new0 (Rule, _tmp101__length1);
1095 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1097 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1098 rules_length1 = _tmp101__length1;
1099 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1100 _rules_size_ = rules_length1;
1101 #line 1102 "moonshot-keyring-store.c"
1104 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1106 #line 1107 "moonshot-keyring-store.c"
1108 gboolean _tmp103_ = FALSE;
1109 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1111 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1113 #line 1114 "moonshot-keyring-store.c"
1115 gchar** _tmp106_ = NULL;
1116 gint _tmp106__length1 = 0;
1117 Rule* _tmp107_ = NULL;
1118 gint _tmp107__length1 = 0;
1120 gchar** _tmp109_ = NULL;
1121 gint _tmp109__length1 = 0;
1123 const gchar* _tmp111_ = NULL;
1124 gchar* _tmp112_ = NULL;
1125 Rule* _tmp113_ = NULL;
1126 gint _tmp113__length1 = 0;
1128 gchar** _tmp115_ = NULL;
1129 gint _tmp115__length1 = 0;
1131 const gchar* _tmp117_ = NULL;
1132 gchar* _tmp118_ = NULL;
1133 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1135 #line 1136 "moonshot-keyring-store.c"
1137 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1139 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1141 #line 1142 "moonshot-keyring-store.c"
1143 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1145 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1147 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1148 _tmp106_ = rules_patterns;
1149 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1150 _tmp106__length1 = rules_patterns_length1;
1151 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1152 if (!(_tmp105_ < _tmp106__length1)) {
1153 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1155 #line 1156 "moonshot-keyring-store.c"
1157 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1159 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1160 _tmp107__length1 = rules_length1;
1161 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1163 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1164 _tmp109_ = rules_patterns;
1165 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1166 _tmp109__length1 = rules_patterns_length1;
1167 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1169 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1170 _tmp111_ = _tmp109_[_tmp110_];
1171 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1172 _tmp112_ = g_strdup (_tmp111_);
1173 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1174 _g_free0 (_tmp107_[_tmp108_].pattern);
1175 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1176 _tmp107_[_tmp108_].pattern = _tmp112_;
1177 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1179 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1180 _tmp113__length1 = rules_length1;
1181 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1183 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1184 _tmp115_ = rules_always_confirm;
1185 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1186 _tmp115__length1 = rules_always_confirm_length1;
1187 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1189 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1190 _tmp117_ = _tmp115_[_tmp116_];
1191 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1192 _tmp118_ = g_strdup (_tmp117_);
1193 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1194 _g_free0 (_tmp113_[_tmp114_].always_confirm);
1195 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1196 _tmp113_[_tmp114_].always_confirm = _tmp118_;
1197 #line 1198 "moonshot-keyring-store.c"
1201 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1203 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1205 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1206 _tmp120__length1 = rules_length1;
1207 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1208 id_card_set_rules (_tmp119_, _tmp120_, _tmp120__length1);
1209 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1210 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1211 #line 1212 "moonshot-keyring-store.c"
1213 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1214 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1215 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1216 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1217 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1218 _g_free0 (rules_always_confirm_all);
1219 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1220 _g_free0 (rules_patterns_all);
1221 #line 1222 "moonshot-keyring-store.c"
1223 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1224 _tmp121_ = store_password;
1225 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1226 if (_tmp121_ != NULL) {
1227 #line 1228 "moonshot-keyring-store.c"
1228 IdCard* _tmp122_ = NULL;
1229 const gchar* _tmp123_ = NULL;
1230 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1232 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1233 _tmp123_ = store_password;
1234 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1235 id_card_set_store_password (_tmp122_, g_strcmp0 (_tmp123_, "yes") == 0);
1236 #line 1237 "moonshot-keyring-store.c"
1238 gboolean _tmp124_ = FALSE;
1239 GnomeKeyringFound* _tmp125_ = NULL;
1240 const gchar* _tmp126_ = NULL;
1241 IdCard* _tmp129_ = NULL;
1242 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1244 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1245 _tmp126_ = _tmp125_->secret;
1246 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1247 if (_tmp126_ != NULL) {
1248 #line 1249 "moonshot-keyring-store.c"
1249 GnomeKeyringFound* _tmp127_ = NULL;
1250 const gchar* _tmp128_ = NULL;
1251 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1253 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1254 _tmp128_ = _tmp127_->secret;
1255 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1256 _tmp124_ = g_strcmp0 (_tmp128_, "") != 0;
1257 #line 1258 "moonshot-keyring-store.c"
1259 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1261 #line 1262 "moonshot-keyring-store.c"
1263 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1265 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1266 id_card_set_store_password (_tmp129_, _tmp124_);
1267 #line 1268 "moonshot-keyring-store.c"
1269 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1271 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1272 _tmp131_ = id_card_get_store_password (_tmp130_);
1273 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1274 _tmp132_ = _tmp131_;
1275 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1277 #line 1278 "moonshot-keyring-store.c"
1278 IdCard* _tmp133_ = NULL;
1279 GnomeKeyringFound* _tmp134_ = NULL;
1280 const gchar* _tmp135_ = NULL;
1281 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1283 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1285 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1286 _tmp135_ = _tmp134_->secret;
1287 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1288 id_card_set_password (_tmp133_, _tmp135_);
1289 #line 1290 "moonshot-keyring-store.c"
1291 IdCard* _tmp136_ = NULL;
1292 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1294 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1295 id_card_set_password (_tmp136_, NULL);
1296 #line 1297 "moonshot-keyring-store.c"
1298 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1299 _tmp137_ = self->priv->id_card_list;
1300 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1302 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1303 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp137_, _tmp138_);
1304 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1305 _g_free0 (store_password);
1306 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1307 _g_object_unref0 (id_card);
1308 #line 1309 "moonshot-keyring-store.c"
1312 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1313 __g_list_free__gnome_keyring_found_free0_0 (items);
1314 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1315 _gnome_keyring_attribute_list_free0 (match);
1316 #line 1317 "moonshot-keyring-store.c"
1320 static Rule* _vala_array_dup3 (Rule* self, int length) {
1323 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1324 result = g_new0 (Rule, length);
1325 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1326 for (i = 0; i < length; i++) {
1327 #line 1328 "moonshot-keyring-store.c"
1329 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1330 rule_copy (&self[i], &_tmp0_);
1331 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1333 #line 1334 "moonshot-keyring-store.c"
1335 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1337 #line 1338 "moonshot-keyring-store.c"
1341 static gchar** _vala_array_dup4 (gchar** self, int length) {
1344 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1345 result = g_new0 (gchar*, length + 1);
1346 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1347 for (i = 0; i < length; i++) {
1348 #line 1349 "moonshot-keyring-store.c"
1349 gchar* _tmp0_ = NULL;
1350 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1351 _tmp0_ = g_strdup (self[i]);
1352 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1354 #line 1355 "moonshot-keyring-store.c"
1356 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1358 #line 1359 "moonshot-keyring-store.c"
1362 static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
1363 gchar* result = NULL;
1364 const gchar* _tmp0_ = NULL;
1365 gboolean _tmp1_ = FALSE;
1366 gboolean _tmp2_ = FALSE;
1367 gchar** _tmp3_ = NULL;
1368 gint _tmp3__length1 = 0;
1369 #line 964 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1371 #line 964 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1372 if (_tmp0_ == NULL) {
1373 #line 965 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1375 #line 1376 "moonshot-keyring-store.c"
1377 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1379 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1380 _tmp3__length1 = str_array_length1;
1381 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1382 if (_tmp3_ != NULL) {
1383 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1385 #line 1386 "moonshot-keyring-store.c"
1387 gchar** _tmp4_ = NULL;
1388 gint _tmp4__length1 = 0;
1389 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1391 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1392 _tmp4__length1 = str_array_length1;
1393 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1394 _tmp2_ = _tmp4__length1 > 0;
1395 #line 1396 "moonshot-keyring-store.c"
1397 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1399 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1401 #line 1402 "moonshot-keyring-store.c"
1403 gboolean _tmp5_ = FALSE;
1404 gchar** _tmp6_ = NULL;
1405 gint _tmp6__length1 = 0;
1406 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1408 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1409 _tmp6__length1 = str_array_length1;
1410 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1411 if (_tmp6__length1 == (-1)) {
1412 #line 1413 "moonshot-keyring-store.c"
1413 gchar** _tmp7_ = NULL;
1414 gint _tmp7__length1 = 0;
1415 const gchar* _tmp8_ = NULL;
1416 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1418 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1419 _tmp7__length1 = str_array_length1;
1420 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1422 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1423 _tmp5_ = _tmp8_ != NULL;
1424 #line 1425 "moonshot-keyring-store.c"
1426 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1428 #line 1429 "moonshot-keyring-store.c"
1430 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1432 #line 1433 "moonshot-keyring-store.c"
1434 #line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1436 #line 1437 "moonshot-keyring-store.c"
1442 gsize _tmp35_ = 0UL;
1443 const gchar* _tmp36_ = NULL;
1447 const gchar* res = NULL;
1448 gsize _tmp40_ = 0UL;
1449 void* _tmp41_ = NULL;
1451 const gchar* _tmp42_ = NULL;
1452 gchar** _tmp43_ = NULL;
1453 gint _tmp43__length1 = 0;
1454 const gchar* _tmp44_ = NULL;
1455 void* _tmp45_ = NULL;
1456 const gchar* _tmp62_ = NULL;
1457 #line 969 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1459 #line 1460 "moonshot-keyring-store.c"
1461 gboolean _tmp9_ = FALSE;
1462 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1464 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1466 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1468 #line 1469 "moonshot-keyring-store.c"
1469 gboolean _tmp11_ = FALSE;
1470 gboolean _tmp12_ = FALSE;
1471 gchar** _tmp13_ = NULL;
1472 gint _tmp13__length1 = 0;
1474 gchar** _tmp22_ = NULL;
1475 gint _tmp22__length1 = 0;
1477 const gchar* _tmp24_ = NULL;
1478 gsize _tmp30_ = 0UL;
1479 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1481 #line 1482 "moonshot-keyring-store.c"
1483 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1485 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1487 #line 1488 "moonshot-keyring-store.c"
1489 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1491 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1492 _tmp13_ = str_array;
1493 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1494 _tmp13__length1 = str_array_length1;
1495 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1496 if (_tmp13__length1 != (-1)) {
1497 #line 1498 "moonshot-keyring-store.c"
1499 gchar** _tmp15_ = NULL;
1500 gint _tmp15__length1 = 0;
1501 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1503 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1504 _tmp15_ = str_array;
1505 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1506 _tmp15__length1 = str_array_length1;
1507 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1508 _tmp12_ = _tmp14_ < _tmp15__length1;
1509 #line 1510 "moonshot-keyring-store.c"
1511 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1513 #line 1514 "moonshot-keyring-store.c"
1515 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1517 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1519 #line 1520 "moonshot-keyring-store.c"
1521 gboolean _tmp16_ = FALSE;
1522 gchar** _tmp17_ = NULL;
1523 gint _tmp17__length1 = 0;
1524 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1525 _tmp17_ = str_array;
1526 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1527 _tmp17__length1 = str_array_length1;
1528 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1529 if (_tmp17__length1 == (-1)) {
1530 #line 1531 "moonshot-keyring-store.c"
1531 gchar** _tmp18_ = NULL;
1532 gint _tmp18__length1 = 0;
1534 const gchar* _tmp20_ = NULL;
1535 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1536 _tmp18_ = str_array;
1537 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1538 _tmp18__length1 = str_array_length1;
1539 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1541 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1542 _tmp20_ = _tmp18_[_tmp19_];
1543 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1544 _tmp16_ = _tmp20_ != NULL;
1545 #line 1546 "moonshot-keyring-store.c"
1547 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1549 #line 1550 "moonshot-keyring-store.c"
1551 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1553 #line 1554 "moonshot-keyring-store.c"
1555 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1557 #line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1559 #line 1560 "moonshot-keyring-store.c"
1561 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1562 _tmp22_ = str_array;
1563 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1564 _tmp22__length1 = str_array_length1;
1565 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1567 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1568 _tmp24_ = _tmp22_[_tmp23_];
1569 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1570 if (_tmp24_ != NULL) {
1571 #line 1572 "moonshot-keyring-store.c"
1572 gchar** _tmp25_ = NULL;
1573 gint _tmp25__length1 = 0;
1575 const gchar* _tmp27_ = NULL;
1578 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1579 _tmp25_ = str_array;
1580 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1581 _tmp25__length1 = str_array_length1;
1582 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1584 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1585 _tmp27_ = _tmp25_[_tmp26_];
1586 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1587 _tmp28_ = strlen ((const gchar*) _tmp27_);
1588 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1590 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1592 #line 1593 "moonshot-keyring-store.c"
1594 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1596 #line 1597 "moonshot-keyring-store.c"
1598 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1600 #line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1601 len = _tmp30_ + _tmp21_;
1602 #line 1603 "moonshot-keyring-store.c"
1605 #line 973 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1607 #line 973 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1609 #line 1610 "moonshot-keyring-store.c"
1610 gchar* _tmp32_ = NULL;
1611 #line 974 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1612 _tmp32_ = g_strdup ("");
1613 #line 974 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1615 #line 974 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1617 #line 1618 "moonshot-keyring-store.c"
1619 #line 976 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1621 #line 976 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1622 str_array_length1 = _tmp33_;
1623 #line 976 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1624 _tmp34_ = str_array_length1;
1625 #line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1627 #line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1628 _tmp36_ = separator;
1629 #line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1630 _tmp37_ = strlen ((const gchar*) _tmp36_);
1631 #line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1633 #line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1635 #line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1636 len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
1637 #line 979 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1639 #line 979 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1640 _tmp41_ = g_malloc (_tmp40_);
1641 #line 979 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1643 #line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1645 #line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1646 _tmp43_ = str_array;
1647 #line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1648 _tmp43__length1 = str_array_length1;
1649 #line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1650 _tmp44_ = _tmp43_[0];
1651 #line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1652 _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
1653 #line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1655 #line 1656 "moonshot-keyring-store.c"
1657 gboolean _tmp46_ = FALSE;
1658 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1660 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1662 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1664 #line 1665 "moonshot-keyring-store.c"
1666 gchar** _tmp49_ = NULL;
1667 gint _tmp49__length1 = 0;
1668 void* _tmp50_ = NULL;
1669 const gchar* _tmp51_ = NULL;
1670 void* _tmp52_ = NULL;
1671 const gchar* _tmp53_ = NULL;
1672 gchar** _tmp54_ = NULL;
1673 gint _tmp54__length1 = 0;
1675 const gchar* _tmp56_ = NULL;
1676 void* _tmp60_ = NULL;
1677 void* _tmp61_ = NULL;
1678 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1680 #line 1681 "moonshot-keyring-store.c"
1682 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1684 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1686 #line 1687 "moonshot-keyring-store.c"
1688 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1690 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1692 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1693 _tmp49_ = str_array;
1694 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1695 _tmp49__length1 = str_array_length1;
1696 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1697 if (!(_tmp48_ < _tmp49__length1)) {
1698 #line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1700 #line 1701 "moonshot-keyring-store.c"
1702 #line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1704 #line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1705 _tmp51_ = separator;
1706 #line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1707 _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
1708 #line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1710 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1711 _tmp54_ = str_array;
1712 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1713 _tmp54__length1 = str_array_length1;
1714 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1716 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1717 _tmp56_ = _tmp54_[_tmp55_];
1718 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1719 if (_tmp56_ != NULL) {
1720 #line 1721 "moonshot-keyring-store.c"
1721 gchar** _tmp57_ = NULL;
1722 gint _tmp57__length1 = 0;
1724 const gchar* _tmp59_ = NULL;
1725 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1726 _tmp57_ = str_array;
1727 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1728 _tmp57__length1 = str_array_length1;
1729 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1731 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1732 _tmp59_ = _tmp57_[_tmp58_];
1733 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1734 _tmp53_ = (const gchar*) _tmp59_;
1735 #line 1736 "moonshot-keyring-store.c"
1737 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1739 #line 1740 "moonshot-keyring-store.c"
1741 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1743 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1744 _tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
1745 #line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1747 #line 1748 "moonshot-keyring-store.c"
1750 #line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1752 #line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1754 #line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1755 result = (gchar*) _tmp62_;
1756 #line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1758 #line 1759 "moonshot-keyring-store.c"
1760 gchar* _tmp63_ = NULL;
1761 #line 988 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1762 _tmp63_ = g_strdup ("");
1763 #line 988 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1765 #line 988 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
1767 #line 1768 "moonshot-keyring-store.c"
1772 void keyring_store_store_id_cards (KeyringStore* self) {
1773 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1774 g_return_if_fail (self != NULL);
1775 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1776 keyring_store_clear_keyring (self);
1777 #line 1778 "moonshot-keyring-store.c"
1779 GeeLinkedList* _id_card_list = NULL;
1780 GeeLinkedList* _tmp0_ = NULL;
1781 GeeLinkedList* _tmp1_ = NULL;
1782 gint _id_card_size = 0;
1783 GeeLinkedList* _tmp2_ = NULL;
1786 gint _id_card_index = 0;
1787 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1788 _tmp0_ = self->priv->id_card_list;
1789 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1790 _tmp1_ = _g_object_ref0 (_tmp0_);
1791 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1792 _id_card_list = _tmp1_;
1793 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1794 _tmp2_ = _id_card_list;
1795 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1796 _tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
1797 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1799 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1800 _id_card_size = _tmp4_;
1801 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1802 _id_card_index = -1;
1803 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1805 #line 1806 "moonshot-keyring-store.c"
1809 IdCard* id_card = NULL;
1810 GeeLinkedList* _tmp8_ = NULL;
1812 gpointer _tmp10_ = NULL;
1814 IdCard* _tmp11_ = NULL;
1815 Rule* _tmp12_ = NULL;
1816 gint _tmp12__length1 = 0;
1817 Rule* _tmp13_ = NULL;
1818 gint _tmp13__length1 = 0;
1819 Rule* _tmp14_ = NULL;
1820 gint _tmp14__length1 = 0;
1821 gint rules_length1 = 0;
1822 gint _rules_size_ = 0;
1823 gchar** services_array = NULL;
1824 IdCard* _tmp15_ = NULL;
1825 gchar** _tmp16_ = NULL;
1826 gint _tmp16__length1 = 0;
1827 gchar** _tmp17_ = NULL;
1828 gint _tmp17__length1 = 0;
1829 gchar** _tmp18_ = NULL;
1830 gint _tmp18__length1 = 0;
1831 gint services_array_length1 = 0;
1832 gint _services_array_size_ = 0;
1833 gchar** rules_patterns = NULL;
1834 Rule* _tmp19_ = NULL;
1835 gint _tmp19__length1 = 0;
1836 gchar** _tmp20_ = NULL;
1837 gint rules_patterns_length1 = 0;
1838 gint _rules_patterns_size_ = 0;
1839 gchar** rules_always_conf = NULL;
1840 Rule* _tmp21_ = NULL;
1841 gint _tmp21__length1 = 0;
1842 gchar** _tmp22_ = NULL;
1843 gint rules_always_conf_length1 = 0;
1844 gint _rules_always_conf_size_ = 0;
1845 gchar* patterns = NULL;
1846 gchar** _tmp43_ = NULL;
1847 gint _tmp43__length1 = 0;
1848 gchar* _tmp44_ = NULL;
1849 gchar* always_conf = NULL;
1850 gchar** _tmp45_ = NULL;
1851 gint _tmp45__length1 = 0;
1852 gchar* _tmp46_ = NULL;
1853 gchar* services = NULL;
1854 gchar** _tmp47_ = NULL;
1855 gint _tmp47__length1 = 0;
1856 gchar* _tmp48_ = NULL;
1857 GnomeKeyringAttributeList* attributes = NULL;
1858 GnomeKeyringAttributeList* _tmp49_ = NULL;
1859 guint32 item_id = 0U;
1860 GnomeKeyringAttributeList* _tmp50_ = NULL;
1861 GnomeKeyringAttributeList* _tmp51_ = NULL;
1862 IdCard* _tmp52_ = NULL;
1863 const gchar* _tmp53_ = NULL;
1864 const gchar* _tmp54_ = NULL;
1865 GnomeKeyringAttributeList* _tmp55_ = NULL;
1866 IdCard* _tmp56_ = NULL;
1867 const gchar* _tmp57_ = NULL;
1868 const gchar* _tmp58_ = NULL;
1869 GnomeKeyringAttributeList* _tmp59_ = NULL;
1870 IdCard* _tmp60_ = NULL;
1871 const gchar* _tmp61_ = NULL;
1872 const gchar* _tmp62_ = NULL;
1873 GnomeKeyringAttributeList* _tmp63_ = NULL;
1874 const gchar* _tmp64_ = NULL;
1875 GnomeKeyringAttributeList* _tmp65_ = NULL;
1876 const gchar* _tmp66_ = NULL;
1877 GnomeKeyringAttributeList* _tmp67_ = NULL;
1878 const gchar* _tmp68_ = NULL;
1879 GnomeKeyringAttributeList* _tmp69_ = NULL;
1880 IdCard* _tmp70_ = NULL;
1881 TrustAnchor* _tmp71_ = NULL;
1882 TrustAnchor* _tmp72_ = NULL;
1883 const gchar* _tmp73_ = NULL;
1884 const gchar* _tmp74_ = NULL;
1885 GnomeKeyringAttributeList* _tmp75_ = NULL;
1886 IdCard* _tmp76_ = NULL;
1887 TrustAnchor* _tmp77_ = NULL;
1888 TrustAnchor* _tmp78_ = NULL;
1889 const gchar* _tmp79_ = NULL;
1890 const gchar* _tmp80_ = NULL;
1891 GnomeKeyringAttributeList* _tmp81_ = NULL;
1892 IdCard* _tmp82_ = NULL;
1893 TrustAnchor* _tmp83_ = NULL;
1894 TrustAnchor* _tmp84_ = NULL;
1895 const gchar* _tmp85_ = NULL;
1896 const gchar* _tmp86_ = NULL;
1897 GnomeKeyringAttributeList* _tmp87_ = NULL;
1898 IdCard* _tmp88_ = NULL;
1899 TrustAnchor* _tmp89_ = NULL;
1900 TrustAnchor* _tmp90_ = NULL;
1901 const gchar* _tmp91_ = NULL;
1902 const gchar* _tmp92_ = NULL;
1903 const gchar* _tmp93_ = NULL;
1904 IdCard* _tmp94_ = NULL;
1905 gboolean _tmp95_ = FALSE;
1906 gboolean _tmp96_ = FALSE;
1907 GnomeKeyringAttributeList* _tmp97_ = NULL;
1908 const gchar* _tmp98_ = NULL;
1909 IdCard* _tmp99_ = NULL;
1910 gboolean _tmp100_ = FALSE;
1911 gboolean _tmp101_ = FALSE;
1912 GnomeKeyringResult _result_ = 0;
1913 IdCard* _tmp105_ = NULL;
1914 const gchar* _tmp106_ = NULL;
1915 const gchar* _tmp107_ = NULL;
1916 GnomeKeyringAttributeList* _tmp108_ = NULL;
1917 guint32 _tmp109_ = 0U;
1918 GnomeKeyringResult _tmp110_ = 0;
1919 GnomeKeyringResult _tmp111_ = 0;
1920 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1921 _tmp5_ = _id_card_index;
1922 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1923 _id_card_index = _tmp5_ + 1;
1924 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1925 _tmp6_ = _id_card_index;
1926 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1927 _tmp7_ = _id_card_size;
1928 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1929 if (!(_tmp6_ < _tmp7_)) {
1930 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1932 #line 1933 "moonshot-keyring-store.c"
1934 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1935 _tmp8_ = _id_card_list;
1936 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1937 _tmp9_ = _id_card_index;
1938 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1939 _tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
1940 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1941 id_card = (IdCard*) _tmp10_;
1942 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1944 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1945 _tmp12_ = id_card_get_rules (_tmp11_, &_tmp12__length1);
1946 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1948 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1949 _tmp13__length1 = _tmp12__length1;
1950 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1951 _tmp14_ = (_tmp13_ != NULL) ? _vala_array_dup3 (_tmp13_, _tmp13__length1) : ((gpointer) _tmp13_);
1952 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1953 _tmp14__length1 = _tmp13__length1;
1954 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1956 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1957 rules_length1 = _tmp14__length1;
1958 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1959 _rules_size_ = rules_length1;
1960 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1962 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1963 _tmp16_ = id_card_get_services (_tmp15_, &_tmp16__length1);
1964 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1966 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1967 _tmp17__length1 = _tmp16__length1;
1968 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1969 _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup4 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_);
1970 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1971 _tmp18__length1 = _tmp17__length1;
1972 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1973 services_array = _tmp18_;
1974 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1975 services_array_length1 = _tmp18__length1;
1976 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1977 _services_array_size_ = services_array_length1;
1978 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1980 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1981 _tmp19__length1 = rules_length1;
1982 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1983 _tmp20_ = g_new0 (gchar*, _tmp19__length1 + 1);
1984 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1985 rules_patterns = _tmp20_;
1986 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1987 rules_patterns_length1 = _tmp19__length1;
1988 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1989 _rules_patterns_size_ = rules_patterns_length1;
1990 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1992 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1993 _tmp21__length1 = rules_length1;
1994 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1995 _tmp22_ = g_new0 (gchar*, _tmp21__length1 + 1);
1996 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1997 rules_always_conf = _tmp22_;
1998 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1999 rules_always_conf_length1 = _tmp21__length1;
2000 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2001 _rules_always_conf_size_ = rules_always_conf_length1;
2002 #line 2003 "moonshot-keyring-store.c"
2005 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2007 #line 2008 "moonshot-keyring-store.c"
2009 gboolean _tmp23_ = FALSE;
2010 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2012 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2014 #line 2015 "moonshot-keyring-store.c"
2016 Rule* _tmp26_ = NULL;
2017 gint _tmp26__length1 = 0;
2018 gchar** _tmp27_ = NULL;
2019 gint _tmp27__length1 = 0;
2021 Rule* _tmp29_ = NULL;
2022 gint _tmp29__length1 = 0;
2025 const gchar* _tmp32_ = NULL;
2026 gchar* _tmp33_ = NULL;
2027 gchar* _tmp34_ = NULL;
2028 gchar** _tmp35_ = NULL;
2029 gint _tmp35__length1 = 0;
2031 Rule* _tmp37_ = NULL;
2032 gint _tmp37__length1 = 0;
2035 const gchar* _tmp40_ = NULL;
2036 gchar* _tmp41_ = NULL;
2037 gchar* _tmp42_ = NULL;
2038 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2040 #line 2041 "moonshot-keyring-store.c"
2042 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2044 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2046 #line 2047 "moonshot-keyring-store.c"
2048 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2050 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2052 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2054 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2055 _tmp26__length1 = rules_length1;
2056 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2057 if (!(_tmp25_ < _tmp26__length1)) {
2058 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2060 #line 2061 "moonshot-keyring-store.c"
2062 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2063 _tmp27_ = rules_patterns;
2064 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2065 _tmp27__length1 = rules_patterns_length1;
2066 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2068 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2070 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2071 _tmp29__length1 = rules_length1;
2072 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2074 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2075 _tmp31_ = _tmp29_[_tmp30_];
2076 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2077 _tmp32_ = _tmp31_.pattern;
2078 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2079 _tmp33_ = g_strdup (_tmp32_);
2080 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2081 _g_free0 (_tmp27_[_tmp28_]);
2082 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2083 _tmp27_[_tmp28_] = _tmp33_;
2084 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2085 _tmp34_ = _tmp27_[_tmp28_];
2086 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2087 _tmp35_ = rules_always_conf;
2088 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2089 _tmp35__length1 = rules_always_conf_length1;
2090 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2092 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2094 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2095 _tmp37__length1 = rules_length1;
2096 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2098 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2099 _tmp39_ = _tmp37_[_tmp38_];
2100 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2101 _tmp40_ = _tmp39_.always_confirm;
2102 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2103 _tmp41_ = g_strdup (_tmp40_);
2104 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2105 _g_free0 (_tmp35_[_tmp36_]);
2106 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2107 _tmp35_[_tmp36_] = _tmp41_;
2108 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2109 _tmp42_ = _tmp35_[_tmp36_];
2110 #line 2111 "moonshot-keyring-store.c"
2114 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2115 _tmp43_ = rules_patterns;
2116 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2117 _tmp43__length1 = rules_patterns_length1;
2118 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2119 _tmp44_ = _vala_g_strjoinv (";", _tmp43_, _tmp43__length1);
2120 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2122 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2123 _tmp45_ = rules_always_conf;
2124 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2125 _tmp45__length1 = rules_always_conf_length1;
2126 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2127 _tmp46_ = _vala_g_strjoinv (";", _tmp45_, _tmp45__length1);
2128 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2129 always_conf = _tmp46_;
2130 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2131 _tmp47_ = services_array;
2132 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2133 _tmp47__length1 = services_array_length1;
2134 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2135 _tmp48_ = _vala_g_strjoinv (";", _tmp47_, _tmp47__length1);
2136 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2138 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2139 _tmp49_ = gnome_keyring_attribute_list_new ();
2140 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2141 attributes = _tmp49_;
2142 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2143 _tmp50_ = attributes;
2144 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2145 gnome_keyring_attribute_list_append_string (_tmp50_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
2146 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2147 _tmp51_ = attributes;
2148 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2150 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2151 _tmp53_ = id_card_get_issuer (_tmp52_);
2152 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2154 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2155 gnome_keyring_attribute_list_append_string (_tmp51_, "Issuer", _tmp54_);
2156 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2157 _tmp55_ = attributes;
2158 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2160 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2161 _tmp57_ = id_card_get_username (_tmp56_);
2162 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2164 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2165 gnome_keyring_attribute_list_append_string (_tmp55_, "Username", _tmp58_);
2166 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2167 _tmp59_ = attributes;
2168 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2170 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2171 _tmp61_ = id_card_get_display_name (_tmp60_);
2172 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2174 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2175 gnome_keyring_attribute_list_append_string (_tmp59_, "DisplayName", _tmp62_);
2176 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2177 _tmp63_ = attributes;
2178 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2180 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2181 gnome_keyring_attribute_list_append_string (_tmp63_, "Services", _tmp64_);
2182 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2183 _tmp65_ = attributes;
2184 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2186 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2187 gnome_keyring_attribute_list_append_string (_tmp65_, "Rules-Pattern", _tmp66_);
2188 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2189 _tmp67_ = attributes;
2190 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2191 _tmp68_ = always_conf;
2192 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2193 gnome_keyring_attribute_list_append_string (_tmp67_, "Rules-AlwaysConfirm", _tmp68_);
2194 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2195 _tmp69_ = attributes;
2196 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2198 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2199 _tmp71_ = id_card_get_trust_anchor (_tmp70_);
2200 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2202 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2203 _tmp73_ = trust_anchor_get_ca_cert (_tmp72_);
2204 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2206 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2207 gnome_keyring_attribute_list_append_string (_tmp69_, "CA-Cert", _tmp74_);
2208 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2209 _tmp75_ = attributes;
2210 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2212 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2213 _tmp77_ = id_card_get_trust_anchor (_tmp76_);
2214 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2216 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2217 _tmp79_ = trust_anchor_get_server_cert (_tmp78_);
2218 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2220 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2221 gnome_keyring_attribute_list_append_string (_tmp75_, "Server-Cert", _tmp80_);
2222 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2223 _tmp81_ = attributes;
2224 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2226 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2227 _tmp83_ = id_card_get_trust_anchor (_tmp82_);
2228 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2230 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2231 _tmp85_ = trust_anchor_get_subject (_tmp84_);
2232 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2234 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2235 gnome_keyring_attribute_list_append_string (_tmp81_, "Subject", _tmp86_);
2236 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2237 _tmp87_ = attributes;
2238 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2240 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2241 _tmp89_ = id_card_get_trust_anchor (_tmp88_);
2242 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2244 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2245 _tmp91_ = trust_anchor_get_subject_alt (_tmp90_);
2246 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2248 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2249 gnome_keyring_attribute_list_append_string (_tmp87_, "Subject-Alt", _tmp92_);
2250 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2252 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2253 _tmp95_ = id_card_get_store_password (_tmp94_);
2254 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2256 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2258 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2260 #line 2261 "moonshot-keyring-store.c"
2262 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2264 #line 2265 "moonshot-keyring-store.c"
2266 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2267 _tmp97_ = attributes;
2268 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2269 gnome_keyring_attribute_list_append_string (_tmp97_, "StorePassword", _tmp93_);
2270 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2272 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2273 _tmp100_ = id_card_get_store_password (_tmp99_);
2274 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2275 _tmp101_ = _tmp100_;
2276 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2278 #line 2279 "moonshot-keyring-store.c"
2279 IdCard* _tmp102_ = NULL;
2280 const gchar* _tmp103_ = NULL;
2281 const gchar* _tmp104_ = NULL;
2282 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2284 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2285 _tmp103_ = id_card_get_password (_tmp102_);
2286 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2287 _tmp104_ = _tmp103_;
2288 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2290 #line 2291 "moonshot-keyring-store.c"
2292 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2294 #line 2295 "moonshot-keyring-store.c"
2296 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2298 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2299 _tmp106_ = id_card_get_display_name (_tmp105_);
2300 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2301 _tmp107_ = _tmp106_;
2302 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2303 _tmp108_ = attributes;
2304 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2305 _tmp110_ = gnome_keyring_item_create_sync (NULL, KEYRING_STORE_item_type, _tmp107_, _tmp108_, _tmp98_, TRUE, &_tmp109_);
2306 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2308 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2309 _result_ = _tmp110_;
2310 #line 188 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2311 _tmp111_ = _result_;
2312 #line 188 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2313 if (_tmp111_ != GNOME_KEYRING_RESULT_OK) {
2314 #line 2315 "moonshot-keyring-store.c"
2315 FILE* _tmp112_ = NULL;
2316 GnomeKeyringResult _tmp113_ = 0;
2317 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2319 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2320 _tmp113_ = _result_;
2321 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2322 fprintf (_tmp112_, "GnomeKeyring.item_create_sync() failed. result: %d", (gint) _tmp113_);
2323 #line 2324 "moonshot-keyring-store.c"
2325 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2326 _gnome_keyring_attribute_list_free0 (attributes);
2327 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2328 _g_free0 (services);
2329 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2330 _g_free0 (always_conf);
2331 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2332 _g_free0 (patterns);
2333 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2334 rules_always_conf = (_vala_array_free (rules_always_conf, rules_always_conf_length1, (GDestroyNotify) g_free), NULL);
2335 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2336 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
2337 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2338 services_array = (_vala_array_free (services_array, services_array_length1, (GDestroyNotify) g_free), NULL);
2339 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2340 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
2341 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2342 _g_object_unref0 (id_card);
2343 #line 2344 "moonshot-keyring-store.c"
2345 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2346 _g_object_unref0 (_id_card_list);
2347 #line 2348 "moonshot-keyring-store.c"
2349 #line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2350 keyring_store_load_id_cards (self);
2351 #line 2352 "moonshot-keyring-store.c"
2355 KeyringStore* keyring_store_construct (GType object_type) {
2356 KeyringStore * self = NULL;
2357 GeeLinkedList* _tmp0_ = NULL;
2358 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2359 self = (KeyringStore*) g_object_new (object_type, NULL);
2360 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2361 _tmp0_ = gee_linked_list_new (TYPE_ID_CARD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
2362 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2363 _g_object_unref0 (self->priv->id_card_list);
2364 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2365 self->priv->id_card_list = _tmp0_;
2366 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2367 keyring_store_load_id_cards (self);
2368 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2370 #line 2371 "moonshot-keyring-store.c"
2374 KeyringStore* keyring_store_new (void) {
2375 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2376 return keyring_store_construct (TYPE_KEYRING_STORE);
2377 #line 2378 "moonshot-keyring-store.c"
2381 static void keyring_store_class_init (KeyringStoreClass * klass) {
2382 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2383 keyring_store_parent_class = g_type_class_peek_parent (klass);
2384 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2385 g_type_class_add_private (klass, sizeof (KeyringStorePrivate));
2386 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2387 G_OBJECT_CLASS (klass)->finalize = keyring_store_finalize;
2388 #line 2389 "moonshot-keyring-store.c"
2392 static void keyring_store_iidentity_card_store_interface_init (IIdentityCardStoreIface * iface) {
2393 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2394 keyring_store_iidentity_card_store_parent_iface = g_type_interface_peek_parent (iface);
2395 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2396 iface->add_card = (void (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_add_card;
2397 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2398 iface->update_card = (IdCard* (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_update_card;
2399 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2400 iface->remove_card = (gboolean (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_remove_card;
2401 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2402 iface->get_store_type = (IIdentityCardStoreStoreType (*)(IIdentityCardStore*)) keyring_store_real_get_store_type;
2403 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2404 iface->get_card_list = (GeeLinkedList* (*)(IIdentityCardStore*)) keyring_store_real_get_card_list;
2405 #line 2406 "moonshot-keyring-store.c"
2409 static void keyring_store_instance_init (KeyringStore * self) {
2410 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2411 self->priv = KEYRING_STORE_GET_PRIVATE (self);
2412 #line 2413 "moonshot-keyring-store.c"
2416 static void keyring_store_finalize (GObject* obj) {
2417 KeyringStore * self;
2418 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2419 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEYRING_STORE, KeyringStore);
2420 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2421 _g_object_unref0 (self->priv->id_card_list);
2422 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2423 G_OBJECT_CLASS (keyring_store_parent_class)->finalize (obj);
2424 #line 2425 "moonshot-keyring-store.c"
2428 GType keyring_store_get_type (void) {
2429 static volatile gsize keyring_store_type_id__volatile = 0;
2430 if (g_once_init_enter (&keyring_store_type_id__volatile)) {
2431 static const GTypeInfo g_define_type_info = { sizeof (KeyringStoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) keyring_store_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeyringStore), 0, (GInstanceInitFunc) keyring_store_instance_init, NULL };
2432 static const GInterfaceInfo iidentity_card_store_info = { (GInterfaceInitFunc) keyring_store_iidentity_card_store_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
2433 GType keyring_store_type_id;
2434 keyring_store_type_id = g_type_register_static (G_TYPE_OBJECT, "KeyringStore", &g_define_type_info, 0);
2435 g_type_add_interface_static (keyring_store_type_id, TYPE_IIDENTITY_CARD_STORE, &iidentity_card_store_info);
2436 g_once_init_leave (&keyring_store_type_id__volatile, keyring_store_type_id);
2438 return keyring_store_type_id__volatile;
2442 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2443 if ((array != NULL) && (destroy_func != NULL)) {
2445 for (i = 0; i < array_length; i = i + 1) {
2446 if (((gpointer*) array)[i] != NULL) {
2447 destroy_func (((gpointer*) array)[i]);
2454 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2455 _vala_array_destroy (array, array_length, destroy_func);
2460 static gint _vala_array_length (gpointer array) {
2464 while (((gpointer*) array)[length]) {