1 /* moonshot-keyring-store.c generated by valac 0.34.9, the Vala compiler
2 * generated from moonshot-keyring-store.vala, do not modify */
5 * Copyright (c) 2011-2016, JANET(UK)
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of JANET(UK) nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 #include <glib-object.h>
41 #include <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;
76 #define TYPE_MOONSHOT_LOGGER (moonshot_logger_get_type ())
77 #define MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLogger))
78 #define MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
79 #define IS_MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOONSHOT_LOGGER))
80 #define IS_MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOONSHOT_LOGGER))
81 #define MOONSHOT_LOGGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
83 typedef struct _MoonshotLogger MoonshotLogger;
84 typedef struct _MoonshotLoggerClass MoonshotLoggerClass;
85 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
86 #define _g_free0(var) (var = (g_free (var), NULL))
87 #define __g_list_free__gnome_keyring_found_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gnome_keyring_found_free0_ (var), NULL)))
88 #define _gnome_keyring_attribute_list_free0(var) ((var == NULL) ? NULL : (var = (gnome_keyring_attribute_list_free (var), NULL)))
90 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
91 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
92 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
93 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
94 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
95 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
97 typedef struct _TrustAnchor TrustAnchor;
98 typedef struct _TrustAnchorClass TrustAnchorClass;
100 #define TYPE_RULE (rule_get_type ())
101 typedef struct _Rule Rule;
104 IIDENTITY_CARD_STORE_STORE_TYPE_FLAT_FILE,
105 IIDENTITY_CARD_STORE_STORE_TYPE_KEYRING
106 } IIdentityCardStoreStoreType;
108 struct _IIdentityCardStoreIface {
109 GTypeInterface parent_iface;
110 void (*add_card) (IIdentityCardStore* self, IdCard* card);
111 gboolean (*remove_card) (IIdentityCardStore* self, IdCard* card);
112 IdCard* (*update_card) (IIdentityCardStore* self, IdCard* card);
113 IIdentityCardStoreStoreType (*get_store_type) (IIdentityCardStore* self);
114 GeeLinkedList* (*get_card_list) (IIdentityCardStore* self);
115 void (*store_id_cards) (IIdentityCardStore* self);
118 struct _KeyringStore {
119 GObject parent_instance;
120 KeyringStorePrivate * priv;
123 struct _KeyringStoreClass {
124 GObjectClass parent_class;
127 struct _KeyringStorePrivate {
128 GeeLinkedList* id_card_list;
133 gchar* always_confirm;
137 static gpointer keyring_store_parent_class = NULL;
138 static MoonshotLogger* keyring_store_logger;
139 static MoonshotLogger* keyring_store_logger = NULL;
140 static IIdentityCardStoreIface* keyring_store_iidentity_card_store_parent_iface = NULL;
142 GType id_card_get_type (void) G_GNUC_CONST;
143 GType iidentity_card_store_store_type_get_type (void) G_GNUC_CONST;
144 GType iidentity_card_store_get_type (void) G_GNUC_CONST;
145 GType keyring_store_get_type (void) G_GNUC_CONST;
146 #define KEYRING_STORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_KEYRING_STORE, KeyringStorePrivate))
148 KEYRING_STORE_DUMMY_PROPERTY
150 GType moonshot_logger_get_type (void) G_GNUC_CONST;
151 MoonshotLogger* get_logger (const gchar* name);
152 #define KEYRING_STORE_keyring_store_attribute "Moonshot"
153 #define KEYRING_STORE_keyring_store_version "1.0"
154 #define KEYRING_STORE_item_type GNOME_KEYRING_ITEM_GENERIC_SECRET
155 static void keyring_store_real_add_card (IIdentityCardStore* base, IdCard* card);
156 void moonshot_logger_trace (MoonshotLogger* self, const gchar* message, GError* e);
157 const gchar* id_card_get_display_name (IdCard* self);
158 gchar* id_card_get_services_string (IdCard* self, const gchar* sep);
159 void iidentity_card_store_store_id_cards (IIdentityCardStore* self);
160 static IdCard* keyring_store_real_update_card (IIdentityCardStore* base, IdCard* card);
161 void moonshot_logger_error (MoonshotLogger* self, const gchar* message, GError* e);
162 static gboolean keyring_store_real_remove_card (IIdentityCardStore* base, IdCard* card);
163 static IIdentityCardStoreStoreType keyring_store_real_get_store_type (IIdentityCardStore* base);
164 static GeeLinkedList* keyring_store_real_get_card_list (IIdentityCardStore* base);
165 static void keyring_store_clear_keyring (KeyringStore* self);
166 static void _gnome_keyring_found_free0_ (gpointer var);
167 static void _g_list_free__gnome_keyring_found_free0_ (GList* self);
168 static void keyring_store_load_id_cards (KeyringStore* self);
169 IdCard* id_card_new (void);
170 IdCard* id_card_construct (GType object_type);
171 void id_card_set_issuer (IdCard* self, const gchar* value);
172 void id_card_set_username (IdCard* self, const gchar* value);
173 void id_card_set_display_name (IdCard* self, const gchar* value);
174 void id_card_update_services (IdCard* self, gchar** services, int services_length1);
175 GType trust_anchor_get_type (void) G_GNUC_CONST;
176 TrustAnchor* trust_anchor_new (const gchar* ca_cert, const gchar* server_cert, const gchar* subject, const gchar* subject_alt);
177 TrustAnchor* trust_anchor_construct (GType object_type, const gchar* ca_cert, const gchar* server_cert, const gchar* subject, const gchar* subject_alt);
178 void trust_anchor_set_datetime_added (TrustAnchor* self, const gchar* datetime);
179 void id_card_set_trust_anchor_from_store (IdCard* self, TrustAnchor* ta);
180 GType rule_get_type (void) G_GNUC_CONST;
181 Rule* rule_dup (const Rule* self);
182 void rule_free (Rule* self);
183 void rule_copy (const Rule* self, Rule* dest);
184 void rule_destroy (Rule* self);
185 void id_card_set_rules (IdCard* self, Rule* value, int value_length1);
186 static void _vala_Rule_array_free (Rule* array, gint array_length);
187 void id_card_set_store_password (IdCard* self, gboolean value);
188 gboolean id_card_get_store_password (IdCard* self);
189 void id_card_set_password (IdCard* self, const gchar* value);
190 static void keyring_store_real_store_id_cards (IIdentityCardStore* base);
191 Rule* id_card_get_rules (IdCard* self, int* result_length1);
192 static Rule* _vala_array_dup2 (Rule* self, int length);
193 const gchar* id_card_get_issuer (IdCard* self);
194 const gchar* id_card_get_username (IdCard* self);
195 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
196 const gchar* trust_anchor_get_ca_cert (TrustAnchor* self);
197 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
198 const gchar* trust_anchor_get_subject (TrustAnchor* self);
199 const gchar* trust_anchor_get_subject_alt (TrustAnchor* self);
200 const gchar* trust_anchor_get_datetime_added (TrustAnchor* self);
201 const gchar* id_card_get_password (IdCard* self);
202 KeyringStore* keyring_store_new (void);
203 KeyringStore* keyring_store_construct (GType object_type);
204 static void keyring_store_finalize (GObject* obj);
205 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
206 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
207 static gint _vala_array_length (gpointer array);
210 static void keyring_store_real_add_card (IIdentityCardStore* base, IdCard* card) {
212 MoonshotLogger* _tmp0_ = NULL;
213 IdCard* _tmp1_ = NULL;
214 const gchar* _tmp2_ = NULL;
215 const gchar* _tmp3_ = NULL;
216 IdCard* _tmp4_ = NULL;
217 gchar* _tmp5_ = NULL;
218 gchar* _tmp6_ = NULL;
219 gchar* _tmp7_ = NULL;
220 gchar* _tmp8_ = NULL;
221 GeeLinkedList* _tmp9_ = NULL;
222 IdCard* _tmp10_ = NULL;
223 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
224 self = (KeyringStore*) base;
225 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
226 g_return_if_fail (card != NULL);
227 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
228 _tmp0_ = keyring_store_logger;
229 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
231 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
232 _tmp2_ = id_card_get_display_name (_tmp1_);
233 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
235 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
237 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
238 _tmp5_ = id_card_get_services_string (_tmp4_, "; ");
239 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
241 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
242 _tmp7_ = g_strdup_printf ("add_card: Adding card '%s' with services: '%s'", _tmp3_, _tmp6_);
243 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
245 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
246 moonshot_logger_trace (_tmp0_, _tmp8_, NULL);
247 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
249 #line 44 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
251 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
252 _tmp9_ = self->priv->id_card_list;
253 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
255 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
256 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp9_, _tmp10_);
257 #line 48 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
258 iidentity_card_store_store_id_cards ((IIdentityCardStore*) self);
259 #line 260 "moonshot-keyring-store.c"
263 static gpointer _g_object_ref0 (gpointer self) {
264 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
265 return self ? g_object_ref (self) : NULL;
266 #line 267 "moonshot-keyring-store.c"
270 static const gchar* string_to_string (const gchar* self) {
271 const gchar* result = NULL;
272 #line 1420 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
273 g_return_val_if_fail (self != NULL, NULL);
274 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
276 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
278 #line 279 "moonshot-keyring-store.c"
282 static IdCard* keyring_store_real_update_card (IIdentityCardStore* base, IdCard* card) {
284 IdCard* result = NULL;
285 MoonshotLogger* _tmp0_ = NULL;
286 GeeLinkedList* _tmp1_ = NULL;
287 IdCard* _tmp2_ = NULL;
288 GeeLinkedList* _tmp3_ = NULL;
289 IdCard* _tmp4_ = NULL;
290 MoonshotLogger* _tmp22_ = NULL;
291 IdCard* _tmp23_ = NULL;
292 const gchar* _tmp24_ = NULL;
293 const gchar* _tmp25_ = NULL;
294 const gchar* _tmp26_ = NULL;
295 gchar* _tmp27_ = NULL;
296 gchar* _tmp28_ = NULL;
297 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
298 self = (KeyringStore*) base;
299 #line 51 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
300 g_return_val_if_fail (card != NULL, NULL);
301 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
302 _tmp0_ = keyring_store_logger;
303 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
304 moonshot_logger_trace (_tmp0_, "update_card", NULL);
305 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
306 _tmp1_ = self->priv->id_card_list;
307 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
309 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
310 gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp1_, _tmp2_);
311 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
312 _tmp3_ = self->priv->id_card_list;
313 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
315 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
316 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp3_, _tmp4_);
317 #line 57 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
318 iidentity_card_store_store_id_cards ((IIdentityCardStore*) self);
319 #line 320 "moonshot-keyring-store.c"
321 GeeLinkedList* _idcard_list = NULL;
322 GeeLinkedList* _tmp5_ = NULL;
323 GeeLinkedList* _tmp6_ = NULL;
324 gint _idcard_size = 0;
325 GeeLinkedList* _tmp7_ = NULL;
328 gint _idcard_index = 0;
329 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
330 _tmp5_ = self->priv->id_card_list;
331 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
332 _tmp6_ = _g_object_ref0 (_tmp5_);
333 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
334 _idcard_list = _tmp6_;
335 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
336 _tmp7_ = _idcard_list;
337 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
338 _tmp8_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp7_);
339 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
341 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
342 _idcard_size = _tmp9_;
343 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
345 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
347 #line 348 "moonshot-keyring-store.c"
351 IdCard* idcard = NULL;
352 GeeLinkedList* _tmp13_ = NULL;
354 gpointer _tmp15_ = NULL;
355 IdCard* _tmp16_ = NULL;
356 const gchar* _tmp17_ = NULL;
357 const gchar* _tmp18_ = NULL;
358 IdCard* _tmp19_ = NULL;
359 const gchar* _tmp20_ = NULL;
360 const gchar* _tmp21_ = NULL;
361 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
362 _tmp10_ = _idcard_index;
363 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
364 _idcard_index = _tmp10_ + 1;
365 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
366 _tmp11_ = _idcard_index;
367 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
368 _tmp12_ = _idcard_size;
369 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
370 if (!(_tmp11_ < _tmp12_)) {
371 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
373 #line 374 "moonshot-keyring-store.c"
375 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
376 _tmp13_ = _idcard_list;
377 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
378 _tmp14_ = _idcard_index;
379 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
380 _tmp15_ = gee_abstract_list_get ((GeeAbstractList*) _tmp13_, _tmp14_);
381 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
382 idcard = (IdCard*) _tmp15_;
383 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
385 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
386 _tmp17_ = id_card_get_display_name (_tmp16_);
387 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
389 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
391 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
392 _tmp20_ = id_card_get_display_name (_tmp19_);
393 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
395 #line 59 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
396 if (g_strcmp0 (_tmp18_, _tmp21_) == 0) {
397 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
399 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
400 _g_object_unref0 (_idcard_list);
401 #line 60 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
403 #line 404 "moonshot-keyring-store.c"
405 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
406 _g_object_unref0 (idcard);
407 #line 408 "moonshot-keyring-store.c"
409 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
410 _g_object_unref0 (_idcard_list);
411 #line 412 "moonshot-keyring-store.c"
413 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
414 _tmp22_ = keyring_store_logger;
415 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
417 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
418 _tmp24_ = id_card_get_display_name (_tmp23_);
419 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
421 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
422 _tmp26_ = string_to_string (_tmp25_);
423 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
424 _tmp27_ = g_strconcat ("update_card: card '", _tmp26_, "' was not found after re-loading!", NULL);
425 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
427 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
428 moonshot_logger_error (_tmp22_, _tmp28_, NULL);
429 #line 64 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
431 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
433 #line 65 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
435 #line 436 "moonshot-keyring-store.c"
439 static gboolean keyring_store_real_remove_card (IIdentityCardStore* base, IdCard* card) {
441 gboolean result = FALSE;
442 gboolean retval = FALSE;
443 GeeLinkedList* _tmp0_ = NULL;
444 IdCard* _tmp1_ = NULL;
445 gboolean _tmp2_ = FALSE;
446 gboolean _tmp3_ = FALSE;
447 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
448 self = (KeyringStore*) base;
449 #line 68 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
450 g_return_val_if_fail (card != NULL, FALSE);
451 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
452 _tmp0_ = self->priv->id_card_list;
453 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
455 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
456 _tmp2_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
457 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
459 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
461 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
463 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
464 iidentity_card_store_store_id_cards ((IIdentityCardStore*) self);
465 #line 466 "moonshot-keyring-store.c"
467 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
469 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
471 #line 472 "moonshot-keyring-store.c"
475 static IIdentityCardStoreStoreType keyring_store_real_get_store_type (IIdentityCardStore* base) {
477 IIdentityCardStoreStoreType result = 0;
478 #line 75 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
479 self = (KeyringStore*) base;
480 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
481 result = IIDENTITY_CARD_STORE_STORE_TYPE_KEYRING;
482 #line 76 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
484 #line 485 "moonshot-keyring-store.c"
488 static GeeLinkedList* keyring_store_real_get_card_list (IIdentityCardStore* base) {
490 GeeLinkedList* result = NULL;
491 GeeLinkedList* _tmp0_ = NULL;
492 GeeLinkedList* _tmp1_ = NULL;
493 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
494 self = (KeyringStore*) base;
495 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
496 _tmp0_ = self->priv->id_card_list;
497 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
498 _tmp1_ = _g_object_ref0 (_tmp0_);
499 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
501 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
503 #line 504 "moonshot-keyring-store.c"
507 static void _gnome_keyring_found_free0_ (gpointer var) {
508 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
509 (var == NULL) ? NULL : (var = (gnome_keyring_found_free (var), NULL));
510 #line 511 "moonshot-keyring-store.c"
514 static void _g_list_free__gnome_keyring_found_free0_ (GList* self) {
515 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
516 g_list_foreach (self, (GFunc) _gnome_keyring_found_free0_, NULL);
517 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
519 #line 520 "moonshot-keyring-store.c"
523 static void keyring_store_clear_keyring (KeyringStore* self) {
524 GnomeKeyringAttributeList* match = NULL;
525 GnomeKeyringAttributeList* _tmp0_ = NULL;
526 GnomeKeyringAttributeList* _tmp1_ = NULL;
528 GnomeKeyringAttributeList* _tmp2_ = NULL;
529 GList* _tmp3_ = NULL;
530 GList* _tmp4_ = NULL;
531 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
532 g_return_if_fail (self != NULL);
533 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
534 _tmp0_ = gnome_keyring_attribute_list_new ();
535 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
537 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
539 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
540 gnome_keyring_attribute_list_append_string (_tmp1_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
541 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
543 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
544 gnome_keyring_find_items_sync (KEYRING_STORE_item_type, _tmp2_, &_tmp3_);
545 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
546 __g_list_free__gnome_keyring_found_free0_0 (items);
547 #line 88 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
549 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
551 #line 552 "moonshot-keyring-store.c"
553 GList* entry_collection = NULL;
554 GList* entry_it = NULL;
555 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
556 entry_collection = _tmp4_;
557 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
558 for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
559 #line 560 "moonshot-keyring-store.c"
560 GnomeKeyringFound* entry = NULL;
561 #line 89 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
562 entry = (GnomeKeyringFound*) entry_it->data;
563 #line 564 "moonshot-keyring-store.c"
565 GnomeKeyringResult _result_ = 0;
566 GnomeKeyringFound* _tmp5_ = NULL;
568 GnomeKeyringResult _tmp7_ = 0;
569 GnomeKeyringResult _tmp8_ = 0;
570 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
572 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
573 _tmp6_ = _tmp5_->item_id;
574 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
575 _tmp7_ = gnome_keyring_item_delete_sync (NULL, (guint32) _tmp6_);
576 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
578 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
580 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
581 if (_tmp8_ != GNOME_KEYRING_RESULT_OK) {
582 #line 583 "moonshot-keyring-store.c"
584 GnomeKeyringResult _tmp10_ = 0;
585 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
587 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
589 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
590 fprintf (_tmp9_, "GnomeKeyring.item_delete_sync() failed. result: %d", (gint) _tmp10_);
591 #line 592 "moonshot-keyring-store.c"
596 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
597 __g_list_free__gnome_keyring_found_free0_0 (items);
598 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
599 _gnome_keyring_attribute_list_free0 (match);
600 #line 601 "moonshot-keyring-store.c"
604 static gchar* string_strip (const gchar* self) {
605 gchar* result = NULL;
606 gchar* _result_ = NULL;
607 gchar* _tmp0_ = NULL;
608 const gchar* _tmp1_ = NULL;
609 #line 1215 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
610 g_return_val_if_fail (self != NULL, NULL);
611 #line 1216 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
612 _tmp0_ = g_strdup (self);
613 #line 1216 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
615 #line 1217 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
617 #line 1217 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
619 #line 1218 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
621 #line 1218 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
623 #line 624 "moonshot-keyring-store.c"
627 static void _vala_Rule_array_free (Rule* array, gint array_length) {
628 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
630 #line 631 "moonshot-keyring-store.c"
632 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
633 for (i = 0; i < array_length; i = i + 1) {
634 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
635 rule_destroy (&array[i]);
636 #line 637 "moonshot-keyring-store.c"
639 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
641 #line 642 "moonshot-keyring-store.c"
645 static void keyring_store_load_id_cards (KeyringStore* self) {
646 GeeLinkedList* _tmp0_ = NULL;
647 GnomeKeyringAttributeList* match = NULL;
648 GnomeKeyringAttributeList* _tmp1_ = NULL;
649 GnomeKeyringAttributeList* _tmp2_ = NULL;
651 GnomeKeyringAttributeList* _tmp3_ = NULL;
652 GList* _tmp4_ = NULL;
653 GList* _tmp5_ = NULL;
654 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
655 g_return_if_fail (self != NULL);
656 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
657 _tmp0_ = self->priv->id_card_list;
658 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
659 gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp0_);
660 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
661 _tmp1_ = gnome_keyring_attribute_list_new ();
662 #line 100 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
664 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
666 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
667 gnome_keyring_attribute_list_append_string (_tmp2_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
668 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
670 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
671 gnome_keyring_find_items_sync (KEYRING_STORE_item_type, _tmp3_, &_tmp4_);
672 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
673 __g_list_free__gnome_keyring_found_free0_0 (items);
674 #line 103 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
676 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
678 #line 679 "moonshot-keyring-store.c"
680 GList* entry_collection = NULL;
681 GList* entry_it = NULL;
682 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
683 entry_collection = _tmp5_;
684 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
685 for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
686 #line 687 "moonshot-keyring-store.c"
687 GnomeKeyringFound* entry = NULL;
688 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
689 entry = (GnomeKeyringFound*) entry_it->data;
690 #line 691 "moonshot-keyring-store.c"
692 IdCard* id_card = NULL;
693 IdCard* _tmp6_ = NULL;
695 gint rules_patterns_index = 0;
696 gint rules_always_confirm_index = 0;
697 gchar* store_password = NULL;
698 gchar* ca_cert = NULL;
699 gchar* _tmp7_ = NULL;
700 gchar* server_cert = NULL;
701 gchar* _tmp8_ = NULL;
702 gchar* subject = NULL;
703 gchar* _tmp9_ = NULL;
704 gchar* subject_alt = NULL;
705 gchar* _tmp10_ = NULL;
706 gchar* ta_datetime_added = NULL;
707 gchar* _tmp11_ = NULL;
708 TrustAnchor* ta = NULL;
709 const gchar* _tmp78_ = NULL;
710 const gchar* _tmp79_ = NULL;
711 const gchar* _tmp80_ = NULL;
712 const gchar* _tmp81_ = NULL;
713 TrustAnchor* _tmp82_ = NULL;
714 const gchar* _tmp83_ = NULL;
715 IdCard* _tmp86_ = NULL;
716 TrustAnchor* _tmp87_ = NULL;
717 gboolean _tmp88_ = FALSE;
719 const gchar* _tmp133_ = NULL;
720 IdCard* _tmp142_ = NULL;
721 gboolean _tmp143_ = FALSE;
722 gboolean _tmp144_ = FALSE;
723 GeeLinkedList* _tmp149_ = NULL;
724 IdCard* _tmp150_ = NULL;
725 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
726 _tmp6_ = id_card_new ();
727 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
729 #line 107 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
730 rules_patterns_index = -1;
731 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
732 rules_always_confirm_index = -1;
733 #line 109 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
734 store_password = NULL;
735 #line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
736 _tmp7_ = g_strdup ("");
737 #line 110 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
739 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
740 _tmp8_ = g_strdup ("");
741 #line 111 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
742 server_cert = _tmp8_;
743 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
744 _tmp9_ = g_strdup ("");
745 #line 112 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
747 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
748 _tmp10_ = g_strdup ("");
749 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
750 subject_alt = _tmp10_;
751 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
752 _tmp11_ = g_strdup ("");
753 #line 114 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
754 ta_datetime_added = _tmp11_;
755 #line 756 "moonshot-keyring-store.c"
757 gboolean _tmp12_ = FALSE;
758 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
760 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
762 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
764 #line 765 "moonshot-keyring-store.c"
766 GnomeKeyringFound* _tmp15_ = NULL;
767 GnomeKeyringAttributeList* _tmp16_ = NULL;
769 GnomeKeyringAttribute attribute = {0};
770 GnomeKeyringFound* _tmp18_ = NULL;
771 GnomeKeyringAttributeList* _tmp19_ = NULL;
772 GnomeKeyringAttribute* _tmp20_ = NULL;
773 gint _tmp20__length1 = 0;
775 GnomeKeyringAttribute _tmp22_ = {0};
777 gchar* _tmp23_ = NULL;
778 GnomeKeyringAttribute _tmp24_ = {0};
779 GnomeKeyringAttributeType _tmp25_ = 0;
780 GnomeKeyringAttribute _tmp29_ = {0};
781 const gchar* _tmp30_ = NULL;
782 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
784 #line 785 "moonshot-keyring-store.c"
786 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
788 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
790 #line 791 "moonshot-keyring-store.c"
792 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
794 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
796 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
798 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
799 _tmp16_ = _tmp15_->attributes;
800 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
801 _tmp17_ = _tmp16_->len;
802 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
803 if (!(((guint) _tmp14_) < _tmp17_)) {
804 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
806 #line 807 "moonshot-keyring-store.c"
808 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
810 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
811 _tmp19_ = _tmp18_->attributes;
812 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
813 _tmp20_ = _tmp19_->data;
814 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
815 _tmp20__length1 = -1;
816 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
818 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
819 _tmp22_ = ((GnomeKeyringAttribute*) _tmp20_)[_tmp21_];
820 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
822 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
823 _tmp23_ = g_strdup ("");
824 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
826 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
828 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
829 _tmp25_ = _tmp24_.type;
830 #line 118 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
831 if (_tmp25_ == GNOME_KEYRING_ATTRIBUTE_TYPE_STRING) {
832 #line 833 "moonshot-keyring-store.c"
833 GnomeKeyringAttribute _tmp26_ = {0};
834 const gchar* _tmp27_ = NULL;
835 gchar* _tmp28_ = NULL;
836 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
838 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
839 _tmp27_ = _tmp26_.value.string;
840 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
841 _tmp28_ = g_strdup (_tmp27_);
842 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
844 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
846 #line 847 "moonshot-keyring-store.c"
848 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
850 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
851 _tmp30_ = _tmp29_.name;
852 #line 122 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
853 if (g_strcmp0 (_tmp30_, "Issuer") == 0) {
854 #line 855 "moonshot-keyring-store.c"
855 IdCard* _tmp31_ = NULL;
856 const gchar* _tmp32_ = NULL;
857 #line 123 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
859 #line 123 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
861 #line 123 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
862 id_card_set_issuer (_tmp31_, _tmp32_);
863 #line 864 "moonshot-keyring-store.c"
865 GnomeKeyringAttribute _tmp33_ = {0};
866 const gchar* _tmp34_ = NULL;
867 #line 124 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
869 #line 124 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
870 _tmp34_ = _tmp33_.name;
871 #line 124 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
872 if (g_strcmp0 (_tmp34_, "Username") == 0) {
873 #line 874 "moonshot-keyring-store.c"
874 IdCard* _tmp35_ = NULL;
875 const gchar* _tmp36_ = NULL;
876 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
878 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
880 #line 125 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
881 id_card_set_username (_tmp35_, _tmp36_);
882 #line 883 "moonshot-keyring-store.c"
884 GnomeKeyringAttribute _tmp37_ = {0};
885 const gchar* _tmp38_ = NULL;
886 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
888 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
889 _tmp38_ = _tmp37_.name;
890 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
891 if (g_strcmp0 (_tmp38_, "DisplayName") == 0) {
892 #line 893 "moonshot-keyring-store.c"
893 IdCard* _tmp39_ = NULL;
894 const gchar* _tmp40_ = NULL;
895 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
897 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
899 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
900 id_card_set_display_name (_tmp39_, _tmp40_);
901 #line 902 "moonshot-keyring-store.c"
903 GnomeKeyringAttribute _tmp41_ = {0};
904 const gchar* _tmp42_ = NULL;
905 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
907 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
908 _tmp42_ = _tmp41_.name;
909 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
910 if (g_strcmp0 (_tmp42_, "Services") == 0) {
911 #line 912 "moonshot-keyring-store.c"
912 IdCard* _tmp43_ = NULL;
913 const gchar* _tmp44_ = NULL;
914 gchar** _tmp45_ = NULL;
915 gchar** _tmp46_ = NULL;
916 gchar** _tmp47_ = NULL;
917 gint _tmp47__length1 = 0;
918 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
920 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
922 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
923 _tmp46_ = _tmp45_ = g_strsplit (_tmp44_, ";", 0);
924 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
926 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
927 _tmp47__length1 = _vala_array_length (_tmp45_);
928 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
929 id_card_update_services (_tmp43_, _tmp47_, _vala_array_length (_tmp45_));
930 #line 129 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
931 _tmp47_ = (_vala_array_free (_tmp47_, _tmp47__length1, (GDestroyNotify) g_free), NULL);
932 #line 933 "moonshot-keyring-store.c"
934 GnomeKeyringAttribute _tmp48_ = {0};
935 const gchar* _tmp49_ = NULL;
936 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
938 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
939 _tmp49_ = _tmp48_.name;
940 #line 130 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
941 if (g_strcmp0 (_tmp49_, "Rules-Pattern") == 0) {
942 #line 943 "moonshot-keyring-store.c"
944 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
946 #line 131 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
947 rules_patterns_index = _tmp50_;
948 #line 949 "moonshot-keyring-store.c"
950 GnomeKeyringAttribute _tmp51_ = {0};
951 const gchar* _tmp52_ = NULL;
952 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
954 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
955 _tmp52_ = _tmp51_.name;
956 #line 132 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
957 if (g_strcmp0 (_tmp52_, "Rules-AlwaysConfirm") == 0) {
958 #line 959 "moonshot-keyring-store.c"
960 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
962 #line 133 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
963 rules_always_confirm_index = _tmp53_;
964 #line 965 "moonshot-keyring-store.c"
966 GnomeKeyringAttribute _tmp54_ = {0};
967 const gchar* _tmp55_ = NULL;
968 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
970 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
971 _tmp55_ = _tmp54_.name;
972 #line 134 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
973 if (g_strcmp0 (_tmp55_, "CA-Cert") == 0) {
974 #line 975 "moonshot-keyring-store.c"
975 const gchar* _tmp56_ = NULL;
976 gchar* _tmp57_ = NULL;
977 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
979 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
980 _tmp57_ = string_strip (_tmp56_);
981 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
983 #line 135 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
985 #line 986 "moonshot-keyring-store.c"
987 GnomeKeyringAttribute _tmp58_ = {0};
988 const gchar* _tmp59_ = NULL;
989 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
991 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
992 _tmp59_ = _tmp58_.name;
993 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
994 if (g_strcmp0 (_tmp59_, "Server-Cert") == 0) {
995 #line 996 "moonshot-keyring-store.c"
996 const gchar* _tmp60_ = NULL;
997 gchar* _tmp61_ = NULL;
998 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1000 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1001 _tmp61_ = g_strdup (_tmp60_);
1002 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1003 _g_free0 (server_cert);
1004 #line 137 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1005 server_cert = _tmp61_;
1006 #line 1007 "moonshot-keyring-store.c"
1008 GnomeKeyringAttribute _tmp62_ = {0};
1009 const gchar* _tmp63_ = NULL;
1010 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1011 _tmp62_ = attribute;
1012 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1013 _tmp63_ = _tmp62_.name;
1014 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1015 if (g_strcmp0 (_tmp63_, "Subject") == 0) {
1016 #line 1017 "moonshot-keyring-store.c"
1017 const gchar* _tmp64_ = NULL;
1018 gchar* _tmp65_ = NULL;
1019 #line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1021 #line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1022 _tmp65_ = g_strdup (_tmp64_);
1023 #line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1025 #line 139 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1027 #line 1028 "moonshot-keyring-store.c"
1029 GnomeKeyringAttribute _tmp66_ = {0};
1030 const gchar* _tmp67_ = NULL;
1031 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1032 _tmp66_ = attribute;
1033 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1034 _tmp67_ = _tmp66_.name;
1035 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1036 if (g_strcmp0 (_tmp67_, "Subject-Alt") == 0) {
1037 #line 1038 "moonshot-keyring-store.c"
1038 const gchar* _tmp68_ = NULL;
1039 gchar* _tmp69_ = NULL;
1040 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1042 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1043 _tmp69_ = g_strdup (_tmp68_);
1044 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1045 _g_free0 (subject_alt);
1046 #line 141 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1047 subject_alt = _tmp69_;
1048 #line 1049 "moonshot-keyring-store.c"
1050 GnomeKeyringAttribute _tmp70_ = {0};
1051 const gchar* _tmp71_ = NULL;
1052 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1053 _tmp70_ = attribute;
1054 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1055 _tmp71_ = _tmp70_.name;
1056 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1057 if (g_strcmp0 (_tmp71_, "StorePassword") == 0) {
1058 #line 1059 "moonshot-keyring-store.c"
1059 const gchar* _tmp72_ = NULL;
1060 gchar* _tmp73_ = NULL;
1061 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1063 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1064 _tmp73_ = g_strdup (_tmp72_);
1065 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1066 _g_free0 (store_password);
1067 #line 143 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1068 store_password = _tmp73_;
1069 #line 1070 "moonshot-keyring-store.c"
1071 GnomeKeyringAttribute _tmp74_ = {0};
1072 const gchar* _tmp75_ = NULL;
1073 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1074 _tmp74_ = attribute;
1075 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1076 _tmp75_ = _tmp74_.name;
1077 #line 144 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1078 if (g_strcmp0 (_tmp75_, "TA_DateTime_Added") == 0) {
1079 #line 1080 "moonshot-keyring-store.c"
1080 const gchar* _tmp76_ = NULL;
1081 gchar* _tmp77_ = NULL;
1082 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1084 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1085 _tmp77_ = g_strdup (_tmp76_);
1086 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1087 _g_free0 (ta_datetime_added);
1088 #line 145 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1089 ta_datetime_added = _tmp77_;
1090 #line 1091 "moonshot-keyring-store.c"
1103 #line 115 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1105 #line 1106 "moonshot-keyring-store.c"
1108 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1110 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1111 _tmp79_ = server_cert;
1112 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1114 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1115 _tmp81_ = subject_alt;
1116 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1117 _tmp82_ = trust_anchor_new (_tmp78_, _tmp79_, _tmp80_, _tmp81_);
1118 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1120 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1121 _tmp83_ = ta_datetime_added;
1122 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1123 if (g_strcmp0 (_tmp83_, "") != 0) {
1124 #line 1125 "moonshot-keyring-store.c"
1125 TrustAnchor* _tmp84_ = NULL;
1126 const gchar* _tmp85_ = NULL;
1127 #line 151 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1129 #line 151 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1130 _tmp85_ = ta_datetime_added;
1131 #line 151 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1132 trust_anchor_set_datetime_added (_tmp84_, _tmp85_);
1133 #line 1134 "moonshot-keyring-store.c"
1135 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1137 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1139 #line 153 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1140 id_card_set_trust_anchor_from_store (_tmp86_, _tmp87_);
1141 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1142 _tmp89_ = rules_always_confirm_index;
1143 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1144 if (_tmp89_ != -1) {
1145 #line 1146 "moonshot-keyring-store.c"
1147 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1148 _tmp90_ = rules_patterns_index;
1149 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1150 _tmp88_ = _tmp90_ != -1;
1151 #line 1152 "moonshot-keyring-store.c"
1153 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1155 #line 1156 "moonshot-keyring-store.c"
1157 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1159 #line 1160 "moonshot-keyring-store.c"
1160 gchar* rules_patterns_all = NULL;
1161 GnomeKeyringFound* _tmp91_ = NULL;
1162 GnomeKeyringAttributeList* _tmp92_ = NULL;
1163 GnomeKeyringAttribute* _tmp93_ = NULL;
1164 gint _tmp93__length1 = 0;
1166 GnomeKeyringAttribute _tmp95_ = {0};
1167 const gchar* _tmp96_ = NULL;
1168 gchar* _tmp97_ = NULL;
1169 gchar* rules_always_confirm_all = NULL;
1170 GnomeKeyringFound* _tmp98_ = NULL;
1171 GnomeKeyringAttributeList* _tmp99_ = NULL;
1172 GnomeKeyringAttribute* _tmp100_ = NULL;
1173 gint _tmp100__length1 = 0;
1175 GnomeKeyringAttribute _tmp102_ = {0};
1176 const gchar* _tmp103_ = NULL;
1177 gchar* _tmp104_ = NULL;
1178 gchar** rules_always_confirm = NULL;
1179 const gchar* _tmp105_ = NULL;
1180 gchar** _tmp106_ = NULL;
1181 gchar** _tmp107_ = NULL;
1182 gint rules_always_confirm_length1 = 0;
1183 gint _rules_always_confirm_size_ = 0;
1184 gchar** rules_patterns = NULL;
1185 const gchar* _tmp108_ = NULL;
1186 gchar** _tmp109_ = NULL;
1187 gchar** _tmp110_ = NULL;
1188 gint rules_patterns_length1 = 0;
1189 gint _rules_patterns_size_ = 0;
1190 gchar** _tmp111_ = NULL;
1191 gint _tmp111__length1 = 0;
1192 gchar** _tmp112_ = NULL;
1193 gint _tmp112__length1 = 0;
1194 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1196 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1197 _tmp92_ = _tmp91_->attributes;
1198 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1199 _tmp93_ = _tmp92_->data;
1200 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1201 _tmp93__length1 = -1;
1202 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1203 _tmp94_ = rules_patterns_index;
1204 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1205 _tmp95_ = ((GnomeKeyringAttribute*) _tmp93_)[_tmp94_];
1206 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1207 _tmp96_ = _tmp95_.value.string;
1208 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1209 _tmp97_ = g_strdup (_tmp96_);
1210 #line 156 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1211 rules_patterns_all = _tmp97_;
1212 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1214 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1215 _tmp99_ = _tmp98_->attributes;
1216 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1217 _tmp100_ = _tmp99_->data;
1218 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1219 _tmp100__length1 = -1;
1220 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1221 _tmp101_ = rules_always_confirm_index;
1222 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1223 _tmp102_ = ((GnomeKeyringAttribute*) _tmp100_)[_tmp101_];
1224 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1225 _tmp103_ = _tmp102_.value.string;
1226 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1227 _tmp104_ = g_strdup (_tmp103_);
1228 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1229 rules_always_confirm_all = _tmp104_;
1230 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1231 _tmp105_ = rules_always_confirm_all;
1232 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1233 _tmp107_ = _tmp106_ = g_strsplit (_tmp105_, ";", 0);
1234 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1235 rules_always_confirm = _tmp107_;
1236 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1237 rules_always_confirm_length1 = _vala_array_length (_tmp106_);
1238 #line 158 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1239 _rules_always_confirm_size_ = rules_always_confirm_length1;
1240 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1241 _tmp108_ = rules_patterns_all;
1242 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1243 _tmp110_ = _tmp109_ = g_strsplit (_tmp108_, ";", 0);
1244 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1245 rules_patterns = _tmp110_;
1246 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1247 rules_patterns_length1 = _vala_array_length (_tmp109_);
1248 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1249 _rules_patterns_size_ = rules_patterns_length1;
1250 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1251 _tmp111_ = rules_patterns;
1252 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1253 _tmp111__length1 = rules_patterns_length1;
1254 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1255 _tmp112_ = rules_always_confirm;
1256 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1257 _tmp112__length1 = rules_always_confirm_length1;
1258 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1259 if (_tmp111__length1 == _tmp112__length1) {
1260 #line 1261 "moonshot-keyring-store.c"
1262 gchar** _tmp113_ = NULL;
1263 gint _tmp113__length1 = 0;
1264 Rule* _tmp114_ = NULL;
1265 gint rules_length1 = 0;
1266 gint _rules_size_ = 0;
1267 IdCard* _tmp131_ = NULL;
1268 Rule* _tmp132_ = NULL;
1269 gint _tmp132__length1 = 0;
1270 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1271 _tmp113_ = rules_patterns;
1272 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1273 _tmp113__length1 = rules_patterns_length1;
1274 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1275 _tmp114_ = g_new0 (Rule, _tmp113__length1);
1276 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1278 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1279 rules_length1 = _tmp113__length1;
1280 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1281 _rules_size_ = rules_length1;
1282 #line 1283 "moonshot-keyring-store.c"
1285 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1287 #line 1288 "moonshot-keyring-store.c"
1289 gboolean _tmp115_ = FALSE;
1290 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1292 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1294 #line 1295 "moonshot-keyring-store.c"
1296 gchar** _tmp118_ = NULL;
1297 gint _tmp118__length1 = 0;
1298 Rule* _tmp119_ = NULL;
1299 gint _tmp119__length1 = 0;
1301 gchar** _tmp121_ = NULL;
1302 gint _tmp121__length1 = 0;
1304 const gchar* _tmp123_ = NULL;
1305 gchar* _tmp124_ = NULL;
1306 Rule* _tmp125_ = NULL;
1307 gint _tmp125__length1 = 0;
1309 gchar** _tmp127_ = NULL;
1310 gint _tmp127__length1 = 0;
1312 const gchar* _tmp129_ = NULL;
1313 gchar* _tmp130_ = NULL;
1314 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1316 #line 1317 "moonshot-keyring-store.c"
1318 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1320 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1322 #line 1323 "moonshot-keyring-store.c"
1324 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1326 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1328 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1329 _tmp118_ = rules_patterns;
1330 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1331 _tmp118__length1 = rules_patterns_length1;
1332 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1333 if (!(_tmp117_ < _tmp118__length1)) {
1334 #line 162 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1336 #line 1337 "moonshot-keyring-store.c"
1338 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1340 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1341 _tmp119__length1 = rules_length1;
1342 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1344 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1345 _tmp121_ = rules_patterns;
1346 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1347 _tmp121__length1 = rules_patterns_length1;
1348 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1350 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1351 _tmp123_ = _tmp121_[_tmp122_];
1352 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1353 _tmp124_ = g_strdup (_tmp123_);
1354 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1355 _g_free0 (_tmp119_[_tmp120_].pattern);
1356 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1357 _tmp119_[_tmp120_].pattern = _tmp124_;
1358 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1360 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1361 _tmp125__length1 = rules_length1;
1362 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1364 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1365 _tmp127_ = rules_always_confirm;
1366 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1367 _tmp127__length1 = rules_always_confirm_length1;
1368 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1370 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1371 _tmp129_ = _tmp127_[_tmp128_];
1372 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1373 _tmp130_ = g_strdup (_tmp129_);
1374 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1375 _g_free0 (_tmp125_[_tmp126_].always_confirm);
1376 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1377 _tmp125_[_tmp126_].always_confirm = _tmp130_;
1378 #line 1379 "moonshot-keyring-store.c"
1382 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1384 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1386 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1387 _tmp132__length1 = rules_length1;
1388 #line 166 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1389 id_card_set_rules (_tmp131_, _tmp132_, _tmp132__length1);
1390 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1391 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
1392 #line 1393 "moonshot-keyring-store.c"
1394 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1395 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
1396 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1397 rules_always_confirm = (_vala_array_free (rules_always_confirm, rules_always_confirm_length1, (GDestroyNotify) g_free), NULL);
1398 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1399 _g_free0 (rules_always_confirm_all);
1400 #line 155 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1401 _g_free0 (rules_patterns_all);
1402 #line 1403 "moonshot-keyring-store.c"
1404 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1405 _tmp133_ = store_password;
1406 #line 170 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1407 if (_tmp133_ != NULL) {
1408 #line 1409 "moonshot-keyring-store.c"
1409 IdCard* _tmp134_ = NULL;
1410 const gchar* _tmp135_ = NULL;
1411 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1413 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1414 _tmp135_ = store_password;
1415 #line 171 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1416 id_card_set_store_password (_tmp134_, g_strcmp0 (_tmp135_, "yes") == 0);
1417 #line 1418 "moonshot-keyring-store.c"
1419 gboolean _tmp136_ = FALSE;
1420 GnomeKeyringFound* _tmp137_ = NULL;
1421 const gchar* _tmp138_ = NULL;
1422 IdCard* _tmp141_ = NULL;
1423 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1425 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1426 _tmp138_ = _tmp137_->secret;
1427 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1428 if (_tmp138_ != NULL) {
1429 #line 1430 "moonshot-keyring-store.c"
1430 GnomeKeyringFound* _tmp139_ = NULL;
1431 const gchar* _tmp140_ = NULL;
1432 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1434 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1435 _tmp140_ = _tmp139_->secret;
1436 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1437 _tmp136_ = g_strcmp0 (_tmp140_, "") != 0;
1438 #line 1439 "moonshot-keyring-store.c"
1440 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1442 #line 1443 "moonshot-keyring-store.c"
1444 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1446 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1447 id_card_set_store_password (_tmp141_, _tmp136_);
1448 #line 1449 "moonshot-keyring-store.c"
1450 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1452 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1453 _tmp143_ = id_card_get_store_password (_tmp142_);
1454 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1455 _tmp144_ = _tmp143_;
1456 #line 175 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1458 #line 1459 "moonshot-keyring-store.c"
1459 IdCard* _tmp145_ = NULL;
1460 GnomeKeyringFound* _tmp146_ = NULL;
1461 const gchar* _tmp147_ = NULL;
1462 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1464 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1466 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1467 _tmp147_ = _tmp146_->secret;
1468 #line 176 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1469 id_card_set_password (_tmp145_, _tmp147_);
1470 #line 1471 "moonshot-keyring-store.c"
1472 IdCard* _tmp148_ = NULL;
1473 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1475 #line 178 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1476 id_card_set_password (_tmp148_, NULL);
1477 #line 1478 "moonshot-keyring-store.c"
1479 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1480 _tmp149_ = self->priv->id_card_list;
1481 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1483 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1484 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp149_, _tmp150_);
1485 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1486 _g_object_unref0 (ta);
1487 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1488 _g_free0 (ta_datetime_added);
1489 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1490 _g_free0 (subject_alt);
1491 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1493 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1494 _g_free0 (server_cert);
1495 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1497 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1498 _g_free0 (store_password);
1499 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1500 _g_object_unref0 (id_card);
1501 #line 1502 "moonshot-keyring-store.c"
1505 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1506 __g_list_free__gnome_keyring_found_free0_0 (items);
1507 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1508 _gnome_keyring_attribute_list_free0 (match);
1509 #line 1510 "moonshot-keyring-store.c"
1513 static Rule* _vala_array_dup2 (Rule* self, int length) {
1516 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1517 result = g_new0 (Rule, length);
1518 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1519 for (i = 0; i < length; i++) {
1520 #line 1521 "moonshot-keyring-store.c"
1522 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1523 rule_copy (&self[i], &_tmp0_);
1524 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1526 #line 1527 "moonshot-keyring-store.c"
1528 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1530 #line 1531 "moonshot-keyring-store.c"
1534 static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
1535 gchar* result = NULL;
1536 const gchar* _tmp0_ = NULL;
1537 gboolean _tmp1_ = FALSE;
1538 gboolean _tmp2_ = FALSE;
1539 gchar** _tmp3_ = NULL;
1540 gint _tmp3__length1 = 0;
1541 #line 1062 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1543 #line 1062 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1544 if (_tmp0_ == NULL) {
1545 #line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1547 #line 1548 "moonshot-keyring-store.c"
1549 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1551 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1552 _tmp3__length1 = str_array_length1;
1553 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1554 if (_tmp3_ != NULL) {
1555 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1557 #line 1558 "moonshot-keyring-store.c"
1559 gchar** _tmp4_ = NULL;
1560 gint _tmp4__length1 = 0;
1561 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1563 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1564 _tmp4__length1 = str_array_length1;
1565 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1566 _tmp2_ = _tmp4__length1 > 0;
1567 #line 1568 "moonshot-keyring-store.c"
1569 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1571 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1573 #line 1574 "moonshot-keyring-store.c"
1575 gboolean _tmp5_ = FALSE;
1576 gchar** _tmp6_ = NULL;
1577 gint _tmp6__length1 = 0;
1578 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1580 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1581 _tmp6__length1 = str_array_length1;
1582 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1583 if (_tmp6__length1 == -1) {
1584 #line 1585 "moonshot-keyring-store.c"
1585 gchar** _tmp7_ = NULL;
1586 gint _tmp7__length1 = 0;
1587 const gchar* _tmp8_ = NULL;
1588 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1590 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1591 _tmp7__length1 = str_array_length1;
1592 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1594 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1595 _tmp5_ = _tmp8_ != NULL;
1596 #line 1597 "moonshot-keyring-store.c"
1598 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1600 #line 1601 "moonshot-keyring-store.c"
1602 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1604 #line 1605 "moonshot-keyring-store.c"
1606 #line 1065 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1608 #line 1609 "moonshot-keyring-store.c"
1614 gsize _tmp35_ = 0UL;
1615 const gchar* _tmp36_ = NULL;
1619 const gchar* res = NULL;
1620 gsize _tmp40_ = 0UL;
1621 void* _tmp41_ = NULL;
1623 const gchar* _tmp42_ = NULL;
1624 gchar** _tmp43_ = NULL;
1625 gint _tmp43__length1 = 0;
1626 const gchar* _tmp44_ = NULL;
1627 void* _tmp45_ = NULL;
1628 const gchar* _tmp62_ = NULL;
1629 #line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1631 #line 1632 "moonshot-keyring-store.c"
1633 gboolean _tmp9_ = FALSE;
1634 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1636 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1638 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1640 #line 1641 "moonshot-keyring-store.c"
1641 gboolean _tmp11_ = FALSE;
1642 gboolean _tmp12_ = FALSE;
1643 gchar** _tmp13_ = NULL;
1644 gint _tmp13__length1 = 0;
1646 gchar** _tmp22_ = NULL;
1647 gint _tmp22__length1 = 0;
1649 const gchar* _tmp24_ = NULL;
1650 gsize _tmp30_ = 0UL;
1651 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1653 #line 1654 "moonshot-keyring-store.c"
1655 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1657 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1659 #line 1660 "moonshot-keyring-store.c"
1661 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1663 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1664 _tmp13_ = str_array;
1665 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1666 _tmp13__length1 = str_array_length1;
1667 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1668 if (_tmp13__length1 != -1) {
1669 #line 1670 "moonshot-keyring-store.c"
1671 gchar** _tmp15_ = NULL;
1672 gint _tmp15__length1 = 0;
1673 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1675 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1676 _tmp15_ = str_array;
1677 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1678 _tmp15__length1 = str_array_length1;
1679 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1680 _tmp12_ = _tmp14_ < _tmp15__length1;
1681 #line 1682 "moonshot-keyring-store.c"
1683 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1685 #line 1686 "moonshot-keyring-store.c"
1687 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1689 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1691 #line 1692 "moonshot-keyring-store.c"
1693 gboolean _tmp16_ = FALSE;
1694 gchar** _tmp17_ = NULL;
1695 gint _tmp17__length1 = 0;
1696 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1697 _tmp17_ = str_array;
1698 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1699 _tmp17__length1 = str_array_length1;
1700 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1701 if (_tmp17__length1 == -1) {
1702 #line 1703 "moonshot-keyring-store.c"
1703 gchar** _tmp18_ = NULL;
1704 gint _tmp18__length1 = 0;
1706 const gchar* _tmp20_ = NULL;
1707 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1708 _tmp18_ = str_array;
1709 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1710 _tmp18__length1 = str_array_length1;
1711 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1713 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1714 _tmp20_ = _tmp18_[_tmp19_];
1715 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1716 _tmp16_ = _tmp20_ != NULL;
1717 #line 1718 "moonshot-keyring-store.c"
1719 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1721 #line 1722 "moonshot-keyring-store.c"
1723 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1725 #line 1726 "moonshot-keyring-store.c"
1727 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1729 #line 1068 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1731 #line 1732 "moonshot-keyring-store.c"
1733 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1734 _tmp22_ = str_array;
1735 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1736 _tmp22__length1 = str_array_length1;
1737 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1739 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1740 _tmp24_ = _tmp22_[_tmp23_];
1741 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1742 if (_tmp24_ != NULL) {
1743 #line 1744 "moonshot-keyring-store.c"
1744 gchar** _tmp25_ = NULL;
1745 gint _tmp25__length1 = 0;
1747 const gchar* _tmp27_ = NULL;
1750 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1751 _tmp25_ = str_array;
1752 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1753 _tmp25__length1 = str_array_length1;
1754 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1756 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1757 _tmp27_ = _tmp25_[_tmp26_];
1758 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1759 _tmp28_ = strlen ((const gchar*) _tmp27_);
1760 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1762 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1764 #line 1765 "moonshot-keyring-store.c"
1766 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1768 #line 1769 "moonshot-keyring-store.c"
1770 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1772 #line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1773 len = _tmp30_ + _tmp21_;
1774 #line 1775 "moonshot-keyring-store.c"
1777 #line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1779 #line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1781 #line 1782 "moonshot-keyring-store.c"
1782 gchar* _tmp32_ = NULL;
1783 #line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1784 _tmp32_ = g_strdup ("");
1785 #line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1787 #line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1789 #line 1790 "moonshot-keyring-store.c"
1791 #line 1074 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1793 #line 1074 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1794 str_array_length1 = _tmp33_;
1795 #line 1074 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1796 _tmp34_ = str_array_length1;
1797 #line 1075 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1799 #line 1075 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1800 _tmp36_ = separator;
1801 #line 1075 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1802 _tmp37_ = strlen ((const gchar*) _tmp36_);
1803 #line 1075 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1805 #line 1075 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1807 #line 1075 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1808 len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
1809 #line 1077 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1811 #line 1077 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1812 _tmp41_ = g_malloc (_tmp40_);
1813 #line 1077 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1815 #line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1817 #line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1818 _tmp43_ = str_array;
1819 #line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1820 _tmp43__length1 = str_array_length1;
1821 #line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1822 _tmp44_ = _tmp43_[0];
1823 #line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1824 _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
1825 #line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1827 #line 1828 "moonshot-keyring-store.c"
1829 gboolean _tmp46_ = FALSE;
1830 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1832 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1834 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1836 #line 1837 "moonshot-keyring-store.c"
1838 gchar** _tmp49_ = NULL;
1839 gint _tmp49__length1 = 0;
1840 void* _tmp50_ = NULL;
1841 const gchar* _tmp51_ = NULL;
1842 void* _tmp52_ = NULL;
1843 const gchar* _tmp53_ = NULL;
1844 gchar** _tmp54_ = NULL;
1845 gint _tmp54__length1 = 0;
1847 const gchar* _tmp56_ = NULL;
1848 void* _tmp60_ = NULL;
1849 void* _tmp61_ = NULL;
1850 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1852 #line 1853 "moonshot-keyring-store.c"
1854 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1856 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1858 #line 1859 "moonshot-keyring-store.c"
1860 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1862 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1864 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1865 _tmp49_ = str_array;
1866 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1867 _tmp49__length1 = str_array_length1;
1868 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1869 if (!(_tmp48_ < _tmp49__length1)) {
1870 #line 1079 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1872 #line 1873 "moonshot-keyring-store.c"
1874 #line 1080 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1876 #line 1080 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1877 _tmp51_ = separator;
1878 #line 1080 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1879 _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
1880 #line 1080 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1882 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1883 _tmp54_ = str_array;
1884 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1885 _tmp54__length1 = str_array_length1;
1886 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1888 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1889 _tmp56_ = _tmp54_[_tmp55_];
1890 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1891 if (_tmp56_ != NULL) {
1892 #line 1893 "moonshot-keyring-store.c"
1893 gchar** _tmp57_ = NULL;
1894 gint _tmp57__length1 = 0;
1896 const gchar* _tmp59_ = NULL;
1897 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1898 _tmp57_ = str_array;
1899 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1900 _tmp57__length1 = str_array_length1;
1901 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1903 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1904 _tmp59_ = _tmp57_[_tmp58_];
1905 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1906 _tmp53_ = (const gchar*) _tmp59_;
1907 #line 1908 "moonshot-keyring-store.c"
1909 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1911 #line 1912 "moonshot-keyring-store.c"
1913 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1915 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1916 _tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
1917 #line 1081 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1919 #line 1920 "moonshot-keyring-store.c"
1922 #line 1084 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1924 #line 1084 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1926 #line 1084 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1927 result = (gchar*) _tmp62_;
1928 #line 1084 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1930 #line 1931 "moonshot-keyring-store.c"
1932 gchar* _tmp63_ = NULL;
1933 #line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1934 _tmp63_ = g_strdup ("");
1935 #line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1937 #line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
1939 #line 1940 "moonshot-keyring-store.c"
1944 static void keyring_store_real_store_id_cards (IIdentityCardStore* base) {
1945 KeyringStore * self;
1946 MoonshotLogger* _tmp0_ = NULL;
1947 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1948 self = (KeyringStore*) base;
1949 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1950 _tmp0_ = keyring_store_logger;
1951 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1952 moonshot_logger_trace (_tmp0_, "store_id_cards", NULL);
1953 #line 186 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1954 keyring_store_clear_keyring (self);
1955 #line 1956 "moonshot-keyring-store.c"
1957 GeeLinkedList* _id_card_list = NULL;
1958 GeeLinkedList* _tmp1_ = NULL;
1959 GeeLinkedList* _tmp2_ = NULL;
1960 gint _id_card_size = 0;
1961 GeeLinkedList* _tmp3_ = NULL;
1964 gint _id_card_index = 0;
1965 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1966 _tmp1_ = self->priv->id_card_list;
1967 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1968 _tmp2_ = _g_object_ref0 (_tmp1_);
1969 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1970 _id_card_list = _tmp2_;
1971 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1972 _tmp3_ = _id_card_list;
1973 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1974 _tmp4_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp3_);
1975 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1977 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1978 _id_card_size = _tmp5_;
1979 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1980 _id_card_index = -1;
1981 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
1983 #line 1984 "moonshot-keyring-store.c"
1987 IdCard* id_card = NULL;
1988 GeeLinkedList* _tmp9_ = NULL;
1990 gpointer _tmp11_ = NULL;
1992 IdCard* _tmp12_ = NULL;
1993 Rule* _tmp13_ = NULL;
1994 gint _tmp13__length1 = 0;
1995 Rule* _tmp14_ = NULL;
1996 gint _tmp14__length1 = 0;
1997 Rule* _tmp15_ = NULL;
1998 gint _tmp15__length1 = 0;
1999 gint rules_length1 = 0;
2000 gint _rules_size_ = 0;
2001 gchar** rules_patterns = NULL;
2002 Rule* _tmp16_ = NULL;
2003 gint _tmp16__length1 = 0;
2004 gchar** _tmp17_ = NULL;
2005 gint rules_patterns_length1 = 0;
2006 gint _rules_patterns_size_ = 0;
2007 gchar** rules_always_conf = NULL;
2008 Rule* _tmp18_ = NULL;
2009 gint _tmp18__length1 = 0;
2010 gchar** _tmp19_ = NULL;
2011 gint rules_always_conf_length1 = 0;
2012 gint _rules_always_conf_size_ = 0;
2013 gchar* patterns = NULL;
2014 gchar** _tmp40_ = NULL;
2015 gint _tmp40__length1 = 0;
2016 gchar* _tmp41_ = NULL;
2017 gchar* always_conf = NULL;
2018 gchar** _tmp42_ = NULL;
2019 gint _tmp42__length1 = 0;
2020 gchar* _tmp43_ = NULL;
2021 gchar* services = NULL;
2022 IdCard* _tmp44_ = NULL;
2023 gchar* _tmp45_ = NULL;
2024 GnomeKeyringAttributeList* attributes = NULL;
2025 GnomeKeyringAttributeList* _tmp46_ = NULL;
2026 guint32 item_id = 0U;
2027 GnomeKeyringAttributeList* _tmp47_ = NULL;
2028 GnomeKeyringAttributeList* _tmp48_ = NULL;
2029 IdCard* _tmp49_ = NULL;
2030 const gchar* _tmp50_ = NULL;
2031 const gchar* _tmp51_ = NULL;
2032 GnomeKeyringAttributeList* _tmp52_ = NULL;
2033 IdCard* _tmp53_ = NULL;
2034 const gchar* _tmp54_ = NULL;
2035 const gchar* _tmp55_ = NULL;
2036 GnomeKeyringAttributeList* _tmp56_ = NULL;
2037 IdCard* _tmp57_ = NULL;
2038 const gchar* _tmp58_ = NULL;
2039 const gchar* _tmp59_ = NULL;
2040 GnomeKeyringAttributeList* _tmp60_ = NULL;
2041 const gchar* _tmp61_ = NULL;
2042 GnomeKeyringAttributeList* _tmp62_ = NULL;
2043 const gchar* _tmp63_ = NULL;
2044 GnomeKeyringAttributeList* _tmp64_ = NULL;
2045 const gchar* _tmp65_ = NULL;
2046 GnomeKeyringAttributeList* _tmp66_ = NULL;
2047 IdCard* _tmp67_ = NULL;
2048 TrustAnchor* _tmp68_ = NULL;
2049 TrustAnchor* _tmp69_ = NULL;
2050 const gchar* _tmp70_ = NULL;
2051 const gchar* _tmp71_ = NULL;
2052 GnomeKeyringAttributeList* _tmp72_ = NULL;
2053 IdCard* _tmp73_ = NULL;
2054 TrustAnchor* _tmp74_ = NULL;
2055 TrustAnchor* _tmp75_ = NULL;
2056 const gchar* _tmp76_ = NULL;
2057 const gchar* _tmp77_ = NULL;
2058 GnomeKeyringAttributeList* _tmp78_ = NULL;
2059 IdCard* _tmp79_ = NULL;
2060 TrustAnchor* _tmp80_ = NULL;
2061 TrustAnchor* _tmp81_ = NULL;
2062 const gchar* _tmp82_ = NULL;
2063 const gchar* _tmp83_ = NULL;
2064 GnomeKeyringAttributeList* _tmp84_ = NULL;
2065 IdCard* _tmp85_ = NULL;
2066 TrustAnchor* _tmp86_ = NULL;
2067 TrustAnchor* _tmp87_ = NULL;
2068 const gchar* _tmp88_ = NULL;
2069 const gchar* _tmp89_ = NULL;
2070 GnomeKeyringAttributeList* _tmp90_ = NULL;
2071 IdCard* _tmp91_ = NULL;
2072 TrustAnchor* _tmp92_ = NULL;
2073 TrustAnchor* _tmp93_ = NULL;
2074 const gchar* _tmp94_ = NULL;
2075 const gchar* _tmp95_ = NULL;
2076 const gchar* _tmp96_ = NULL;
2077 IdCard* _tmp97_ = NULL;
2078 gboolean _tmp98_ = FALSE;
2079 gboolean _tmp99_ = FALSE;
2080 GnomeKeyringAttributeList* _tmp100_ = NULL;
2081 const gchar* _tmp101_ = NULL;
2082 IdCard* _tmp102_ = NULL;
2083 gboolean _tmp103_ = FALSE;
2084 gboolean _tmp104_ = FALSE;
2085 GnomeKeyringResult _result_ = 0;
2086 IdCard* _tmp108_ = NULL;
2087 const gchar* _tmp109_ = NULL;
2088 const gchar* _tmp110_ = NULL;
2089 GnomeKeyringAttributeList* _tmp111_ = NULL;
2090 guint32 _tmp112_ = 0U;
2091 GnomeKeyringResult _tmp113_ = 0;
2092 GnomeKeyringResult _tmp114_ = 0;
2093 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2094 _tmp6_ = _id_card_index;
2095 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2096 _id_card_index = _tmp6_ + 1;
2097 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2098 _tmp7_ = _id_card_index;
2099 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2100 _tmp8_ = _id_card_size;
2101 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2102 if (!(_tmp7_ < _tmp8_)) {
2103 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2105 #line 2106 "moonshot-keyring-store.c"
2107 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2108 _tmp9_ = _id_card_list;
2109 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2110 _tmp10_ = _id_card_index;
2111 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2112 _tmp11_ = gee_abstract_list_get ((GeeAbstractList*) _tmp9_, _tmp10_);
2113 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2114 id_card = (IdCard*) _tmp11_;
2115 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2117 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2118 _tmp13_ = id_card_get_rules (_tmp12_, &_tmp13__length1);
2119 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2121 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2122 _tmp14__length1 = _tmp13__length1;
2123 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2124 _tmp15_ = (_tmp14_ != NULL) ? _vala_array_dup2 (_tmp14_, _tmp14__length1) : ((gpointer) _tmp14_);
2125 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2126 _tmp15__length1 = _tmp14__length1;
2127 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2129 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2130 rules_length1 = _tmp15__length1;
2131 #line 189 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2132 _rules_size_ = rules_length1;
2133 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2135 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2136 _tmp16__length1 = rules_length1;
2137 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2138 _tmp17_ = g_new0 (gchar*, _tmp16__length1 + 1);
2139 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2140 rules_patterns = _tmp17_;
2141 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2142 rules_patterns_length1 = _tmp16__length1;
2143 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2144 _rules_patterns_size_ = rules_patterns_length1;
2145 #line 191 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2147 #line 191 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2148 _tmp18__length1 = rules_length1;
2149 #line 191 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2150 _tmp19_ = g_new0 (gchar*, _tmp18__length1 + 1);
2151 #line 191 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2152 rules_always_conf = _tmp19_;
2153 #line 191 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2154 rules_always_conf_length1 = _tmp18__length1;
2155 #line 191 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2156 _rules_always_conf_size_ = rules_always_conf_length1;
2157 #line 2158 "moonshot-keyring-store.c"
2160 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2162 #line 2163 "moonshot-keyring-store.c"
2164 gboolean _tmp20_ = FALSE;
2165 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2167 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2169 #line 2170 "moonshot-keyring-store.c"
2171 Rule* _tmp23_ = NULL;
2172 gint _tmp23__length1 = 0;
2173 gchar** _tmp24_ = NULL;
2174 gint _tmp24__length1 = 0;
2176 Rule* _tmp26_ = NULL;
2177 gint _tmp26__length1 = 0;
2180 const gchar* _tmp29_ = NULL;
2181 gchar* _tmp30_ = NULL;
2182 gchar* _tmp31_ = NULL;
2183 gchar** _tmp32_ = NULL;
2184 gint _tmp32__length1 = 0;
2186 Rule* _tmp34_ = NULL;
2187 gint _tmp34__length1 = 0;
2190 const gchar* _tmp37_ = NULL;
2191 gchar* _tmp38_ = NULL;
2192 gchar* _tmp39_ = NULL;
2193 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2195 #line 2196 "moonshot-keyring-store.c"
2197 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2199 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2201 #line 2202 "moonshot-keyring-store.c"
2203 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2205 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2207 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2209 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2210 _tmp23__length1 = rules_length1;
2211 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2212 if (!(_tmp22_ < _tmp23__length1)) {
2213 #line 193 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2215 #line 2216 "moonshot-keyring-store.c"
2217 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2218 _tmp24_ = rules_patterns;
2219 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2220 _tmp24__length1 = rules_patterns_length1;
2221 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2223 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2225 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2226 _tmp26__length1 = rules_length1;
2227 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2229 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2230 _tmp28_ = _tmp26_[_tmp27_];
2231 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2232 _tmp29_ = _tmp28_.pattern;
2233 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2234 _tmp30_ = g_strdup (_tmp29_);
2235 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2236 _g_free0 (_tmp24_[_tmp25_]);
2237 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2238 _tmp24_[_tmp25_] = _tmp30_;
2239 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2240 _tmp31_ = _tmp24_[_tmp25_];
2241 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2242 _tmp32_ = rules_always_conf;
2243 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2244 _tmp32__length1 = rules_always_conf_length1;
2245 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2247 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2249 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2250 _tmp34__length1 = rules_length1;
2251 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2253 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2254 _tmp36_ = _tmp34_[_tmp35_];
2255 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2256 _tmp37_ = _tmp36_.always_confirm;
2257 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2258 _tmp38_ = g_strdup (_tmp37_);
2259 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2260 _g_free0 (_tmp32_[_tmp33_]);
2261 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2262 _tmp32_[_tmp33_] = _tmp38_;
2263 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2264 _tmp39_ = _tmp32_[_tmp33_];
2265 #line 2266 "moonshot-keyring-store.c"
2269 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2270 _tmp40_ = rules_patterns;
2271 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2272 _tmp40__length1 = rules_patterns_length1;
2273 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2274 _tmp41_ = _vala_g_strjoinv (";", _tmp40_, _tmp40__length1);
2275 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2277 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2278 _tmp42_ = rules_always_conf;
2279 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2280 _tmp42__length1 = rules_always_conf_length1;
2281 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2282 _tmp43_ = _vala_g_strjoinv (";", _tmp42_, _tmp42__length1);
2283 #line 198 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2284 always_conf = _tmp43_;
2285 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2287 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2288 _tmp45_ = id_card_get_services_string (_tmp44_, ";");
2289 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2291 #line 200 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2292 _tmp46_ = gnome_keyring_attribute_list_new ();
2293 #line 200 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2294 attributes = _tmp46_;
2295 #line 202 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2296 _tmp47_ = attributes;
2297 #line 202 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2298 gnome_keyring_attribute_list_append_string (_tmp47_, KEYRING_STORE_keyring_store_attribute, KEYRING_STORE_keyring_store_version);
2299 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2300 _tmp48_ = attributes;
2301 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2303 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2304 _tmp50_ = id_card_get_issuer (_tmp49_);
2305 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2307 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2308 gnome_keyring_attribute_list_append_string (_tmp48_, "Issuer", _tmp51_);
2309 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2310 _tmp52_ = attributes;
2311 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2313 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2314 _tmp54_ = id_card_get_username (_tmp53_);
2315 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2317 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2318 gnome_keyring_attribute_list_append_string (_tmp52_, "Username", _tmp55_);
2319 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2320 _tmp56_ = attributes;
2321 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2323 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2324 _tmp58_ = id_card_get_display_name (_tmp57_);
2325 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2327 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2328 gnome_keyring_attribute_list_append_string (_tmp56_, "DisplayName", _tmp59_);
2329 #line 206 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2330 _tmp60_ = attributes;
2331 #line 206 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2333 #line 206 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2334 gnome_keyring_attribute_list_append_string (_tmp60_, "Services", _tmp61_);
2335 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2336 _tmp62_ = attributes;
2337 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2339 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2340 gnome_keyring_attribute_list_append_string (_tmp62_, "Rules-Pattern", _tmp63_);
2341 #line 208 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2342 _tmp64_ = attributes;
2343 #line 208 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2344 _tmp65_ = always_conf;
2345 #line 208 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2346 gnome_keyring_attribute_list_append_string (_tmp64_, "Rules-AlwaysConfirm", _tmp65_);
2347 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2348 _tmp66_ = attributes;
2349 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2351 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2352 _tmp68_ = id_card_get_trust_anchor (_tmp67_);
2353 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2355 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2356 _tmp70_ = trust_anchor_get_ca_cert (_tmp69_);
2357 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2359 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2360 gnome_keyring_attribute_list_append_string (_tmp66_, "CA-Cert", _tmp71_);
2361 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2362 _tmp72_ = attributes;
2363 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2365 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2366 _tmp74_ = id_card_get_trust_anchor (_tmp73_);
2367 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2369 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2370 _tmp76_ = trust_anchor_get_server_cert (_tmp75_);
2371 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2373 #line 210 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2374 gnome_keyring_attribute_list_append_string (_tmp72_, "Server-Cert", _tmp77_);
2375 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2376 _tmp78_ = attributes;
2377 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2379 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2380 _tmp80_ = id_card_get_trust_anchor (_tmp79_);
2381 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2383 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2384 _tmp82_ = trust_anchor_get_subject (_tmp81_);
2385 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2387 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2388 gnome_keyring_attribute_list_append_string (_tmp78_, "Subject", _tmp83_);
2389 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2390 _tmp84_ = attributes;
2391 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2393 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2394 _tmp86_ = id_card_get_trust_anchor (_tmp85_);
2395 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2397 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2398 _tmp88_ = trust_anchor_get_subject_alt (_tmp87_);
2399 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2401 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2402 gnome_keyring_attribute_list_append_string (_tmp84_, "Subject-Alt", _tmp89_);
2403 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2404 _tmp90_ = attributes;
2405 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2407 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2408 _tmp92_ = id_card_get_trust_anchor (_tmp91_);
2409 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2411 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2412 _tmp94_ = trust_anchor_get_datetime_added (_tmp93_);
2413 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2415 #line 213 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2416 gnome_keyring_attribute_list_append_string (_tmp90_, "TA_DateTime_Added", _tmp95_);
2417 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2419 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2420 _tmp98_ = id_card_get_store_password (_tmp97_);
2421 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2423 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2425 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2427 #line 2428 "moonshot-keyring-store.c"
2429 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2431 #line 2432 "moonshot-keyring-store.c"
2433 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2434 _tmp100_ = attributes;
2435 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2436 gnome_keyring_attribute_list_append_string (_tmp100_, "StorePassword", _tmp96_);
2437 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2439 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2440 _tmp103_ = id_card_get_store_password (_tmp102_);
2441 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2442 _tmp104_ = _tmp103_;
2443 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2445 #line 2446 "moonshot-keyring-store.c"
2446 IdCard* _tmp105_ = NULL;
2447 const gchar* _tmp106_ = NULL;
2448 const gchar* _tmp107_ = NULL;
2449 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2451 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2452 _tmp106_ = id_card_get_password (_tmp105_);
2453 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2454 _tmp107_ = _tmp106_;
2455 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2456 _tmp101_ = _tmp107_;
2457 #line 2458 "moonshot-keyring-store.c"
2459 #line 218 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2461 #line 2462 "moonshot-keyring-store.c"
2463 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2465 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2466 _tmp109_ = id_card_get_display_name (_tmp108_);
2467 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2468 _tmp110_ = _tmp109_;
2469 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2470 _tmp111_ = attributes;
2471 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2472 _tmp113_ = gnome_keyring_item_create_sync (NULL, KEYRING_STORE_item_type, _tmp110_, _tmp111_, _tmp101_, TRUE, &_tmp112_);
2473 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2475 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2476 _result_ = _tmp113_;
2477 #line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2478 _tmp114_ = _result_;
2479 #line 220 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2480 if (_tmp114_ != GNOME_KEYRING_RESULT_OK) {
2481 #line 2482 "moonshot-keyring-store.c"
2482 FILE* _tmp115_ = NULL;
2483 GnomeKeyringResult _tmp116_ = 0;
2484 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2486 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2487 _tmp116_ = _result_;
2488 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2489 fprintf (_tmp115_, "GnomeKeyring.item_create_sync() failed. result: %d", (gint) _tmp116_);
2490 #line 2491 "moonshot-keyring-store.c"
2492 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2493 _gnome_keyring_attribute_list_free0 (attributes);
2494 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2495 _g_free0 (services);
2496 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2497 _g_free0 (always_conf);
2498 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2499 _g_free0 (patterns);
2500 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2501 rules_always_conf = (_vala_array_free (rules_always_conf, rules_always_conf_length1, (GDestroyNotify) g_free), NULL);
2502 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2503 rules_patterns = (_vala_array_free (rules_patterns, rules_patterns_length1, (GDestroyNotify) g_free), NULL);
2504 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2505 rules = (_vala_Rule_array_free (rules, rules_length1), NULL);
2506 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2507 _g_object_unref0 (id_card);
2508 #line 2509 "moonshot-keyring-store.c"
2510 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2511 _g_object_unref0 (_id_card_list);
2512 #line 2513 "moonshot-keyring-store.c"
2514 #line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2515 keyring_store_load_id_cards (self);
2516 #line 2517 "moonshot-keyring-store.c"
2520 KeyringStore* keyring_store_construct (GType object_type) {
2521 KeyringStore * self = NULL;
2522 GeeLinkedList* _tmp0_ = NULL;
2523 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2524 self = (KeyringStore*) g_object_new (object_type, NULL);
2525 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2526 _tmp0_ = gee_linked_list_new (TYPE_ID_CARD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
2527 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2528 _g_object_unref0 (self->priv->id_card_list);
2529 #line 228 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2530 self->priv->id_card_list = _tmp0_;
2531 #line 229 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2532 keyring_store_load_id_cards (self);
2533 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2535 #line 2536 "moonshot-keyring-store.c"
2539 KeyringStore* keyring_store_new (void) {
2540 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2541 return keyring_store_construct (TYPE_KEYRING_STORE);
2542 #line 2543 "moonshot-keyring-store.c"
2546 static void keyring_store_class_init (KeyringStoreClass * klass) {
2547 MoonshotLogger* _tmp0_ = NULL;
2548 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2549 keyring_store_parent_class = g_type_class_peek_parent (klass);
2550 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2551 g_type_class_add_private (klass, sizeof (KeyringStorePrivate));
2552 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2553 G_OBJECT_CLASS (klass)->finalize = keyring_store_finalize;
2554 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2555 _tmp0_ = get_logger ("KeyringStore");
2556 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2557 keyring_store_logger = _tmp0_;
2558 #line 2559 "moonshot-keyring-store.c"
2562 static void keyring_store_iidentity_card_store_interface_init (IIdentityCardStoreIface * iface) {
2563 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2564 keyring_store_iidentity_card_store_parent_iface = g_type_interface_peek_parent (iface);
2565 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2566 iface->add_card = (void (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_add_card;
2567 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2568 iface->update_card = (IdCard* (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_update_card;
2569 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2570 iface->remove_card = (gboolean (*)(IIdentityCardStore*, IdCard*)) keyring_store_real_remove_card;
2571 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2572 iface->get_store_type = (IIdentityCardStoreStoreType (*)(IIdentityCardStore*)) keyring_store_real_get_store_type;
2573 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2574 iface->get_card_list = (GeeLinkedList* (*)(IIdentityCardStore*)) keyring_store_real_get_card_list;
2575 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2576 iface->store_id_cards = (void (*)(IIdentityCardStore*)) keyring_store_real_store_id_cards;
2577 #line 2578 "moonshot-keyring-store.c"
2581 static void keyring_store_instance_init (KeyringStore * self) {
2582 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2583 self->priv = KEYRING_STORE_GET_PRIVATE (self);
2584 #line 2585 "moonshot-keyring-store.c"
2588 static void keyring_store_finalize (GObject* obj) {
2589 KeyringStore * self;
2590 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2591 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEYRING_STORE, KeyringStore);
2592 #line 38 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2593 _g_object_unref0 (self->priv->id_card_list);
2594 #line 35 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-keyring-store.vala"
2595 G_OBJECT_CLASS (keyring_store_parent_class)->finalize (obj);
2596 #line 2597 "moonshot-keyring-store.c"
2600 GType keyring_store_get_type (void) {
2601 static volatile gsize keyring_store_type_id__volatile = 0;
2602 if (g_once_init_enter (&keyring_store_type_id__volatile)) {
2603 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 };
2604 static const GInterfaceInfo iidentity_card_store_info = { (GInterfaceInitFunc) keyring_store_iidentity_card_store_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
2605 GType keyring_store_type_id;
2606 keyring_store_type_id = g_type_register_static (G_TYPE_OBJECT, "KeyringStore", &g_define_type_info, 0);
2607 g_type_add_interface_static (keyring_store_type_id, TYPE_IIDENTITY_CARD_STORE, &iidentity_card_store_info);
2608 g_once_init_leave (&keyring_store_type_id__volatile, keyring_store_type_id);
2610 return keyring_store_type_id__volatile;
2614 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2615 if ((array != NULL) && (destroy_func != NULL)) {
2617 for (i = 0; i < array_length; i = i + 1) {
2618 if (((gpointer*) array)[i] != NULL) {
2619 destroy_func (((gpointer*) array)[i]);
2626 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
2627 _vala_array_destroy (array, array_length, destroy_func);
2632 static gint _vala_array_length (gpointer array) {
2636 while (((gpointer*) array)[length]) {