1 /* moonshot-keyring-store.c generated by valac 0.24.0, 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 gchar** id_card_get_services (IdCard* self, int* result_length1);
175 const gchar* id_card_get_issuer (IdCard* self);
176 const gchar* id_card_get_username (IdCard* self);
177 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
178 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
179 const gchar* trust_anchor_get_subject (TrustAnchor* self);
180 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
181 const gchar* id_card_get_password (IdCard* self);
182 KeyringStore* keyring_store_new (void);
183 KeyringStore* keyring_store_construct (GType object_type);
184 static void keyring_store_finalize (GObject* obj);
185 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
186 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
187 static gint _vala_array_length (gpointer array);
190 static void keyring_store_real_add_card (IIdentityCardStore* base, IdCard* card) {
192 GeeLinkedList* _tmp0_ = NULL;
193 IdCard* _tmp1_ = NULL;
194 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
195 self = (KeyringStore*) base;
196 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
197 g_return_if_fail (card != NULL);
198 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
199 _tmp0_ = self->priv->id_card_list;
200 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
202 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
203 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp0_, _tmp1_);
204 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
205 keyring_store_store_id_cards (self);
206 #line 207 "moonshot-keyring-store.c"
210 static gpointer _g_object_ref0 (gpointer self) {
211 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
212 return self ? g_object_ref (self) : NULL;
213 #line 214 "moonshot-keyring-store.c"
217 static IdCard* keyring_store_real_update_card (IIdentityCardStore* base, IdCard* card) {
219 IdCard* result = NULL;
220 GeeLinkedList* _tmp0_ = NULL;
221 IdCard* _tmp1_ = NULL;
222 GeeLinkedList* _tmp2_ = NULL;
223 IdCard* _tmp3_ = NULL;
224 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
225 self = (KeyringStore*) base;
226 #line 46 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
227 g_return_val_if_fail (card != NULL, NULL);
228 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
229 _tmp0_ = self->priv->id_card_list;
230 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
232 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
233 gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
234 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
235 _tmp2_ = self->priv->id_card_list;
236 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
238 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
239 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp2_, _tmp3_);
240 #line 49 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
241 keyring_store_store_id_cards (self);
242 #line 243 "moonshot-keyring-store.c"
244 GeeLinkedList* _idcard_list = NULL;
245 GeeLinkedList* _tmp4_ = NULL;
246 GeeLinkedList* _tmp5_ = NULL;
247 gint _idcard_size = 0;
248 GeeLinkedList* _tmp6_ = NULL;
251 gint _idcard_index = 0;
252 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
253 _tmp4_ = self->priv->id_card_list;
254 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
255 _tmp5_ = _g_object_ref0 (_tmp4_);
256 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
257 _idcard_list = _tmp5_;
258 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
259 _tmp6_ = _idcard_list;
260 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
261 _tmp7_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp6_);
262 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
264 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
265 _idcard_size = _tmp8_;
266 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
268 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
270 #line 271 "moonshot-keyring-store.c"
274 IdCard* idcard = NULL;
275 GeeLinkedList* _tmp12_ = NULL;
277 gpointer _tmp14_ = NULL;
278 IdCard* _tmp15_ = NULL;
279 const gchar* _tmp16_ = NULL;
280 const gchar* _tmp17_ = NULL;
281 IdCard* _tmp18_ = NULL;
282 const gchar* _tmp19_ = NULL;
283 const gchar* _tmp20_ = NULL;
284 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
285 _tmp9_ = _idcard_index;
286 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
287 _idcard_index = _tmp9_ + 1;
288 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
289 _tmp10_ = _idcard_index;
290 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
291 _tmp11_ = _idcard_size;
292 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
293 if (!(_tmp10_ < _tmp11_)) {
294 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
296 #line 297 "moonshot-keyring-store.c"
298 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
299 _tmp12_ = _idcard_list;
300 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
301 _tmp13_ = _idcard_index;
302 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
303 _tmp14_ = gee_abstract_list_get ((GeeAbstractList*) _tmp12_, _tmp13_);
304 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
305 idcard = (IdCard*) _tmp14_;
306 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
308 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
309 _tmp16_ = id_card_get_display_name (_tmp15_);
310 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
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"
315 _tmp19_ = id_card_get_display_name (_tmp18_);
316 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
318 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
319 if (g_strcmp0 (_tmp17_, _tmp20_) == 0) {
320 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
322 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
323 _g_object_unref0 (_idcard_list);
324 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
326 #line 327 "moonshot-keyring-store.c"
328 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
329 _g_object_unref0 (idcard);
330 #line 331 "moonshot-keyring-store.c"
332 #line 50 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
333 _g_object_unref0 (_idcard_list);
334 #line 335 "moonshot-keyring-store.c"
336 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
338 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
340 #line 341 "moonshot-keyring-store.c"
344 static gboolean keyring_store_real_remove_card (IIdentityCardStore* base, IdCard* card) {
346 gboolean result = FALSE;
347 gboolean retval = FALSE;
348 GeeLinkedList* _tmp0_ = NULL;
349 IdCard* _tmp1_ = NULL;
350 gboolean _tmp2_ = FALSE;
351 gboolean _tmp3_ = FALSE;
352 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
353 self = (KeyringStore*) base;
354 #line 56 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
355 g_return_val_if_fail (card != NULL, FALSE);
356 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
357 _tmp0_ = self->priv->id_card_list;
358 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
360 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
361 _tmp2_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
362 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
364 #line 58 "/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 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
369 keyring_store_store_id_cards (self);
370 #line 371 "moonshot-keyring-store.c"
372 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
374 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
376 #line 377 "moonshot-keyring-store.c"
380 static IIdentityCardStoreStoreType keyring_store_real_get_store_type (IIdentityCardStore* base) {
382 IIdentityCardStoreStoreType result = 0;
383 #line 63 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
384 self = (KeyringStore*) base;
385 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
386 result = IIDENTITY_CARD_STORE_STORE_TYPE_KEYRING;
387 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
389 #line 390 "moonshot-keyring-store.c"
393 static GeeLinkedList* keyring_store_real_get_card_list (IIdentityCardStore* base) {
395 GeeLinkedList* result = NULL;
396 GeeLinkedList* _tmp0_ = NULL;
397 GeeLinkedList* _tmp1_ = NULL;
398 #line 67 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
399 self = (KeyringStore*) base;
400 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
401 _tmp0_ = self->priv->id_card_list;
402 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
403 _tmp1_ = _g_object_ref0 (_tmp0_);
404 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
406 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
408 #line 409 "moonshot-keyring-store.c"
412 static void _gnome_keyring_found_free0_ (gpointer var) {
413 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
414 (var == NULL) ? NULL : (var = (gnome_keyring_found_free (var), NULL));
415 #line 416 "moonshot-keyring-store.c"
419 static void _g_list_free__gnome_keyring_found_free0_ (GList* self) {
420 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
421 g_list_foreach (self, (GFunc) _gnome_keyring_found_free0_, NULL);
422 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
424 #line 425 "moonshot-keyring-store.c"
428 static void keyring_store_clear_keyring (KeyringStore* self) {
429 GnomeKeyringAttributeList* match = NULL;
430 GnomeKeyringAttributeList* _tmp0_ = NULL;
431 GnomeKeyringAttributeList* _tmp1_ = NULL;
433 GnomeKeyringAttributeList* _tmp2_ = NULL;
434 GList* _tmp3_ = NULL;
435 GList* _tmp4_ = NULL;
436 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
437 g_return_if_fail (self != NULL);
438 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
439 _tmp0_ = gnome_keyring_attribute_list_new ();
440 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
442 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
444 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
445 gnome_keyring_attribute_list_append_string (_tmp1_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
446 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
448 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
449 gnome_keyring_find_items_sync (KEYRING_STORE_item_type, _tmp2_, &_tmp3_);
450 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
451 __g_list_free__gnome_keyring_found_free0_0 (items);
452 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
454 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
456 #line 457 "moonshot-keyring-store.c"
458 GList* entry_collection = NULL;
459 GList* entry_it = NULL;
460 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
461 entry_collection = _tmp4_;
462 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
463 for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
464 #line 465 "moonshot-keyring-store.c"
465 GnomeKeyringFound* entry = NULL;
466 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
467 entry = (GnomeKeyringFound*) entry_it->data;
468 #line 469 "moonshot-keyring-store.c"
470 GnomeKeyringResult _result_ = 0;
471 GnomeKeyringFound* _tmp5_ = NULL;
473 GnomeKeyringResult _tmp7_ = 0;
474 GnomeKeyringResult _tmp8_ = 0;
475 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
477 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
478 _tmp6_ = _tmp5_->item_id;
479 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
480 _tmp7_ = gnome_keyring_item_delete_sync (NULL, (guint32) _tmp6_);
481 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
483 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
485 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
486 if (_tmp8_ != GNOME_KEYRING_RESULT_OK) {
487 #line 488 "moonshot-keyring-store.c"
489 GnomeKeyringResult _tmp10_ = 0;
490 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
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"
495 fprintf (_tmp9_, "GnomeKeyring.item_delete_sync() failed. result: %d", (gint) _tmp10_);
496 #line 497 "moonshot-keyring-store.c"
501 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
502 __g_list_free__gnome_keyring_found_free0_0 (items);
503 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
504 _gnome_keyring_attribute_list_free0 (match);
505 #line 506 "moonshot-keyring-store.c"
509 static void _vala_Rule_array_free (Rule* array, gint array_length) {
510 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
512 #line 513 "moonshot-keyring-store.c"
514 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
515 for (i = 0; i < array_length; i = i + 1) {
516 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
517 rule_destroy (&array[i]);
518 #line 519 "moonshot-keyring-store.c"
521 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
523 #line 524 "moonshot-keyring-store.c"
527 static void keyring_store_load_id_cards (KeyringStore* self) {
528 GeeLinkedList* _tmp0_ = NULL;
529 GnomeKeyringAttributeList* match = NULL;
530 GnomeKeyringAttributeList* _tmp1_ = NULL;
531 GnomeKeyringAttributeList* _tmp2_ = NULL;
533 GnomeKeyringAttributeList* _tmp3_ = NULL;
534 GList* _tmp4_ = NULL;
535 GList* _tmp5_ = NULL;
536 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
537 g_return_if_fail (self != NULL);
538 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
539 _tmp0_ = self->priv->id_card_list;
540 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
541 gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
542 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
543 _tmp1_ = gnome_keyring_attribute_list_new ();
544 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
546 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
548 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
549 gnome_keyring_attribute_list_append_string (_tmp2_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
550 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
552 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
553 gnome_keyring_find_items_sync (KEYRING_STORE_item_type, _tmp3_, &_tmp4_);
554 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
555 __g_list_free__gnome_keyring_found_free0_0 (items);
556 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
558 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
560 #line 561 "moonshot-keyring-store.c"
562 GList* entry_collection = NULL;
563 GList* entry_it = NULL;
564 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
565 entry_collection = _tmp5_;
566 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
567 for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
568 #line 569 "moonshot-keyring-store.c"
569 GnomeKeyringFound* entry = NULL;
570 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
571 entry = (GnomeKeyringFound*) entry_it->data;
572 #line 573 "moonshot-keyring-store.c"
574 IdCard* id_card = NULL;
575 IdCard* _tmp6_ = NULL;
577 gint rules_patterns_index = 0;
578 gint rules_always_confirm_index = 0;
579 gchar* store_password = NULL;
580 gboolean _tmp74_ = FALSE;
582 const gchar* _tmp119_ = NULL;
583 IdCard* _tmp128_ = NULL;
584 gboolean _tmp129_ = FALSE;
585 gboolean _tmp130_ = FALSE;
586 GeeLinkedList* _tmp135_ = NULL;
587 IdCard* _tmp136_ = NULL;
588 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
589 _tmp6_ = id_card_new ();
590 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
592 #line 95 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
593 rules_patterns_index = -1;
594 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
595 rules_always_confirm_index = -1;
596 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
597 store_password = NULL;
598 #line 599 "moonshot-keyring-store.c"
600 gboolean _tmp7_ = FALSE;
601 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
603 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
605 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
607 #line 608 "moonshot-keyring-store.c"
609 GnomeKeyringFound* _tmp10_ = NULL;
610 GnomeKeyringAttributeList* _tmp11_ = NULL;
612 GnomeKeyringAttribute attribute = {0};
613 GnomeKeyringFound* _tmp13_ = NULL;
614 GnomeKeyringAttributeList* _tmp14_ = NULL;
615 GnomeKeyringAttribute* _tmp15_ = NULL;
616 gint _tmp15__length1 = 0;
618 GnomeKeyringAttribute _tmp17_ = {0};
620 GnomeKeyringAttribute _tmp18_ = {0};
621 const gchar* _tmp19_ = NULL;
622 gchar* _tmp20_ = NULL;
623 GnomeKeyringAttribute _tmp21_ = {0};
624 const gchar* _tmp22_ = NULL;
625 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
627 #line 628 "moonshot-keyring-store.c"
629 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
631 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
633 #line 634 "moonshot-keyring-store.c"
635 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
637 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
639 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
641 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
642 _tmp11_ = _tmp10_->attributes;
643 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
644 _tmp12_ = _tmp11_->len;
645 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
646 if (!(((guint) _tmp9_) < _tmp12_)) {
647 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
649 #line 650 "moonshot-keyring-store.c"
651 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
653 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
654 _tmp14_ = _tmp13_->attributes;
655 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
656 _tmp15_ = _tmp14_->data;
657 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
658 _tmp15__length1 = -1;
659 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
661 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
662 _tmp17_ = ((GnomeKeyringAttribute*) _tmp15_)[_tmp16_];
663 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
665 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
667 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
668 _tmp19_ = _tmp18_.value.string;
669 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
670 _tmp20_ = g_strdup (_tmp19_);
671 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
673 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
675 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
676 _tmp22_ = _tmp21_.name;
677 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
678 if (g_strcmp0 (_tmp22_, "Issuer") == 0) {
679 #line 680 "moonshot-keyring-store.c"
680 IdCard* _tmp23_ = NULL;
681 const gchar* _tmp24_ = NULL;
682 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
684 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
686 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
687 id_card_set_issuer (_tmp23_, _tmp24_);
688 #line 689 "moonshot-keyring-store.c"
690 GnomeKeyringAttribute _tmp25_ = {0};
691 const gchar* _tmp26_ = NULL;
692 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
694 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
695 _tmp26_ = _tmp25_.name;
696 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
697 if (g_strcmp0 (_tmp26_, "Username") == 0) {
698 #line 699 "moonshot-keyring-store.c"
699 IdCard* _tmp27_ = NULL;
700 const gchar* _tmp28_ = NULL;
701 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
703 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
705 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
706 id_card_set_username (_tmp27_, _tmp28_);
707 #line 708 "moonshot-keyring-store.c"
709 GnomeKeyringAttribute _tmp29_ = {0};
710 const gchar* _tmp30_ = NULL;
711 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
713 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
714 _tmp30_ = _tmp29_.name;
715 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
716 if (g_strcmp0 (_tmp30_, "DisplayName") == 0) {
717 #line 718 "moonshot-keyring-store.c"
718 IdCard* _tmp31_ = NULL;
719 const gchar* _tmp32_ = NULL;
720 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
722 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
724 #line 106 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
725 id_card_set_display_name (_tmp31_, _tmp32_);
726 #line 727 "moonshot-keyring-store.c"
728 GnomeKeyringAttribute _tmp33_ = {0};
729 const gchar* _tmp34_ = NULL;
730 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
732 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
733 _tmp34_ = _tmp33_.name;
734 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
735 if (g_strcmp0 (_tmp34_, "Services") == 0) {
736 #line 737 "moonshot-keyring-store.c"
737 IdCard* _tmp35_ = NULL;
738 const gchar* _tmp36_ = NULL;
739 gchar** _tmp37_ = NULL;
740 gchar** _tmp38_ = NULL;
741 gchar** _tmp39_ = NULL;
742 gint _tmp39__length1 = 0;
743 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
745 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
747 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
748 _tmp38_ = _tmp37_ = g_strsplit (_tmp36_, ";", 0);
749 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
751 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
752 _tmp39__length1 = _vala_array_length (_tmp37_);
753 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
754 id_card_set_services (_tmp35_, _tmp39_, _vala_array_length (_tmp37_));
755 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
756 _tmp39_ = (_vala_array_free (_tmp39_, _tmp39__length1, (GDestroyNotify) g_free), NULL);
757 #line 758 "moonshot-keyring-store.c"
759 GnomeKeyringAttribute _tmp40_ = {0};
760 const gchar* _tmp41_ = NULL;
761 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
763 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
764 _tmp41_ = _tmp40_.name;
765 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
766 if (g_strcmp0 (_tmp41_, "Rules-Pattern") == 0) {
767 #line 768 "moonshot-keyring-store.c"
769 #line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
771 #line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
772 rules_patterns_index = _tmp42_;
773 #line 774 "moonshot-keyring-store.c"
775 GnomeKeyringAttribute _tmp43_ = {0};
776 const gchar* _tmp44_ = NULL;
777 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
779 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
780 _tmp44_ = _tmp43_.name;
781 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
782 if (g_strcmp0 (_tmp44_, "Rules-AlwaysConfirm") == 0) {
783 #line 784 "moonshot-keyring-store.c"
785 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
787 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
788 rules_always_confirm_index = _tmp45_;
789 #line 790 "moonshot-keyring-store.c"
791 GnomeKeyringAttribute _tmp46_ = {0};
792 const gchar* _tmp47_ = NULL;
793 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
795 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
796 _tmp47_ = _tmp46_.name;
797 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
798 if (g_strcmp0 (_tmp47_, "CA-Cert") == 0) {
799 #line 800 "moonshot-keyring-store.c"
800 IdCard* _tmp48_ = NULL;
801 TrustAnchor* _tmp49_ = NULL;
802 TrustAnchor* _tmp50_ = NULL;
803 const gchar* _tmp51_ = NULL;
804 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
806 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
807 _tmp49_ = id_card_get_trust_anchor (_tmp48_);
808 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
810 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
812 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
813 trust_anchor_set_ca_cert (_tmp50_, _tmp51_);
814 #line 815 "moonshot-keyring-store.c"
816 GnomeKeyringAttribute _tmp52_ = {0};
817 const gchar* _tmp53_ = NULL;
818 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
820 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
821 _tmp53_ = _tmp52_.name;
822 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
823 if (g_strcmp0 (_tmp53_, "Server-Cert") == 0) {
824 #line 825 "moonshot-keyring-store.c"
825 IdCard* _tmp54_ = NULL;
826 TrustAnchor* _tmp55_ = NULL;
827 TrustAnchor* _tmp56_ = NULL;
828 const gchar* _tmp57_ = NULL;
829 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
831 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
832 _tmp55_ = id_card_get_trust_anchor (_tmp54_);
833 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
835 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
837 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
838 trust_anchor_set_server_cert (_tmp56_, _tmp57_);
839 #line 840 "moonshot-keyring-store.c"
841 GnomeKeyringAttribute _tmp58_ = {0};
842 const gchar* _tmp59_ = NULL;
843 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
845 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
846 _tmp59_ = _tmp58_.name;
847 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
848 if (g_strcmp0 (_tmp59_, "Subject") == 0) {
849 #line 850 "moonshot-keyring-store.c"
850 IdCard* _tmp60_ = NULL;
851 TrustAnchor* _tmp61_ = NULL;
852 TrustAnchor* _tmp62_ = NULL;
853 const gchar* _tmp63_ = NULL;
854 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
856 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
857 _tmp61_ = id_card_get_trust_anchor (_tmp60_);
858 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
860 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
862 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
863 trust_anchor_set_subject (_tmp62_, _tmp63_);
864 #line 865 "moonshot-keyring-store.c"
866 GnomeKeyringAttribute _tmp64_ = {0};
867 const gchar* _tmp65_ = NULL;
868 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
870 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
871 _tmp65_ = _tmp64_.name;
872 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
873 if (g_strcmp0 (_tmp65_, "Subject-Alt") == 0) {
874 #line 875 "moonshot-keyring-store.c"
875 IdCard* _tmp66_ = NULL;
876 TrustAnchor* _tmp67_ = NULL;
877 TrustAnchor* _tmp68_ = NULL;
878 const gchar* _tmp69_ = NULL;
879 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
881 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
882 _tmp67_ = id_card_get_trust_anchor (_tmp66_);
883 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
885 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
887 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
888 trust_anchor_set_subject_alt (_tmp68_, _tmp69_);
889 #line 890 "moonshot-keyring-store.c"
891 GnomeKeyringAttribute _tmp70_ = {0};
892 const gchar* _tmp71_ = NULL;
893 #line 121 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
895 #line 121 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
896 _tmp71_ = _tmp70_.name;
897 #line 121 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
898 if (g_strcmp0 (_tmp71_, "StorePassword") == 0) {
899 #line 900 "moonshot-keyring-store.c"
900 const gchar* _tmp72_ = NULL;
901 gchar* _tmp73_ = NULL;
902 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
904 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
905 _tmp73_ = g_strdup (_tmp72_);
906 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
907 _g_free0 (store_password);
908 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
909 store_password = _tmp73_;
910 #line 911 "moonshot-keyring-store.c"
922 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
924 #line 925 "moonshot-keyring-store.c"
927 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
928 _tmp75_ = rules_always_confirm_index;
929 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
930 if (_tmp75_ != (-1)) {
931 #line 932 "moonshot-keyring-store.c"
933 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
934 _tmp76_ = rules_patterns_index;
935 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
936 _tmp74_ = _tmp76_ != (-1);
937 #line 938 "moonshot-keyring-store.c"
939 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
941 #line 942 "moonshot-keyring-store.c"
943 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
945 #line 946 "moonshot-keyring-store.c"
946 gchar* rules_patterns_all = NULL;
947 GnomeKeyringFound* _tmp77_ = NULL;
948 GnomeKeyringAttributeList* _tmp78_ = NULL;
949 GnomeKeyringAttribute* _tmp79_ = NULL;
950 gint _tmp79__length1 = 0;
952 GnomeKeyringAttribute _tmp81_ = {0};
953 const gchar* _tmp82_ = NULL;
954 gchar* _tmp83_ = NULL;
955 gchar* rules_always_confirm_all = NULL;
956 GnomeKeyringFound* _tmp84_ = NULL;
957 GnomeKeyringAttributeList* _tmp85_ = NULL;
958 GnomeKeyringAttribute* _tmp86_ = NULL;
959 gint _tmp86__length1 = 0;
961 GnomeKeyringAttribute _tmp88_ = {0};
962 const gchar* _tmp89_ = NULL;
963 gchar* _tmp90_ = NULL;
964 gchar** rules_always_confirm = NULL;
965 const gchar* _tmp91_ = NULL;
966 gchar** _tmp92_ = NULL;
967 gchar** _tmp93_ = NULL;
968 gint rules_always_confirm_length1 = 0;
969 gint _rules_always_confirm_size_ = 0;
970 gchar** rules_patterns = NULL;
971 const gchar* _tmp94_ = NULL;
972 gchar** _tmp95_ = NULL;
973 gchar** _tmp96_ = NULL;
974 gint rules_patterns_length1 = 0;
975 gint _rules_patterns_size_ = 0;
976 gchar** _tmp97_ = NULL;
977 gint _tmp97__length1 = 0;
978 gchar** _tmp98_ = NULL;
979 gint _tmp98__length1 = 0;
980 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
982 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
983 _tmp78_ = _tmp77_->attributes;
984 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
985 _tmp79_ = _tmp78_->data;
986 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
987 _tmp79__length1 = -1;
988 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
989 _tmp80_ = rules_patterns_index;
990 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
991 _tmp81_ = ((GnomeKeyringAttribute*) _tmp79_)[_tmp80_];
992 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
993 _tmp82_ = _tmp81_.value.string;
994 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
995 _tmp83_ = g_strdup (_tmp82_);
996 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
997 rules_patterns_all = _tmp83_;
998 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1000 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1001 _tmp85_ = _tmp84_->attributes;
1002 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1003 _tmp86_ = _tmp85_->data;
1004 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1005 _tmp86__length1 = -1;
1006 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1007 _tmp87_ = rules_always_confirm_index;
1008 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1009 _tmp88_ = ((GnomeKeyringAttribute*) _tmp86_)[_tmp87_];
1010 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1011 _tmp89_ = _tmp88_.value.string;
1012 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1013 _tmp90_ = g_strdup (_tmp89_);
1014 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1015 rules_always_confirm_all = _tmp90_;
1016 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1017 _tmp91_ = rules_always_confirm_all;
1018 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1019 _tmp93_ = _tmp92_ = g_strsplit (_tmp91_, ";", 0);
1020 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1021 rules_always_confirm = _tmp93_;
1022 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1023 rules_always_confirm_length1 = _vala_array_length (_tmp92_);
1024 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1025 _rules_always_confirm_size_ = rules_always_confirm_length1;
1026 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1027 _tmp94_ = rules_patterns_all;
1028 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1029 _tmp96_ = _tmp95_ = g_strsplit (_tmp94_, ";", 0);
1030 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1031 rules_patterns = _tmp96_;
1032 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1033 rules_patterns_length1 = _vala_array_length (_tmp95_);
1034 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1035 _rules_patterns_size_ = rules_patterns_length1;
1036 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1037 _tmp97_ = rules_patterns;
1038 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1039 _tmp97__length1 = rules_patterns_length1;
1040 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1041 _tmp98_ = rules_always_confirm;
1042 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1043 _tmp98__length1 = rules_always_confirm_length1;
1044 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1045 if (_tmp97__length1 == _tmp98__length1) {
1046 #line 1047 "moonshot-keyring-store.c"
1048 gchar** _tmp99_ = NULL;
1049 gint _tmp99__length1 = 0;
1050 Rule* _tmp100_ = NULL;
1051 gint rules_length1 = 0;
1052 gint _rules_size_ = 0;
1053 IdCard* _tmp117_ = NULL;
1054 Rule* _tmp118_ = NULL;
1055 gint _tmp118__length1 = 0;
1056 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1057 _tmp99_ = rules_patterns;
1058 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1059 _tmp99__length1 = rules_patterns_length1;
1060 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1061 _tmp100_ = g_new0 (Rule, _tmp99__length1);
1062 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1064 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1065 rules_length1 = _tmp99__length1;
1066 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1067 _rules_size_ = rules_length1;
1068 #line 1069 "moonshot-keyring-store.c"
1071 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1073 #line 1074 "moonshot-keyring-store.c"
1075 gboolean _tmp101_ = FALSE;
1076 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1078 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1080 #line 1081 "moonshot-keyring-store.c"
1082 gchar** _tmp104_ = NULL;
1083 gint _tmp104__length1 = 0;
1084 Rule* _tmp105_ = NULL;
1085 gint _tmp105__length1 = 0;
1087 gchar** _tmp107_ = NULL;
1088 gint _tmp107__length1 = 0;
1090 const gchar* _tmp109_ = NULL;
1091 gchar* _tmp110_ = NULL;
1092 Rule* _tmp111_ = NULL;
1093 gint _tmp111__length1 = 0;
1095 gchar** _tmp113_ = NULL;
1096 gint _tmp113__length1 = 0;
1098 const gchar* _tmp115_ = NULL;
1099 gchar* _tmp116_ = NULL;
1100 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1102 #line 1103 "moonshot-keyring-store.c"
1104 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1106 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1108 #line 1109 "moonshot-keyring-store.c"
1110 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1112 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1114 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1115 _tmp104_ = rules_patterns;
1116 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1117 _tmp104__length1 = rules_patterns_length1;
1118 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1119 if (!(_tmp103_ < _tmp104__length1)) {
1120 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1122 #line 1123 "moonshot-keyring-store.c"
1124 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1126 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1127 _tmp105__length1 = rules_length1;
1128 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1130 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1131 _tmp107_ = rules_patterns;
1132 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1133 _tmp107__length1 = rules_patterns_length1;
1134 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1136 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1137 _tmp109_ = _tmp107_[_tmp108_];
1138 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1139 _tmp110_ = g_strdup (_tmp109_);
1140 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1141 _g_free0 (_tmp105_[_tmp106_].pattern);
1142 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1143 _tmp105_[_tmp106_].pattern = _tmp110_;
1144 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1146 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1147 _tmp111__length1 = rules_length1;
1148 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1150 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1151 _tmp113_ = rules_always_confirm;
1152 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1153 _tmp113__length1 = rules_always_confirm_length1;
1154 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1156 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1157 _tmp115_ = _tmp113_[_tmp114_];
1158 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1159 _tmp116_ = g_strdup (_tmp115_);
1160 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1161 _g_free0 (_tmp111_[_tmp112_].always_confirm);
1162 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1163 _tmp111_[_tmp112_].always_confirm = _tmp116_;
1164 #line 1165 "moonshot-keyring-store.c"
1168 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1170 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1172 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1173 _tmp118__length1 = rules_length1;
1174 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1175 id_card_set_rules (_tmp117_, _tmp118_, _tmp118__length1);
1176 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1177 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1178 #line 1179 "moonshot-keyring-store.c"
1180 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1181 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1182 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1183 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1184 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1185 _g_free0 (rules_always_confirm_all);
1186 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1187 _g_free0 (rules_patterns_all);
1188 #line 1189 "moonshot-keyring-store.c"
1190 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1191 _tmp119_ = store_password;
1192 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1193 if (_tmp119_ != NULL) {
1194 #line 1195 "moonshot-keyring-store.c"
1195 IdCard* _tmp120_ = NULL;
1196 const gchar* _tmp121_ = NULL;
1197 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1199 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1200 _tmp121_ = store_password;
1201 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1202 id_card_set_store_password (_tmp120_, g_strcmp0 (_tmp121_, "yes") == 0);
1203 #line 1204 "moonshot-keyring-store.c"
1205 gboolean _tmp122_ = FALSE;
1206 GnomeKeyringFound* _tmp123_ = NULL;
1207 const gchar* _tmp124_ = NULL;
1208 IdCard* _tmp127_ = NULL;
1209 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1211 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1212 _tmp124_ = _tmp123_->secret;
1213 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1214 if (_tmp124_ != NULL) {
1215 #line 1216 "moonshot-keyring-store.c"
1216 GnomeKeyringFound* _tmp125_ = NULL;
1217 const gchar* _tmp126_ = NULL;
1218 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1220 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1221 _tmp126_ = _tmp125_->secret;
1222 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1223 _tmp122_ = g_strcmp0 (_tmp126_, "") != 0;
1224 #line 1225 "moonshot-keyring-store.c"
1226 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1228 #line 1229 "moonshot-keyring-store.c"
1230 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1232 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1233 id_card_set_store_password (_tmp127_, _tmp122_);
1234 #line 1235 "moonshot-keyring-store.c"
1236 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1238 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1239 _tmp129_ = id_card_get_store_password (_tmp128_);
1240 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1241 _tmp130_ = _tmp129_;
1242 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1244 #line 1245 "moonshot-keyring-store.c"
1245 IdCard* _tmp131_ = NULL;
1246 GnomeKeyringFound* _tmp132_ = NULL;
1247 const gchar* _tmp133_ = NULL;
1248 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1250 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1252 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1253 _tmp133_ = _tmp132_->secret;
1254 #line 146 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1255 id_card_set_password (_tmp131_, _tmp133_);
1256 #line 1257 "moonshot-keyring-store.c"
1258 IdCard* _tmp134_ = NULL;
1259 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1261 #line 148 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1262 id_card_set_password (_tmp134_, NULL);
1263 #line 1264 "moonshot-keyring-store.c"
1265 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1266 _tmp135_ = self->priv->id_card_list;
1267 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1269 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1270 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp135_, _tmp136_);
1271 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1272 _g_free0 (store_password);
1273 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1274 _g_object_unref0 (id_card);
1275 #line 1276 "moonshot-keyring-store.c"
1279 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1280 __g_list_free__gnome_keyring_found_free0_0 (items);
1281 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1282 _gnome_keyring_attribute_list_free0 (match);
1283 #line 1284 "moonshot-keyring-store.c"
1287 static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
1288 gchar* result = NULL;
1289 const gchar* _tmp0_ = NULL;
1290 gboolean _tmp1_ = FALSE;
1291 gboolean _tmp2_ = FALSE;
1292 gchar** _tmp3_ = NULL;
1293 gint _tmp3__length1 = 0;
1294 #line 964 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1296 #line 964 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1297 if (_tmp0_ == NULL) {
1298 #line 965 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1300 #line 1301 "moonshot-keyring-store.c"
1302 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1304 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1305 _tmp3__length1 = str_array_length1;
1306 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1307 if (_tmp3_ != NULL) {
1308 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1310 #line 1311 "moonshot-keyring-store.c"
1312 gchar** _tmp4_ = NULL;
1313 gint _tmp4__length1 = 0;
1314 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1316 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1317 _tmp4__length1 = str_array_length1;
1318 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1319 _tmp2_ = _tmp4__length1 > 0;
1320 #line 1321 "moonshot-keyring-store.c"
1322 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1324 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1326 #line 1327 "moonshot-keyring-store.c"
1328 gboolean _tmp5_ = FALSE;
1329 gchar** _tmp6_ = NULL;
1330 gint _tmp6__length1 = 0;
1331 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1333 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1334 _tmp6__length1 = str_array_length1;
1335 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1336 if (_tmp6__length1 == (-1)) {
1337 #line 1338 "moonshot-keyring-store.c"
1338 gchar** _tmp7_ = NULL;
1339 gint _tmp7__length1 = 0;
1340 const gchar* _tmp8_ = NULL;
1341 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1343 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1344 _tmp7__length1 = str_array_length1;
1345 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1347 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1348 _tmp5_ = _tmp8_ != NULL;
1349 #line 1350 "moonshot-keyring-store.c"
1351 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1353 #line 1354 "moonshot-keyring-store.c"
1355 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1357 #line 1358 "moonshot-keyring-store.c"
1359 #line 967 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1361 #line 1362 "moonshot-keyring-store.c"
1367 gsize _tmp35_ = 0UL;
1368 const gchar* _tmp36_ = NULL;
1372 const gchar* res = NULL;
1373 gsize _tmp40_ = 0UL;
1374 void* _tmp41_ = NULL;
1376 const gchar* _tmp42_ = NULL;
1377 gchar** _tmp43_ = NULL;
1378 gint _tmp43__length1 = 0;
1379 const gchar* _tmp44_ = NULL;
1380 void* _tmp45_ = NULL;
1381 const gchar* _tmp62_ = NULL;
1382 #line 969 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1384 #line 1385 "moonshot-keyring-store.c"
1386 gboolean _tmp9_ = FALSE;
1387 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1389 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1391 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1393 #line 1394 "moonshot-keyring-store.c"
1394 gboolean _tmp11_ = FALSE;
1395 gboolean _tmp12_ = FALSE;
1396 gchar** _tmp13_ = NULL;
1397 gint _tmp13__length1 = 0;
1399 gchar** _tmp22_ = NULL;
1400 gint _tmp22__length1 = 0;
1402 const gchar* _tmp24_ = NULL;
1403 gsize _tmp30_ = 0UL;
1404 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1406 #line 1407 "moonshot-keyring-store.c"
1408 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1410 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1412 #line 1413 "moonshot-keyring-store.c"
1414 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1416 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1417 _tmp13_ = str_array;
1418 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1419 _tmp13__length1 = str_array_length1;
1420 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1421 if (_tmp13__length1 != (-1)) {
1422 #line 1423 "moonshot-keyring-store.c"
1424 gchar** _tmp15_ = NULL;
1425 gint _tmp15__length1 = 0;
1426 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1428 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1429 _tmp15_ = str_array;
1430 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1431 _tmp15__length1 = str_array_length1;
1432 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1433 _tmp12_ = _tmp14_ < _tmp15__length1;
1434 #line 1435 "moonshot-keyring-store.c"
1436 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1438 #line 1439 "moonshot-keyring-store.c"
1440 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1442 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1444 #line 1445 "moonshot-keyring-store.c"
1446 gboolean _tmp16_ = FALSE;
1447 gchar** _tmp17_ = NULL;
1448 gint _tmp17__length1 = 0;
1449 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1450 _tmp17_ = str_array;
1451 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1452 _tmp17__length1 = str_array_length1;
1453 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1454 if (_tmp17__length1 == (-1)) {
1455 #line 1456 "moonshot-keyring-store.c"
1456 gchar** _tmp18_ = NULL;
1457 gint _tmp18__length1 = 0;
1459 const gchar* _tmp20_ = NULL;
1460 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1461 _tmp18_ = str_array;
1462 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1463 _tmp18__length1 = str_array_length1;
1464 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1466 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1467 _tmp20_ = _tmp18_[_tmp19_];
1468 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1469 _tmp16_ = _tmp20_ != NULL;
1470 #line 1471 "moonshot-keyring-store.c"
1472 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1474 #line 1475 "moonshot-keyring-store.c"
1476 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1478 #line 1479 "moonshot-keyring-store.c"
1480 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1482 #line 970 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1484 #line 1485 "moonshot-keyring-store.c"
1486 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1487 _tmp22_ = str_array;
1488 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1489 _tmp22__length1 = str_array_length1;
1490 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1492 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1493 _tmp24_ = _tmp22_[_tmp23_];
1494 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1495 if (_tmp24_ != NULL) {
1496 #line 1497 "moonshot-keyring-store.c"
1497 gchar** _tmp25_ = NULL;
1498 gint _tmp25__length1 = 0;
1500 const gchar* _tmp27_ = NULL;
1503 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1504 _tmp25_ = str_array;
1505 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1506 _tmp25__length1 = str_array_length1;
1507 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1509 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1510 _tmp27_ = _tmp25_[_tmp26_];
1511 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1512 _tmp28_ = strlen ((const gchar*) _tmp27_);
1513 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1515 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1517 #line 1518 "moonshot-keyring-store.c"
1519 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1521 #line 1522 "moonshot-keyring-store.c"
1523 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1525 #line 971 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1526 len = _tmp30_ + _tmp21_;
1527 #line 1528 "moonshot-keyring-store.c"
1530 #line 973 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1532 #line 973 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1534 #line 1535 "moonshot-keyring-store.c"
1535 gchar* _tmp32_ = NULL;
1536 #line 974 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1537 _tmp32_ = g_strdup ("");
1538 #line 974 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1540 #line 974 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1542 #line 1543 "moonshot-keyring-store.c"
1544 #line 976 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1546 #line 976 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1547 str_array_length1 = _tmp33_;
1548 #line 976 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1549 _tmp34_ = str_array_length1;
1550 #line 977 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1552 #line 977 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1553 _tmp36_ = separator;
1554 #line 977 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1555 _tmp37_ = strlen ((const gchar*) _tmp36_);
1556 #line 977 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1558 #line 977 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1560 #line 977 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1561 len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
1562 #line 979 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1564 #line 979 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1565 _tmp41_ = g_malloc (_tmp40_);
1566 #line 979 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1568 #line 980 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1570 #line 980 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1571 _tmp43_ = str_array;
1572 #line 980 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1573 _tmp43__length1 = str_array_length1;
1574 #line 980 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1575 _tmp44_ = _tmp43_[0];
1576 #line 980 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1577 _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
1578 #line 980 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1580 #line 1581 "moonshot-keyring-store.c"
1582 gboolean _tmp46_ = FALSE;
1583 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1585 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1587 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1589 #line 1590 "moonshot-keyring-store.c"
1591 gchar** _tmp49_ = NULL;
1592 gint _tmp49__length1 = 0;
1593 void* _tmp50_ = NULL;
1594 const gchar* _tmp51_ = NULL;
1595 void* _tmp52_ = NULL;
1596 const gchar* _tmp53_ = NULL;
1597 gchar** _tmp54_ = NULL;
1598 gint _tmp54__length1 = 0;
1600 const gchar* _tmp56_ = NULL;
1601 void* _tmp60_ = NULL;
1602 void* _tmp61_ = NULL;
1603 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1605 #line 1606 "moonshot-keyring-store.c"
1607 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1609 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1611 #line 1612 "moonshot-keyring-store.c"
1613 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1615 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1617 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1618 _tmp49_ = str_array;
1619 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1620 _tmp49__length1 = str_array_length1;
1621 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1622 if (!(_tmp48_ < _tmp49__length1)) {
1623 #line 981 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1625 #line 1626 "moonshot-keyring-store.c"
1627 #line 982 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1629 #line 982 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1630 _tmp51_ = separator;
1631 #line 982 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1632 _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
1633 #line 982 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1635 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1636 _tmp54_ = str_array;
1637 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1638 _tmp54__length1 = str_array_length1;
1639 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1641 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1642 _tmp56_ = _tmp54_[_tmp55_];
1643 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1644 if (_tmp56_ != NULL) {
1645 #line 1646 "moonshot-keyring-store.c"
1646 gchar** _tmp57_ = NULL;
1647 gint _tmp57__length1 = 0;
1649 const gchar* _tmp59_ = NULL;
1650 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1651 _tmp57_ = str_array;
1652 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1653 _tmp57__length1 = str_array_length1;
1654 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1656 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1657 _tmp59_ = _tmp57_[_tmp58_];
1658 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1659 _tmp53_ = (const gchar*) _tmp59_;
1660 #line 1661 "moonshot-keyring-store.c"
1662 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1664 #line 1665 "moonshot-keyring-store.c"
1666 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1668 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1669 _tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
1670 #line 983 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1672 #line 1673 "moonshot-keyring-store.c"
1675 #line 986 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1677 #line 986 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1679 #line 986 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1680 result = (gchar*) _tmp62_;
1681 #line 986 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1683 #line 1684 "moonshot-keyring-store.c"
1685 gchar* _tmp63_ = NULL;
1686 #line 988 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1687 _tmp63_ = g_strdup ("");
1688 #line 988 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1690 #line 988 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
1692 #line 1693 "moonshot-keyring-store.c"
1697 void keyring_store_store_id_cards (KeyringStore* self) {
1698 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1699 g_return_if_fail (self != NULL);
1700 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1701 keyring_store_clear_keyring (self);
1702 #line 1703 "moonshot-keyring-store.c"
1704 GeeLinkedList* _id_card_list = NULL;
1705 GeeLinkedList* _tmp0_ = NULL;
1706 GeeLinkedList* _tmp1_ = NULL;
1707 gint _id_card_size = 0;
1708 GeeLinkedList* _tmp2_ = NULL;
1711 gint _id_card_index = 0;
1712 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1713 _tmp0_ = self->priv->id_card_list;
1714 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1715 _tmp1_ = _g_object_ref0 (_tmp0_);
1716 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1717 _id_card_list = _tmp1_;
1718 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1719 _tmp2_ = _id_card_list;
1720 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1721 _tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
1722 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1724 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1725 _id_card_size = _tmp4_;
1726 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1727 _id_card_index = -1;
1728 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1730 #line 1731 "moonshot-keyring-store.c"
1734 IdCard* id_card = NULL;
1735 GeeLinkedList* _tmp8_ = NULL;
1737 gpointer _tmp10_ = NULL;
1738 gchar** rules_patterns = NULL;
1739 IdCard* _tmp11_ = NULL;
1740 Rule* _tmp12_ = NULL;
1741 gint _tmp12__length1 = 0;
1742 Rule* _tmp13_ = NULL;
1743 gint _tmp13__length1 = 0;
1744 gchar** _tmp14_ = NULL;
1745 gint rules_patterns_length1 = 0;
1746 gint _rules_patterns_size_ = 0;
1747 gchar** rules_always_conf = NULL;
1748 IdCard* _tmp15_ = NULL;
1749 Rule* _tmp16_ = NULL;
1750 gint _tmp16__length1 = 0;
1751 Rule* _tmp17_ = NULL;
1752 gint _tmp17__length1 = 0;
1753 gchar** _tmp18_ = NULL;
1754 gint rules_always_conf_length1 = 0;
1755 gint _rules_always_conf_size_ = 0;
1756 gchar* patterns = NULL;
1757 gchar** _tmp45_ = NULL;
1758 gint _tmp45__length1 = 0;
1759 gchar* _tmp46_ = NULL;
1760 gchar* always_conf = NULL;
1761 gchar** _tmp47_ = NULL;
1762 gint _tmp47__length1 = 0;
1763 gchar* _tmp48_ = NULL;
1764 gchar* services = NULL;
1765 IdCard* _tmp49_ = NULL;
1766 gchar** _tmp50_ = NULL;
1767 gint _tmp50__length1 = 0;
1768 gchar** _tmp51_ = NULL;
1769 gint _tmp51__length1 = 0;
1770 gchar* _tmp52_ = NULL;
1771 GnomeKeyringAttributeList* attributes = NULL;
1772 GnomeKeyringAttributeList* _tmp53_ = NULL;
1773 guint32 item_id = 0U;
1774 GnomeKeyringAttributeList* _tmp54_ = NULL;
1775 GnomeKeyringAttributeList* _tmp55_ = NULL;
1776 IdCard* _tmp56_ = NULL;
1777 const gchar* _tmp57_ = NULL;
1778 const gchar* _tmp58_ = NULL;
1779 GnomeKeyringAttributeList* _tmp59_ = NULL;
1780 IdCard* _tmp60_ = NULL;
1781 const gchar* _tmp61_ = NULL;
1782 const gchar* _tmp62_ = NULL;
1783 GnomeKeyringAttributeList* _tmp63_ = NULL;
1784 IdCard* _tmp64_ = NULL;
1785 const gchar* _tmp65_ = NULL;
1786 const gchar* _tmp66_ = NULL;
1787 GnomeKeyringAttributeList* _tmp67_ = NULL;
1788 const gchar* _tmp68_ = NULL;
1789 GnomeKeyringAttributeList* _tmp69_ = NULL;
1790 const gchar* _tmp70_ = NULL;
1791 GnomeKeyringAttributeList* _tmp71_ = NULL;
1792 const gchar* _tmp72_ = NULL;
1793 GnomeKeyringAttributeList* _tmp73_ = NULL;
1794 IdCard* _tmp74_ = NULL;
1795 TrustAnchor* _tmp75_ = NULL;
1796 TrustAnchor* _tmp76_ = NULL;
1797 const gchar* _tmp77_ = NULL;
1798 const gchar* _tmp78_ = NULL;
1799 GnomeKeyringAttributeList* _tmp79_ = NULL;
1800 IdCard* _tmp80_ = NULL;
1801 TrustAnchor* _tmp81_ = NULL;
1802 TrustAnchor* _tmp82_ = NULL;
1803 const gchar* _tmp83_ = NULL;
1804 const gchar* _tmp84_ = NULL;
1805 GnomeKeyringAttributeList* _tmp85_ = NULL;
1806 IdCard* _tmp86_ = NULL;
1807 TrustAnchor* _tmp87_ = NULL;
1808 TrustAnchor* _tmp88_ = NULL;
1809 const gchar* _tmp89_ = NULL;
1810 const gchar* _tmp90_ = NULL;
1811 GnomeKeyringAttributeList* _tmp91_ = NULL;
1812 IdCard* _tmp92_ = NULL;
1813 TrustAnchor* _tmp93_ = NULL;
1814 TrustAnchor* _tmp94_ = NULL;
1815 const gchar* _tmp95_ = NULL;
1816 const gchar* _tmp96_ = NULL;
1817 const gchar* _tmp97_ = NULL;
1818 IdCard* _tmp98_ = NULL;
1819 gboolean _tmp99_ = FALSE;
1820 gboolean _tmp100_ = FALSE;
1821 GnomeKeyringAttributeList* _tmp101_ = NULL;
1822 const gchar* _tmp102_ = NULL;
1823 IdCard* _tmp103_ = NULL;
1824 gboolean _tmp104_ = FALSE;
1825 gboolean _tmp105_ = FALSE;
1826 GnomeKeyringResult _result_ = 0;
1827 IdCard* _tmp109_ = NULL;
1828 const gchar* _tmp110_ = NULL;
1829 const gchar* _tmp111_ = NULL;
1830 GnomeKeyringAttributeList* _tmp112_ = NULL;
1831 guint32 _tmp113_ = 0U;
1832 GnomeKeyringResult _tmp114_ = 0;
1833 GnomeKeyringResult _tmp115_ = 0;
1834 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1835 _tmp5_ = _id_card_index;
1836 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1837 _id_card_index = _tmp5_ + 1;
1838 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1839 _tmp6_ = _id_card_index;
1840 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1841 _tmp7_ = _id_card_size;
1842 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1843 if (!(_tmp6_ < _tmp7_)) {
1844 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1846 #line 1847 "moonshot-keyring-store.c"
1848 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1849 _tmp8_ = _id_card_list;
1850 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1851 _tmp9_ = _id_card_index;
1852 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1853 _tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
1854 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1855 id_card = (IdCard*) _tmp10_;
1856 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1858 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1859 _tmp12_ = id_card_get_rules (_tmp11_, &_tmp12__length1);
1860 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1862 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1863 _tmp13__length1 = _tmp12__length1;
1864 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1865 _tmp14_ = g_new0 (gchar*, _tmp13__length1 + 1);
1866 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1867 rules_patterns = _tmp14_;
1868 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1869 rules_patterns_length1 = _tmp13__length1;
1870 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1871 _rules_patterns_size_ = rules_patterns_length1;
1872 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1874 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1875 _tmp16_ = id_card_get_rules (_tmp15_, &_tmp16__length1);
1876 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1878 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1879 _tmp17__length1 = _tmp16__length1;
1880 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1881 _tmp18_ = g_new0 (gchar*, _tmp17__length1 + 1);
1882 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1883 rules_always_conf = _tmp18_;
1884 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1885 rules_always_conf_length1 = _tmp17__length1;
1886 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1887 _rules_always_conf_size_ = rules_always_conf_length1;
1888 #line 1889 "moonshot-keyring-store.c"
1891 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1893 #line 1894 "moonshot-keyring-store.c"
1895 gboolean _tmp19_ = FALSE;
1896 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1898 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1900 #line 1901 "moonshot-keyring-store.c"
1902 IdCard* _tmp22_ = NULL;
1903 Rule* _tmp23_ = NULL;
1904 gint _tmp23__length1 = 0;
1905 Rule* _tmp24_ = NULL;
1906 gint _tmp24__length1 = 0;
1907 gchar** _tmp25_ = NULL;
1908 gint _tmp25__length1 = 0;
1910 IdCard* _tmp27_ = NULL;
1911 Rule* _tmp28_ = NULL;
1912 gint _tmp28__length1 = 0;
1913 Rule* _tmp29_ = NULL;
1914 gint _tmp29__length1 = 0;
1917 const gchar* _tmp32_ = NULL;
1918 gchar* _tmp33_ = NULL;
1919 gchar* _tmp34_ = NULL;
1920 gchar** _tmp35_ = NULL;
1921 gint _tmp35__length1 = 0;
1923 IdCard* _tmp37_ = NULL;
1924 Rule* _tmp38_ = NULL;
1925 gint _tmp38__length1 = 0;
1926 Rule* _tmp39_ = NULL;
1927 gint _tmp39__length1 = 0;
1930 const gchar* _tmp42_ = NULL;
1931 gchar* _tmp43_ = NULL;
1932 gchar* _tmp44_ = NULL;
1933 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1935 #line 1936 "moonshot-keyring-store.c"
1937 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1939 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1941 #line 1942 "moonshot-keyring-store.c"
1943 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1945 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1947 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1949 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1950 _tmp23_ = id_card_get_rules (_tmp22_, &_tmp23__length1);
1951 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1953 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1954 _tmp24__length1 = _tmp23__length1;
1955 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1956 if (!(_tmp21_ < _tmp24__length1)) {
1957 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1959 #line 1960 "moonshot-keyring-store.c"
1961 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1962 _tmp25_ = rules_patterns;
1963 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1964 _tmp25__length1 = rules_patterns_length1;
1965 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1967 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1969 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1970 _tmp28_ = id_card_get_rules (_tmp27_, &_tmp28__length1);
1971 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1973 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1974 _tmp29__length1 = _tmp28__length1;
1975 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1977 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1978 _tmp31_ = _tmp29_[_tmp30_];
1979 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1980 _tmp32_ = _tmp31_.pattern;
1981 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1982 _tmp33_ = g_strdup (_tmp32_);
1983 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1984 _g_free0 (_tmp25_[_tmp26_]);
1985 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1986 _tmp25_[_tmp26_] = _tmp33_;
1987 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1988 _tmp34_ = _tmp25_[_tmp26_];
1989 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1990 _tmp35_ = rules_always_conf;
1991 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1992 _tmp35__length1 = rules_always_conf_length1;
1993 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1995 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1997 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1998 _tmp38_ = id_card_get_rules (_tmp37_, &_tmp38__length1);
1999 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2001 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2002 _tmp39__length1 = _tmp38__length1;
2003 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2005 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2006 _tmp41_ = _tmp39_[_tmp40_];
2007 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2008 _tmp42_ = _tmp41_.always_confirm;
2009 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2010 _tmp43_ = g_strdup (_tmp42_);
2011 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2012 _g_free0 (_tmp35_[_tmp36_]);
2013 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2014 _tmp35_[_tmp36_] = _tmp43_;
2015 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2016 _tmp44_ = _tmp35_[_tmp36_];
2017 #line 2018 "moonshot-keyring-store.c"
2021 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2022 _tmp45_ = rules_patterns;
2023 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2024 _tmp45__length1 = rules_patterns_length1;
2025 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2026 _tmp46_ = _vala_g_strjoinv (";", _tmp45_, _tmp45__length1);
2027 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2029 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2030 _tmp47_ = rules_always_conf;
2031 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2032 _tmp47__length1 = rules_always_conf_length1;
2033 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2034 _tmp48_ = _vala_g_strjoinv (";", _tmp47_, _tmp47__length1);
2035 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2036 always_conf = _tmp48_;
2037 #line 165 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2039 #line 165 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2040 _tmp50_ = id_card_get_services (_tmp49_, &_tmp50__length1);
2041 #line 165 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2043 #line 165 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2044 _tmp51__length1 = _tmp50__length1;
2045 #line 165 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2046 _tmp52_ = _vala_g_strjoinv (";", _tmp51_, _tmp51__length1);
2047 #line 165 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2049 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2050 _tmp53_ = gnome_keyring_attribute_list_new ();
2051 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2052 attributes = _tmp53_;
2053 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2054 _tmp54_ = attributes;
2055 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2056 gnome_keyring_attribute_list_append_string (_tmp54_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
2057 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2058 _tmp55_ = attributes;
2059 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2061 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2062 _tmp57_ = id_card_get_issuer (_tmp56_);
2063 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2065 #line 169 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2066 gnome_keyring_attribute_list_append_string (_tmp55_, "Issuer", _tmp58_);
2067 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2068 _tmp59_ = attributes;
2069 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2071 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2072 _tmp61_ = id_card_get_username (_tmp60_);
2073 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2075 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2076 gnome_keyring_attribute_list_append_string (_tmp59_, "Username", _tmp62_);
2077 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2078 _tmp63_ = attributes;
2079 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2081 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2082 _tmp65_ = id_card_get_display_name (_tmp64_);
2083 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2085 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2086 gnome_keyring_attribute_list_append_string (_tmp63_, "DisplayName", _tmp66_);
2087 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2088 _tmp67_ = attributes;
2089 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2091 #line 172 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2092 gnome_keyring_attribute_list_append_string (_tmp67_, "Services", _tmp68_);
2093 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2094 _tmp69_ = attributes;
2095 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2097 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2098 gnome_keyring_attribute_list_append_string (_tmp69_, "Rules-Pattern", _tmp70_);
2099 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2100 _tmp71_ = attributes;
2101 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2102 _tmp72_ = always_conf;
2103 #line 174 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2104 gnome_keyring_attribute_list_append_string (_tmp71_, "Rules-AlwaysConfirm", _tmp72_);
2105 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2106 _tmp73_ = attributes;
2107 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2109 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2110 _tmp75_ = id_card_get_trust_anchor (_tmp74_);
2111 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2113 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2114 _tmp77_ = trust_anchor_get_ca_cert (_tmp76_);
2115 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2117 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2118 gnome_keyring_attribute_list_append_string (_tmp73_, "CA-Cert", _tmp78_);
2119 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2120 _tmp79_ = attributes;
2121 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2123 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2124 _tmp81_ = id_card_get_trust_anchor (_tmp80_);
2125 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2127 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2128 _tmp83_ = trust_anchor_get_server_cert (_tmp82_);
2129 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2131 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2132 gnome_keyring_attribute_list_append_string (_tmp79_, "Server-Cert", _tmp84_);
2133 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2134 _tmp85_ = attributes;
2135 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2137 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2138 _tmp87_ = id_card_get_trust_anchor (_tmp86_);
2139 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2141 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2142 _tmp89_ = trust_anchor_get_subject (_tmp88_);
2143 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2145 #line 177 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2146 gnome_keyring_attribute_list_append_string (_tmp85_, "Subject", _tmp90_);
2147 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2148 _tmp91_ = attributes;
2149 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2151 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2152 _tmp93_ = id_card_get_trust_anchor (_tmp92_);
2153 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2155 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2156 _tmp95_ = trust_anchor_get_subject_alt (_tmp94_);
2157 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2159 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2160 gnome_keyring_attribute_list_append_string (_tmp91_, "Subject-Alt", _tmp96_);
2161 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2163 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2164 _tmp99_ = id_card_get_store_password (_tmp98_);
2165 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2167 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2169 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2171 #line 2172 "moonshot-keyring-store.c"
2173 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2175 #line 2176 "moonshot-keyring-store.c"
2177 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2178 _tmp101_ = attributes;
2179 #line 179 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2180 gnome_keyring_attribute_list_append_string (_tmp101_, "StorePassword", _tmp97_);
2181 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2183 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2184 _tmp104_ = id_card_get_store_password (_tmp103_);
2185 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2186 _tmp105_ = _tmp104_;
2187 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2189 #line 2190 "moonshot-keyring-store.c"
2190 IdCard* _tmp106_ = NULL;
2191 const gchar* _tmp107_ = NULL;
2192 const gchar* _tmp108_ = NULL;
2193 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2195 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2196 _tmp107_ = id_card_get_password (_tmp106_);
2197 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2198 _tmp108_ = _tmp107_;
2199 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2200 _tmp102_ = _tmp108_;
2201 #line 2202 "moonshot-keyring-store.c"
2203 #line 183 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2205 #line 2206 "moonshot-keyring-store.c"
2207 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2209 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2210 _tmp110_ = id_card_get_display_name (_tmp109_);
2211 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2212 _tmp111_ = _tmp110_;
2213 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2214 _tmp112_ = attributes;
2215 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2216 _tmp114_ = gnome_keyring_item_create_sync (NULL, KEYRING_STORE_item_type, _tmp111_, _tmp112_, _tmp102_, TRUE, &_tmp113_);
2217 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2219 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2220 _result_ = _tmp114_;
2221 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2222 _tmp115_ = _result_;
2223 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2224 if (_tmp115_ != GNOME_KEYRING_RESULT_OK) {
2225 #line 2226 "moonshot-keyring-store.c"
2226 FILE* _tmp116_ = NULL;
2227 GnomeKeyringResult _tmp117_ = 0;
2228 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2230 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2231 _tmp117_ = _result_;
2232 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2233 fprintf (_tmp116_, "GnomeKeyring.item_create_sync() failed. result: %d", (gint) _tmp117_);
2234 #line 2235 "moonshot-keyring-store.c"
2236 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2237 _gnome_keyring_attribute_list_free0 (attributes);
2238 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2239 _g_free0 (services);
2240 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2241 _g_free0 (always_conf);
2242 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2243 _g_free0 (patterns);
2244 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2245 rules_always_conf = (_vala_array_free (rules_always_conf, rules_always_conf_length1, (GDestroyNotify) g_free), NULL);
2246 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2247 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
2248 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2249 _g_object_unref0 (id_card);
2250 #line 2251 "moonshot-keyring-store.c"
2252 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2253 _g_object_unref0 (_id_card_list);
2254 #line 2255 "moonshot-keyring-store.c"
2256 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2257 keyring_store_load_id_cards (self);
2258 #line 2259 "moonshot-keyring-store.c"
2262 KeyringStore* keyring_store_construct (GType object_type) {
2263 KeyringStore * self = NULL;
2264 GeeLinkedList* _tmp0_ = NULL;
2265 #line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2266 self = (KeyringStore*) g_object_new (object_type, NULL);
2267 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2268 _tmp0_ = gee_linked_list_new (TYPE_ID_CARD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
2269 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2270 _g_object_unref0 (self->priv->id_card_list);
2271 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2272 self->priv->id_card_list = _tmp0_;
2273 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2274 keyring_store_load_id_cards (self);
2275 #line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2277 #line 2278 "moonshot-keyring-store.c"
2281 KeyringStore* keyring_store_new (void) {
2282 #line 192 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2283 return keyring_store_construct (TYPE_KEYRING_STORE);
2284 #line 2285 "moonshot-keyring-store.c"
2288 static void keyring_store_class_init (KeyringStoreClass * klass) {
2289 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2290 keyring_store_parent_class = g_type_class_peek_parent (klass);
2291 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2292 g_type_class_add_private (klass, sizeof (KeyringStorePrivate));
2293 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2294 G_OBJECT_CLASS (klass)->finalize = keyring_store_finalize;
2295 #line 2296 "moonshot-keyring-store.c"
2299 static void keyring_store_iidentity_card_store_interface_init (IIdentityCardStoreIface * iface) {
2300 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2301 keyring_store_iidentity_card_store_parent_iface = g_type_interface_peek_parent (iface);
2302 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2303 iface->add_card = (void (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_add_card;
2304 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2305 iface->update_card = (IdCard* (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_update_card;
2306 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2307 iface->remove_card = (gboolean (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_remove_card;
2308 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2309 iface->get_store_type = (IIdentityCardStoreStoreType (*)(IIdentityCardStore*)) keyring_store_real_get_store_type;
2310 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2311 iface->get_card_list = (GeeLinkedList* (*)(IIdentityCardStore*)) keyring_store_real_get_card_list;
2312 #line 2313 "moonshot-keyring-store.c"
2316 static void keyring_store_instance_init (KeyringStore * self) {
2317 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2318 self->priv = KEYRING_STORE_GET_PRIVATE (self);
2319 #line 2320 "moonshot-keyring-store.c"
2323 static void keyring_store_finalize (GObject* obj) {
2324 KeyringStore * self;
2325 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2326 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEYRING_STORE, KeyringStore);
2327 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2328 _g_object_unref0 (self->priv->id_card_list);
2329 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2330 G_OBJECT_CLASS (keyring_store_parent_class)->finalize (obj);
2331 #line 2332 "moonshot-keyring-store.c"
2335 GType keyring_store_get_type (void) {
2336 static volatile gsize keyring_store_type_id__volatile = 0;
2337 if (g_once_init_enter (&keyring_store_type_id__volatile)) {
2338 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 };
2339 static const GInterfaceInfo iidentity_card_store_info = { (GInterfaceInitFunc) keyring_store_iidentity_card_store_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
2340 GType keyring_store_type_id;
2341 keyring_store_type_id = g_type_register_static (G_TYPE_OBJECT, "KeyringStore", &g_define_type_info, 0);
2342 g_type_add_interface_static (keyring_store_type_id, TYPE_IIDENTITY_CARD_STORE, &iidentity_card_store_info);
2343 g_once_init_leave (&keyring_store_type_id__volatile, keyring_store_type_id);
2345 return keyring_store_type_id__volatile;
2349 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2350 if ((array != NULL) && (destroy_func != NULL)) {
2352 for (i = 0; i < array_length; i = i + 1) {
2353 if (((gpointer*) array)[i] != NULL) {
2354 destroy_func (((gpointer*) array)[i]);
2361 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2362 _vala_array_destroy (array, array_length, destroy_func);
2367 static gint _vala_array_length (gpointer array) {
2371 while (((gpointer*) array)[length]) {