1 /* moonshot-trust-anchor-dialog.c generated by valac 0.34.9, the Vala compiler
2 * generated from moonshot-trust-anchor-dialog.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>
42 #include <glib/gi18n-lib.h>
47 #define TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST (trust_anchor_confirmation_request_get_type ())
48 #define TRUST_ANCHOR_CONFIRMATION_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST, TrustAnchorConfirmationRequest))
49 #define TRUST_ANCHOR_CONFIRMATION_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST, TrustAnchorConfirmationRequestClass))
50 #define IS_TRUST_ANCHOR_CONFIRMATION_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST))
51 #define IS_TRUST_ANCHOR_CONFIRMATION_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST))
52 #define TRUST_ANCHOR_CONFIRMATION_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST, TrustAnchorConfirmationRequestClass))
54 typedef struct _TrustAnchorConfirmationRequest TrustAnchorConfirmationRequest;
55 typedef struct _TrustAnchorConfirmationRequestClass TrustAnchorConfirmationRequestClass;
56 typedef struct _TrustAnchorConfirmationRequestPrivate TrustAnchorConfirmationRequestPrivate;
58 #define TYPE_IDENTITY_MANAGER_APP (identity_manager_app_get_type ())
59 #define IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerApp))
60 #define IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
61 #define IS_IDENTITY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_APP))
62 #define IS_IDENTITY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_APP))
63 #define IDENTITY_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_APP, IdentityManagerAppClass))
65 typedef struct _IdentityManagerApp IdentityManagerApp;
66 typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
68 #define TYPE_MOONSHOT_LOGGER (moonshot_logger_get_type ())
69 #define MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLogger))
70 #define MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
71 #define IS_MOONSHOT_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOONSHOT_LOGGER))
72 #define IS_MOONSHOT_LOGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOONSHOT_LOGGER))
73 #define MOONSHOT_LOGGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOONSHOT_LOGGER, MoonshotLoggerClass))
75 typedef struct _MoonshotLogger MoonshotLogger;
76 typedef struct _MoonshotLoggerClass MoonshotLoggerClass;
77 #define _identity_manager_app_unref0(var) ((var == NULL) ? NULL : (var = (identity_manager_app_unref (var), NULL)))
78 #define _g_free0(var) (var = (g_free (var), NULL))
80 #define TYPE_ID_CARD (id_card_get_type ())
81 #define ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ID_CARD, IdCard))
82 #define ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ID_CARD, IdCardClass))
83 #define IS_ID_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ID_CARD))
84 #define IS_ID_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ID_CARD))
85 #define ID_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ID_CARD, IdCardClass))
87 typedef struct _IdCard IdCard;
88 typedef struct _IdCardClass IdCardClass;
89 typedef struct _IdentityManagerAppPrivate IdentityManagerAppPrivate;
91 #define TYPE_IDENTITY_MANAGER_MODEL (identity_manager_model_get_type ())
92 #define IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModel))
93 #define IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
94 #define IS_IDENTITY_MANAGER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_MODEL))
95 #define IS_IDENTITY_MANAGER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_MODEL))
96 #define IDENTITY_MANAGER_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelClass))
98 typedef struct _IdentityManagerModel IdentityManagerModel;
99 typedef struct _IdentityManagerModelClass IdentityManagerModelClass;
101 #define TYPE_IDENTITY_MANAGER_VIEW (identity_manager_view_get_type ())
102 #define IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerView))
103 #define IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
104 #define IS_IDENTITY_MANAGER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IDENTITY_MANAGER_VIEW))
105 #define IS_IDENTITY_MANAGER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IDENTITY_MANAGER_VIEW))
106 #define IDENTITY_MANAGER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IDENTITY_MANAGER_VIEW, IdentityManagerViewClass))
108 typedef struct _IdentityManagerView IdentityManagerView;
109 typedef struct _IdentityManagerViewClass IdentityManagerViewClass;
110 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
112 #define TYPE_TRUST_ANCHOR (trust_anchor_get_type ())
113 #define TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR, TrustAnchor))
114 #define TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR, TrustAnchorClass))
115 #define IS_TRUST_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR))
116 #define IS_TRUST_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR))
117 #define TRUST_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR, TrustAnchorClass))
119 typedef struct _TrustAnchor TrustAnchor;
120 typedef struct _TrustAnchorClass TrustAnchorClass;
122 #define TRUST_ANCHOR_TYPE_TRUST_ANCHOR_TYPE (trust_anchor_trust_anchor_type_get_type ())
124 #define TYPE_TRUST_ANCHOR_DIALOG (trust_anchor_dialog_get_type ())
125 #define TRUST_ANCHOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRUST_ANCHOR_DIALOG, TrustAnchorDialog))
126 #define TRUST_ANCHOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRUST_ANCHOR_DIALOG, TrustAnchorDialogClass))
127 #define IS_TRUST_ANCHOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRUST_ANCHOR_DIALOG))
128 #define IS_TRUST_ANCHOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRUST_ANCHOR_DIALOG))
129 #define TRUST_ANCHOR_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRUST_ANCHOR_DIALOG, TrustAnchorDialogClass))
131 typedef struct _TrustAnchorDialog TrustAnchorDialog;
132 typedef struct _TrustAnchorDialogClass TrustAnchorDialogClass;
133 typedef struct _TrustAnchorDialogPrivate TrustAnchorDialogPrivate;
135 typedef void (*TrustAnchorConfirmationCallback) (TrustAnchorConfirmationRequest* request, void* user_data);
136 struct _TrustAnchorConfirmationRequest {
137 GObject parent_instance;
138 TrustAnchorConfirmationRequestPrivate * priv;
142 struct _TrustAnchorConfirmationRequestClass {
143 GObjectClass parent_class;
146 struct _TrustAnchorConfirmationRequestPrivate {
147 IdentityManagerApp* parent_app;
151 TrustAnchorConfirmationCallback callback;
152 gpointer callback_target;
153 GDestroyNotify callback_target_destroy_notify;
156 struct _IdentityManagerApp {
157 GTypeInstance parent_instance;
158 volatile int ref_count;
159 IdentityManagerAppPrivate * priv;
160 IdentityManagerModel* model;
161 IdCard* default_id_card;
162 gboolean explicitly_launched;
163 IdentityManagerView* view;
166 struct _IdentityManagerAppClass {
167 GTypeClass parent_class;
168 void (*finalize) (IdentityManagerApp *self);
172 TRUST_ANCHOR_TRUST_ANCHOR_TYPE_EMPTY,
173 TRUST_ANCHOR_TRUST_ANCHOR_TYPE_CA_CERT,
174 TRUST_ANCHOR_TRUST_ANCHOR_TYPE_SERVER_CERT
175 } TrustAnchorTrustAnchorType;
177 struct _TrustAnchorDialog {
178 GtkDialog parent_instance;
179 TrustAnchorDialogPrivate * priv;
183 struct _TrustAnchorDialogClass {
184 GtkDialogClass parent_class;
188 static gpointer trust_anchor_confirmation_request_parent_class = NULL;
189 static MoonshotLogger* trust_anchor_confirmation_request_logger;
190 static MoonshotLogger* trust_anchor_confirmation_request_logger = NULL;
191 static gpointer trust_anchor_dialog_parent_class = NULL;
192 static GdkColor trust_anchor_dialog_white;
193 static GdkColor trust_anchor_dialog_white = {0};
195 GType trust_anchor_confirmation_request_get_type (void) G_GNUC_CONST;
196 gpointer identity_manager_app_ref (gpointer instance);
197 void identity_manager_app_unref (gpointer instance);
198 GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
199 void value_set_identity_manager_app (GValue* value, gpointer v_object);
200 void value_take_identity_manager_app (GValue* value, gpointer v_object);
201 gpointer value_get_identity_manager_app (const GValue* value);
202 GType identity_manager_app_get_type (void) G_GNUC_CONST;
203 #define TRUST_ANCHOR_CONFIRMATION_REQUEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST, TrustAnchorConfirmationRequestPrivate))
205 TRUST_ANCHOR_CONFIRMATION_REQUEST_DUMMY_PROPERTY
207 GType moonshot_logger_get_type (void) G_GNUC_CONST;
208 MoonshotLogger* get_logger (const gchar* name);
209 TrustAnchorConfirmationRequest* trust_anchor_confirmation_request_new (IdentityManagerApp* parent_app, const gchar* userid, const gchar* realm, const gchar* fingerprint);
210 TrustAnchorConfirmationRequest* trust_anchor_confirmation_request_construct (GType object_type, IdentityManagerApp* parent_app, const gchar* userid, const gchar* realm, const gchar* fingerprint);
211 void trust_anchor_confirmation_request_set_callback (TrustAnchorConfirmationRequest* self, TrustAnchorConfirmationCallback cb, void* cb_target, GDestroyNotify cb_target_destroy_notify);
212 gboolean trust_anchor_confirmation_request_execute (TrustAnchorConfirmationRequest* self);
213 GType id_card_get_type (void) G_GNUC_CONST;
214 GType identity_manager_model_get_type (void) G_GNUC_CONST;
215 GType identity_manager_view_get_type (void) G_GNUC_CONST;
216 IdCard* identity_manager_model_find_id_card (IdentityManagerModel* self, const gchar* nai, gboolean force_flat_file_store);
217 gboolean identity_manager_app_get_use_flat_file_store (IdentityManagerApp* self);
218 void moonshot_logger_warn (MoonshotLogger* self, const gchar* message, GError* e);
219 static void trust_anchor_confirmation_request_return_confirmation (TrustAnchorConfirmationRequest* self, gboolean confirmed);
220 GType trust_anchor_get_type (void) G_GNUC_CONST;
221 TrustAnchor* id_card_get_trust_anchor (IdCard* self);
222 gboolean trust_anchor_is_empty (TrustAnchor* self);
223 GType trust_anchor_trust_anchor_type_get_type (void) G_GNUC_CONST;
224 TrustAnchorTrustAnchorType trust_anchor_get_anchor_type (TrustAnchor* self);
225 void moonshot_logger_trace (MoonshotLogger* self, const gchar* message, GError* e);
226 const gchar* trust_anchor_get_server_cert (TrustAnchor* self);
227 gboolean identity_manager_app_get_headless (IdentityManagerApp* self);
228 GType trust_anchor_dialog_get_type (void) G_GNUC_CONST;
229 TrustAnchorDialog* trust_anchor_dialog_new (IdCard* card, const gchar* userid, const gchar* realm, const gchar* fingerprint);
230 TrustAnchorDialog* trust_anchor_dialog_construct (GType object_type, IdCard* card, const gchar* userid, const gchar* realm, const gchar* fingerprint);
231 void trust_anchor_update_server_fingerprint (TrustAnchor* self, const gchar* fingerprint);
232 IdCard* identity_manager_model_update_card (IdentityManagerModel* self, IdCard* card);
233 static gboolean __lambda21_ (TrustAnchorConfirmationRequest* self);
234 static gboolean ___lambda21__gsource_func (gpointer self);
235 static void trust_anchor_confirmation_request_finalize (GObject* obj);
237 TRUST_ANCHOR_DIALOG_DUMMY_PROPERTY
239 void make_color (guint16 red, guint16 green, guint16 blue, GdkColor* result);
240 void set_bg_color (GtkWidget* w);
241 const gchar* id_card_get_issuer (IdCard* self);
242 GtkWidget* make_ta_fingerprint_widget (const gchar* server_cert, const gchar* label_text);
243 static void trust_anchor_dialog_on_response (TrustAnchorDialog* self, GtkDialog* source, gint response_id);
244 static void _trust_anchor_dialog_on_response_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
245 static void trust_anchor_dialog_finalize (GObject* obj);
248 static gpointer _identity_manager_app_ref0 (gpointer self) {
249 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
250 return self ? identity_manager_app_ref (self) : NULL;
251 #line 252 "moonshot-trust-anchor-dialog.c"
255 TrustAnchorConfirmationRequest* trust_anchor_confirmation_request_construct (GType object_type, IdentityManagerApp* parent_app, const gchar* userid, const gchar* realm, const gchar* fingerprint) {
256 TrustAnchorConfirmationRequest * self = NULL;
257 IdentityManagerApp* _tmp0_ = NULL;
258 IdentityManagerApp* _tmp1_ = NULL;
259 const gchar* _tmp2_ = NULL;
260 gchar* _tmp3_ = NULL;
261 const gchar* _tmp4_ = NULL;
262 gchar* _tmp5_ = NULL;
263 const gchar* _tmp6_ = NULL;
264 gchar* _tmp7_ = NULL;
265 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
266 g_return_val_if_fail (parent_app != NULL, NULL);
267 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
268 g_return_val_if_fail (userid != NULL, NULL);
269 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
270 g_return_val_if_fail (realm != NULL, NULL);
271 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
272 g_return_val_if_fail (fingerprint != NULL, NULL);
273 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
274 self = (TrustAnchorConfirmationRequest*) g_object_new (object_type, NULL);
275 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
277 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
278 _tmp1_ = _identity_manager_app_ref0 (_tmp0_);
279 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
280 _identity_manager_app_unref0 (self->priv->parent_app);
281 #line 52 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
282 self->priv->parent_app = _tmp1_;
283 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
285 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
286 _tmp3_ = g_strdup (_tmp2_);
287 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
288 _g_free0 (self->priv->userid);
289 #line 53 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
290 self->priv->userid = _tmp3_;
291 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
293 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
294 _tmp5_ = g_strdup (_tmp4_);
295 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
296 _g_free0 (self->priv->realm);
297 #line 54 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
298 self->priv->realm = _tmp5_;
299 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
300 _tmp6_ = fingerprint;
301 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
302 _tmp7_ = g_strdup (_tmp6_);
303 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
304 _g_free0 (self->priv->fingerprint);
305 #line 55 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
306 self->priv->fingerprint = _tmp7_;
307 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
309 #line 310 "moonshot-trust-anchor-dialog.c"
313 TrustAnchorConfirmationRequest* trust_anchor_confirmation_request_new (IdentityManagerApp* parent_app, const gchar* userid, const gchar* realm, const gchar* fingerprint) {
314 #line 47 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
315 return trust_anchor_confirmation_request_construct (TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST, parent_app, userid, realm, fingerprint);
316 #line 317 "moonshot-trust-anchor-dialog.c"
320 void trust_anchor_confirmation_request_set_callback (TrustAnchorConfirmationRequest* self, TrustAnchorConfirmationCallback cb, void* cb_target, GDestroyNotify cb_target_destroy_notify) {
321 TrustAnchorConfirmationCallback _tmp0_ = NULL;
322 void* _tmp0__target = NULL;
323 GDestroyNotify _tmp0__target_destroy_notify = NULL;
324 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
325 g_return_if_fail (self != NULL);
326 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
328 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
329 _tmp0__target = cb_target;
330 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
331 _tmp0__target_destroy_notify = cb_target_destroy_notify;
332 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
334 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
336 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
337 cb_target_destroy_notify = NULL;
338 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
339 (self->priv->callback_target_destroy_notify == NULL) ? NULL : (self->priv->callback_target_destroy_notify (self->priv->callback_target), NULL);
340 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
341 self->priv->callback = NULL;
342 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
343 self->priv->callback_target = NULL;
344 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
345 self->priv->callback_target_destroy_notify = NULL;
346 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
347 self->priv->callback = _tmp0_;
348 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
349 self->priv->callback_target = _tmp0__target;
350 #line 61 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
351 self->priv->callback_target_destroy_notify = _tmp0__target_destroy_notify;
352 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
353 (cb_target_destroy_notify == NULL) ? NULL : (cb_target_destroy_notify (cb_target), NULL);
354 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
356 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
358 #line 58 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
359 cb_target_destroy_notify = NULL;
360 #line 361 "moonshot-trust-anchor-dialog.c"
364 static const gchar* string_to_string (const gchar* self) {
365 const gchar* result = NULL;
366 #line 1420 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
367 g_return_val_if_fail (self != NULL, NULL);
368 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
370 #line 1421 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
372 #line 373 "moonshot-trust-anchor-dialog.c"
376 gboolean trust_anchor_confirmation_request_execute (TrustAnchorConfirmationRequest* self) {
377 gboolean result = FALSE;
379 const gchar* _tmp0_ = NULL;
380 gchar* _tmp1_ = NULL;
381 gchar* _tmp2_ = NULL;
382 const gchar* _tmp3_ = NULL;
383 gchar* _tmp4_ = NULL;
384 gchar* _tmp5_ = NULL;
386 IdentityManagerApp* _tmp6_ = NULL;
387 IdentityManagerModel* _tmp7_ = NULL;
388 const gchar* _tmp8_ = NULL;
389 IdentityManagerApp* _tmp9_ = NULL;
390 gboolean _tmp10_ = FALSE;
391 gboolean _tmp11_ = FALSE;
392 IdCard* _tmp12_ = NULL;
393 IdCard* _tmp13_ = NULL;
394 gboolean _tmp19_ = FALSE;
395 IdCard* _tmp20_ = NULL;
396 TrustAnchor* _tmp21_ = NULL;
397 TrustAnchor* _tmp22_ = NULL;
398 gboolean _tmp23_ = FALSE;
399 MoonshotLogger* _tmp33_ = NULL;
400 IdCard* _tmp34_ = NULL;
401 TrustAnchor* _tmp35_ = NULL;
402 TrustAnchor* _tmp36_ = NULL;
403 const gchar* _tmp37_ = NULL;
404 const gchar* _tmp38_ = NULL;
405 const gchar* _tmp39_ = NULL;
406 gchar* _tmp40_ = NULL;
407 gchar* _tmp41_ = NULL;
408 IdCard* _tmp42_ = NULL;
409 TrustAnchor* _tmp43_ = NULL;
410 TrustAnchor* _tmp44_ = NULL;
411 const gchar* _tmp45_ = NULL;
412 const gchar* _tmp46_ = NULL;
413 const gchar* _tmp47_ = NULL;
414 IdentityManagerApp* _tmp53_ = NULL;
415 gboolean _tmp54_ = FALSE;
416 gboolean _tmp55_ = FALSE;
417 TrustAnchorDialog* dialog = NULL;
418 IdCard* _tmp57_ = NULL;
419 const gchar* _tmp58_ = NULL;
420 const gchar* _tmp59_ = NULL;
421 const gchar* _tmp60_ = NULL;
422 TrustAnchorDialog* _tmp61_ = NULL;
424 TrustAnchorDialog* _tmp62_ = NULL;
426 TrustAnchorDialog* _tmp64_ = NULL;
427 gboolean is_confirmed = FALSE;
429 gboolean _tmp66_ = FALSE;
430 gboolean _tmp77_ = FALSE;
431 #line 67 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
432 g_return_val_if_fail (self != NULL, FALSE);
433 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
434 _tmp0_ = self->priv->userid;
435 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
436 _tmp1_ = g_strconcat (_tmp0_, "@", NULL);
437 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
439 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
440 _tmp3_ = self->priv->realm;
441 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
442 _tmp4_ = g_strconcat (_tmp2_, _tmp3_, NULL);
443 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
445 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
447 #line 69 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
449 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
450 _tmp6_ = self->priv->parent_app;
451 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
452 _tmp7_ = _tmp6_->model;
453 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
455 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
456 _tmp9_ = self->priv->parent_app;
457 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
458 _tmp10_ = identity_manager_app_get_use_flat_file_store (_tmp9_);
459 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
461 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
462 _tmp12_ = identity_manager_model_find_id_card (_tmp7_, _tmp8_, _tmp11_);
463 #line 70 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
465 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
467 #line 71 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
468 if (_tmp13_ == NULL) {
469 #line 470 "moonshot-trust-anchor-dialog.c"
470 MoonshotLogger* _tmp14_ = NULL;
471 const gchar* _tmp15_ = NULL;
472 const gchar* _tmp16_ = NULL;
473 gchar* _tmp17_ = NULL;
474 gchar* _tmp18_ = NULL;
475 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
476 _tmp14_ = trust_anchor_confirmation_request_logger;
477 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
479 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
480 _tmp16_ = string_to_string (_tmp15_);
481 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
482 _tmp17_ = g_strconcat ("execute: Could not find ID card for NAI ", _tmp16_, "; returning false.", NULL);
483 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
485 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
486 moonshot_logger_warn (_tmp14_, _tmp18_, NULL);
487 #line 72 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
489 #line 73 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
490 trust_anchor_confirmation_request_return_confirmation (self, FALSE);
491 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
493 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
494 _g_object_unref0 (card);
495 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
497 #line 74 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
499 #line 500 "moonshot-trust-anchor-dialog.c"
501 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
503 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
504 _tmp21_ = id_card_get_trust_anchor (_tmp20_);
505 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
507 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
508 _tmp23_ = trust_anchor_is_empty (_tmp22_);
509 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
511 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
513 #line 514 "moonshot-trust-anchor-dialog.c"
515 IdCard* _tmp24_ = NULL;
516 TrustAnchor* _tmp25_ = NULL;
517 TrustAnchor* _tmp26_ = NULL;
518 TrustAnchorTrustAnchorType _tmp27_ = 0;
519 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
521 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
522 _tmp25_ = id_card_get_trust_anchor (_tmp24_);
523 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
525 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
526 _tmp27_ = trust_anchor_get_anchor_type (_tmp26_);
527 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
528 _tmp19_ = _tmp27_ == TRUST_ANCHOR_TRUST_ANCHOR_TYPE_SERVER_CERT;
529 #line 530 "moonshot-trust-anchor-dialog.c"
531 #line 77 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
533 #line 534 "moonshot-trust-anchor-dialog.c"
534 MoonshotLogger* _tmp28_ = NULL;
535 const gchar* _tmp29_ = NULL;
536 const gchar* _tmp30_ = NULL;
537 gchar* _tmp31_ = NULL;
538 gchar* _tmp32_ = NULL;
539 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
540 _tmp28_ = trust_anchor_confirmation_request_logger;
541 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
543 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
544 _tmp30_ = string_to_string (_tmp29_);
545 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
546 _tmp31_ = g_strconcat ("execute: Trust anchor type for NAI ", _tmp30_, " is not empty or SERVER_CERT; returning true.", NULL);
547 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
549 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
550 moonshot_logger_warn (_tmp28_, _tmp32_, NULL);
551 #line 78 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
553 #line 79 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
554 trust_anchor_confirmation_request_return_confirmation (self, TRUE);
555 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
557 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
558 _g_object_unref0 (card);
559 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
561 #line 80 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
563 #line 564 "moonshot-trust-anchor-dialog.c"
565 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
566 _tmp33_ = trust_anchor_confirmation_request_logger;
567 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
569 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
570 _tmp35_ = id_card_get_trust_anchor (_tmp34_);
571 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
573 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
574 _tmp37_ = trust_anchor_get_server_cert (_tmp36_);
575 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
577 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
578 _tmp39_ = self->priv->fingerprint;
579 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
580 _tmp40_ = g_strdup_printf ("execute: expected cert='%s'; fingerprint='%s'", _tmp38_, _tmp39_);
581 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
583 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
584 moonshot_logger_trace (_tmp33_, _tmp41_, NULL);
585 #line 83 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
587 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
589 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
590 _tmp43_ = id_card_get_trust_anchor (_tmp42_);
591 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
593 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
594 _tmp45_ = trust_anchor_get_server_cert (_tmp44_);
595 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
597 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
598 _tmp47_ = self->priv->fingerprint;
599 #line 84 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
600 if (g_strcmp0 (_tmp46_, _tmp47_) == 0) {
601 #line 602 "moonshot-trust-anchor-dialog.c"
602 MoonshotLogger* _tmp48_ = NULL;
603 const gchar* _tmp49_ = NULL;
604 const gchar* _tmp50_ = NULL;
605 gchar* _tmp51_ = NULL;
606 gchar* _tmp52_ = NULL;
607 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
608 _tmp48_ = trust_anchor_confirmation_request_logger;
609 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
611 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
612 _tmp50_ = string_to_string (_tmp49_);
613 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
614 _tmp51_ = g_strconcat ("execute: Fingerprint for ", _tmp50_, " matches stored value; returning true.", NULL);
615 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
617 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
618 moonshot_logger_trace (_tmp48_, _tmp52_, NULL);
619 #line 85 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
621 #line 86 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
622 trust_anchor_confirmation_request_return_confirmation (self, TRUE);
623 #line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
625 #line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
626 _g_object_unref0 (card);
627 #line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
629 #line 87 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
631 #line 632 "moonshot-trust-anchor-dialog.c"
633 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
634 _tmp53_ = self->priv->parent_app;
635 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
636 _tmp54_ = identity_manager_app_get_headless (_tmp53_);
637 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
639 #line 90 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
641 #line 642 "moonshot-trust-anchor-dialog.c"
642 MoonshotLogger* _tmp56_ = NULL;
643 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
644 _tmp56_ = trust_anchor_confirmation_request_logger;
645 #line 91 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
646 moonshot_logger_trace (_tmp56_, "execute: Running in headless mode; returning false.", NULL);
647 #line 92 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
648 trust_anchor_confirmation_request_return_confirmation (self, FALSE);
649 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
651 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
652 _g_object_unref0 (card);
653 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
655 #line 93 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
657 #line 658 "moonshot-trust-anchor-dialog.c"
659 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
661 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
662 _tmp58_ = self->priv->userid;
663 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
664 _tmp59_ = self->priv->realm;
665 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
666 _tmp60_ = self->priv->fingerprint;
667 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
668 _tmp61_ = trust_anchor_dialog_new (_tmp57_, _tmp58_, _tmp59_, _tmp60_);
669 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
670 g_object_ref_sink (_tmp61_);
671 #line 96 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
673 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
675 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
676 _tmp63_ = gtk_dialog_run ((GtkDialog*) _tmp62_);
677 #line 97 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
679 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
681 #line 98 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
682 gtk_object_destroy ((GtkObject*) _tmp64_);
683 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
685 #line 99 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
686 is_confirmed = _tmp65_ == ((gint) GTK_RESPONSE_OK);
687 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
688 _tmp66_ = is_confirmed;
689 #line 101 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
691 #line 692 "moonshot-trust-anchor-dialog.c"
692 MoonshotLogger* _tmp67_ = NULL;
693 IdCard* _tmp68_ = NULL;
694 TrustAnchor* _tmp69_ = NULL;
695 TrustAnchor* _tmp70_ = NULL;
696 const gchar* _tmp71_ = NULL;
697 IdentityManagerApp* _tmp72_ = NULL;
698 IdentityManagerModel* _tmp73_ = NULL;
699 IdCard* _tmp74_ = NULL;
700 IdCard* _tmp75_ = NULL;
701 IdCard* _tmp76_ = NULL;
702 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
703 _tmp67_ = trust_anchor_confirmation_request_logger;
704 #line 102 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
705 moonshot_logger_trace (_tmp67_, "execute: Fingerprint confirmed; updating stored value.", NULL);
706 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
708 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
709 _tmp69_ = id_card_get_trust_anchor (_tmp68_);
710 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
712 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
713 _tmp71_ = self->priv->fingerprint;
714 #line 104 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
715 trust_anchor_update_server_fingerprint (_tmp70_, _tmp71_);
716 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
717 _tmp72_ = self->priv->parent_app;
718 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
719 _tmp73_ = _tmp72_->model;
720 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
722 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
723 _tmp75_ = identity_manager_model_update_card (_tmp73_, _tmp74_);
724 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
726 #line 105 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
727 _g_object_unref0 (_tmp76_);
728 #line 729 "moonshot-trust-anchor-dialog.c"
730 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
731 _tmp77_ = is_confirmed;
732 #line 108 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
733 trust_anchor_confirmation_request_return_confirmation (self, _tmp77_);
734 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
736 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
737 _g_object_unref0 (dialog);
738 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
739 _g_object_unref0 (card);
740 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
742 #line 113 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
744 #line 745 "moonshot-trust-anchor-dialog.c"
748 static gchar* bool_to_string (gboolean self) {
749 gchar* result = NULL;
750 #line 37 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
752 #line 753 "moonshot-trust-anchor-dialog.c"
753 gchar* _tmp0_ = NULL;
754 #line 38 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
755 _tmp0_ = g_strdup ("true");
756 #line 38 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
758 #line 38 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
760 #line 761 "moonshot-trust-anchor-dialog.c"
762 gchar* _tmp1_ = NULL;
763 #line 40 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
764 _tmp1_ = g_strdup ("false");
765 #line 40 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
767 #line 40 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
769 #line 770 "moonshot-trust-anchor-dialog.c"
774 static gboolean __lambda21_ (TrustAnchorConfirmationRequest* self) {
775 gboolean result = FALSE;
776 MoonshotLogger* _tmp0_ = NULL;
777 TrustAnchorConfirmationCallback _tmp1_ = NULL;
778 void* _tmp1__target = NULL;
779 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
780 _tmp0_ = trust_anchor_confirmation_request_logger;
781 #line 126 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
782 moonshot_logger_trace (_tmp0_, "return_confirmation[Idle handler]: invoking callback", NULL);
783 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
784 _tmp1_ = self->priv->callback;
785 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
786 _tmp1__target = self->priv->callback_target;
787 #line 127 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
788 _tmp1_ (self, _tmp1__target);
789 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
791 #line 128 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
793 #line 794 "moonshot-trust-anchor-dialog.c"
797 static gboolean ___lambda21__gsource_func (gpointer self) {
799 result = __lambda21_ ((TrustAnchorConfirmationRequest*) self);
800 #line 124 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
802 #line 803 "moonshot-trust-anchor-dialog.c"
806 static void trust_anchor_confirmation_request_return_confirmation (TrustAnchorConfirmationRequest* self, gboolean confirmed) {
807 TrustAnchorConfirmationCallback _tmp0_ = NULL;
808 void* _tmp0__target = NULL;
809 gboolean _tmp1_ = FALSE;
810 MoonshotLogger* _tmp2_ = NULL;
811 gboolean _tmp3_ = FALSE;
812 gchar* _tmp4_ = NULL;
813 gchar* _tmp5_ = NULL;
814 gchar* _tmp6_ = NULL;
815 gchar* _tmp7_ = NULL;
816 #line 116 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
817 g_return_if_fail (self != NULL);
818 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
819 _tmp0_ = self->priv->callback;
820 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
821 _tmp0__target = self->priv->callback_target;
822 #line 117 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
823 g_return_if_fail (_tmp0_ != NULL);
824 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
826 #line 119 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
827 self->confirmed = _tmp1_;
828 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
829 _tmp2_ = trust_anchor_confirmation_request_logger;
830 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
832 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
833 _tmp4_ = bool_to_string (_tmp3_);
834 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
836 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
837 _tmp6_ = g_strconcat ("return_confirmation: confirmed=", _tmp5_, NULL);
838 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
840 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
841 moonshot_logger_trace (_tmp2_, _tmp7_, NULL);
842 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
844 #line 120 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
846 #line 124 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
847 g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda21__gsource_func, g_object_ref (self), g_object_unref);
848 #line 849 "moonshot-trust-anchor-dialog.c"
852 static void trust_anchor_confirmation_request_class_init (TrustAnchorConfirmationRequestClass * klass) {
853 MoonshotLogger* _tmp0_ = NULL;
854 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
855 trust_anchor_confirmation_request_parent_class = g_type_class_peek_parent (klass);
856 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
857 g_type_class_add_private (klass, sizeof (TrustAnchorConfirmationRequestPrivate));
858 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
859 G_OBJECT_CLASS (klass)->finalize = trust_anchor_confirmation_request_finalize;
860 #line 37 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
861 _tmp0_ = get_logger ("TrustAnchorConfirmationRequest");
862 #line 37 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
863 trust_anchor_confirmation_request_logger = _tmp0_;
864 #line 865 "moonshot-trust-anchor-dialog.c"
868 static void trust_anchor_confirmation_request_instance_init (TrustAnchorConfirmationRequest * self) {
869 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
870 self->priv = TRUST_ANCHOR_CONFIRMATION_REQUEST_GET_PRIVATE (self);
871 #line 43 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
872 self->confirmed = FALSE;
873 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
874 self->priv->callback = NULL;
875 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
876 self->priv->callback_target = self;
877 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
878 self->priv->callback_target_destroy_notify = NULL;
879 #line 880 "moonshot-trust-anchor-dialog.c"
883 static void trust_anchor_confirmation_request_finalize (GObject* obj) {
884 TrustAnchorConfirmationRequest * self;
885 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
886 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRUST_ANCHOR_CONFIRMATION_REQUEST, TrustAnchorConfirmationRequest);
887 #line 39 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
888 _identity_manager_app_unref0 (self->priv->parent_app);
889 #line 40 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
890 _g_free0 (self->priv->userid);
891 #line 41 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
892 _g_free0 (self->priv->realm);
893 #line 42 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
894 _g_free0 (self->priv->fingerprint);
895 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
896 (self->priv->callback_target_destroy_notify == NULL) ? NULL : (self->priv->callback_target_destroy_notify (self->priv->callback_target), NULL);
897 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
898 self->priv->callback = NULL;
899 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
900 self->priv->callback_target = NULL;
901 #line 45 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
902 self->priv->callback_target_destroy_notify = NULL;
903 #line 36 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
904 G_OBJECT_CLASS (trust_anchor_confirmation_request_parent_class)->finalize (obj);
905 #line 906 "moonshot-trust-anchor-dialog.c"
909 GType trust_anchor_confirmation_request_get_type (void) {
910 static volatile gsize trust_anchor_confirmation_request_type_id__volatile = 0;
911 if (g_once_init_enter (&trust_anchor_confirmation_request_type_id__volatile)) {
912 static const GTypeInfo g_define_type_info = { sizeof (TrustAnchorConfirmationRequestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trust_anchor_confirmation_request_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrustAnchorConfirmationRequest), 0, (GInstanceInitFunc) trust_anchor_confirmation_request_instance_init, NULL };
913 GType trust_anchor_confirmation_request_type_id;
914 trust_anchor_confirmation_request_type_id = g_type_register_static (G_TYPE_OBJECT, "TrustAnchorConfirmationRequest", &g_define_type_info, 0);
915 g_once_init_leave (&trust_anchor_confirmation_request_type_id__volatile, trust_anchor_confirmation_request_type_id);
917 return trust_anchor_confirmation_request_type_id__volatile;
921 static gpointer _g_object_ref0 (gpointer self) {
922 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
923 return self ? g_object_ref (self) : NULL;
924 #line 925 "moonshot-trust-anchor-dialog.c"
928 static void _trust_anchor_dialog_on_response_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
929 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
930 trust_anchor_dialog_on_response ((TrustAnchorDialog*) self, _sender, response_id);
931 #line 932 "moonshot-trust-anchor-dialog.c"
935 TrustAnchorDialog* trust_anchor_dialog_construct (GType object_type, IdCard* card, const gchar* userid, const gchar* realm, const gchar* fingerprint) {
936 TrustAnchorDialog * self = NULL;
937 gchar* server_ta_label_text = NULL;
938 const gchar* _tmp0_ = NULL;
939 gchar* _tmp1_ = NULL;
940 const gchar* _tmp2_ = NULL;
941 const gchar* _tmp3_ = NULL;
942 const gchar* _tmp4_ = NULL;
943 GtkWidget* content_area = NULL;
944 GtkWidget* _tmp5_ = NULL;
945 GtkWidget* _tmp6_ = NULL;
946 GtkWidget* _tmp7_ = NULL;
947 GtkWidget* _tmp8_ = NULL;
948 GtkLabel* dialog_label = NULL;
949 GtkLabel* _tmp9_ = NULL;
950 GtkLabel* _tmp10_ = NULL;
951 gchar* label_markup = NULL;
952 IdCard* _tmp11_ = NULL;
953 TrustAnchor* _tmp12_ = NULL;
954 TrustAnchor* _tmp13_ = NULL;
955 const gchar* _tmp14_ = NULL;
956 const gchar* _tmp15_ = NULL;
957 GtkLabel* _tmp35_ = NULL;
958 const gchar* _tmp36_ = NULL;
959 GtkLabel* _tmp37_ = NULL;
960 GtkLabel* _tmp38_ = NULL;
961 GtkLabel* user_label = NULL;
962 const gchar* _tmp39_ = NULL;
963 const gchar* _tmp40_ = NULL;
964 gchar* _tmp41_ = NULL;
965 gchar* _tmp42_ = NULL;
966 GtkLabel* _tmp43_ = NULL;
967 GtkLabel* _tmp44_ = NULL;
968 GtkLabel* realm_label = NULL;
969 const gchar* _tmp45_ = NULL;
970 const gchar* _tmp46_ = NULL;
971 gchar* _tmp47_ = NULL;
972 gchar* _tmp48_ = NULL;
973 GtkLabel* _tmp49_ = NULL;
974 GtkLabel* _tmp50_ = NULL;
975 gchar* confirm_text = NULL;
976 const gchar* _tmp51_ = NULL;
977 const gchar* _tmp52_ = NULL;
978 gchar* _tmp53_ = NULL;
979 gchar* _tmp54_ = NULL;
980 const gchar* _tmp55_ = NULL;
981 gchar* _tmp56_ = NULL;
982 gchar* _tmp57_ = NULL;
983 GtkLabel* confirm_label = NULL;
984 GtkLabel* _tmp58_ = NULL;
985 GtkWidget* trust_anchor_display = NULL;
986 const gchar* _tmp59_ = NULL;
987 const gchar* _tmp60_ = NULL;
988 GtkWidget* _tmp61_ = NULL;
989 GtkVBox* vbox = NULL;
990 GtkVBox* _tmp62_ = NULL;
991 GtkLabel* _tmp63_ = NULL;
992 GtkWidget* _tmp64_ = NULL;
993 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
994 g_return_val_if_fail (card != NULL, NULL);
995 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
996 g_return_val_if_fail (userid != NULL, NULL);
997 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
998 g_return_val_if_fail (realm != NULL, NULL);
999 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1000 g_return_val_if_fail (fingerprint != NULL, NULL);
1001 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1002 self = (TrustAnchorDialog*) g_object_new (object_type, NULL);
1003 #line 147 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1004 _tmp0_ = _ ("Server's trust anchor certificate (SHA-256 fingerprint):");
1005 #line 147 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1006 _tmp1_ = g_strdup (_tmp0_);
1007 #line 147 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1008 server_ta_label_text = _tmp1_;
1009 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1010 _tmp2_ = _ ("Trust Anchor");
1011 #line 149 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1012 gtk_window_set_title ((GtkWindow*) self, _tmp2_);
1013 #line 150 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1014 gtk_window_set_modal ((GtkWindow*) self, TRUE);
1015 #line 152 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1016 set_bg_color ((GtkWidget*) self);
1017 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1018 _tmp3_ = _ ("Cancel");
1019 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1020 _tmp4_ = _ ("Confirm");
1021 #line 154 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1022 gtk_dialog_add_buttons ((GtkDialog*) self, _tmp3_, GTK_RESPONSE_CANCEL, _tmp4_, GTK_RESPONSE_OK, NULL);
1023 #line 157 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1024 gtk_dialog_set_default_response ((GtkDialog*) self, (gint) GTK_RESPONSE_CANCEL);
1025 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1026 _tmp5_ = gtk_dialog_get_content_area ((GtkDialog*) self);
1027 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1028 _tmp6_ = _g_object_ref0 (_tmp5_);
1029 #line 159 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1030 content_area = _tmp6_;
1031 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1032 _tmp7_ = content_area;
1033 #line 160 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1034 gtk_box_set_spacing (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GTK_TYPE_BOX, GtkBox), 12);
1035 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1036 _tmp8_ = content_area;
1037 #line 161 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1038 set_bg_color (_tmp8_);
1039 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1040 _tmp9_ = (GtkLabel*) gtk_label_new ("");
1041 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1042 g_object_ref_sink (_tmp9_);
1043 #line 163 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1044 dialog_label = _tmp9_;
1045 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1046 _tmp10_ = dialog_label;
1047 #line 164 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1048 gtk_misc_set_alignment ((GtkMisc*) _tmp10_, (gfloat) 0, (gfloat) 0);
1049 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1051 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1052 _tmp12_ = id_card_get_trust_anchor (_tmp11_);
1053 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1055 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1056 _tmp14_ = trust_anchor_get_server_cert (_tmp13_);
1057 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1059 #line 167 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1060 if (g_strcmp0 (_tmp15_, "") == 0) {
1061 #line 1062 "moonshot-trust-anchor-dialog.c"
1062 const gchar* _tmp16_ = NULL;
1063 gchar* _tmp17_ = NULL;
1064 gchar* _tmp18_ = NULL;
1065 gchar* _tmp19_ = NULL;
1066 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1067 _tmp16_ = _ ("You are using this identity for the first time with the following trus" \
1069 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1070 _tmp17_ = g_strconcat ("<span font-weight='heavy'>", _tmp16_, NULL);
1071 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1073 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1074 _tmp19_ = g_strconcat (_tmp18_, "</span>", NULL);
1075 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1076 _g_free0 (label_markup);
1077 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1078 label_markup = _tmp19_;
1079 #line 168 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1081 #line 1081 "moonshot-trust-anchor-dialog.c"
1083 const gchar* _tmp20_ = NULL;
1084 IdCard* _tmp21_ = NULL;
1085 const gchar* _tmp22_ = NULL;
1086 const gchar* _tmp23_ = NULL;
1087 gchar* _tmp24_ = NULL;
1088 gchar* _tmp25_ = NULL;
1089 gchar* _tmp26_ = NULL;
1090 gchar* _tmp27_ = NULL;
1091 const gchar* _tmp28_ = NULL;
1092 gchar* _tmp29_ = NULL;
1093 gchar* _tmp30_ = NULL;
1094 const gchar* _tmp31_ = NULL;
1095 gchar* _tmp32_ = NULL;
1096 gchar* _tmp33_ = NULL;
1097 gchar* _tmp34_ = NULL;
1098 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1099 _tmp20_ = _ ("WARNING: The certificate we received for the authentication server for" \
1101 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1103 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1104 _tmp22_ = id_card_get_issuer (_tmp21_);
1105 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1107 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1108 _tmp24_ = g_strdup_printf (_tmp20_, _tmp23_);
1109 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1111 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1112 _tmp26_ = g_strconcat ("<span font-weight='heavy'>", _tmp25_, NULL);
1113 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1115 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1116 _tmp28_ = _ (" is different than expected. Either the server certificate has change" \
1118 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1119 _tmp29_ = g_strconcat (_tmp27_, _tmp28_, NULL);
1120 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1122 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1123 _tmp31_ = _ (" attack may be underway. If you proceed to the wrong server, your log" \
1124 "in credentials may be compromised.");
1125 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1126 _tmp32_ = g_strconcat (_tmp30_, _tmp31_, NULL);
1127 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1129 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1130 _tmp34_ = g_strconcat (_tmp33_, "</span>", NULL);
1131 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1132 _g_free0 (label_markup);
1133 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1134 label_markup = _tmp34_;
1135 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1137 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1139 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1141 #line 173 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1143 #line 1140 "moonshot-trust-anchor-dialog.c"
1145 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1146 _tmp35_ = dialog_label;
1147 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1148 _tmp36_ = label_markup;
1149 #line 180 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1150 gtk_label_set_markup (_tmp35_, _tmp36_);
1151 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1152 _tmp37_ = dialog_label;
1153 #line 181 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1154 gtk_label_set_line_wrap (_tmp37_, TRUE);
1155 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1156 _tmp38_ = dialog_label;
1157 #line 182 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1158 gtk_label_set_width_chars (_tmp38_, 60);
1159 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1160 _tmp39_ = _ ("Username: ");
1161 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1163 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1164 _tmp41_ = g_strconcat (_tmp39_, _tmp40_, NULL);
1165 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1167 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1168 _tmp43_ = (GtkLabel*) gtk_label_new (_tmp42_);
1169 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1170 g_object_ref_sink (_tmp43_);
1171 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1173 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1175 #line 184 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1176 user_label = _tmp44_;
1177 #line 185 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1178 gtk_misc_set_alignment ((GtkMisc*) user_label, (gfloat) 0, 0.5f);
1179 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1180 _tmp45_ = _ ("Realm: ");
1181 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1183 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1184 _tmp47_ = g_strconcat (_tmp45_, _tmp46_, NULL);
1185 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1187 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1188 _tmp49_ = (GtkLabel*) gtk_label_new (_tmp48_);
1189 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1190 g_object_ref_sink (_tmp49_);
1191 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1193 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1195 #line 187 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1196 realm_label = _tmp50_;
1197 #line 188 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1198 gtk_misc_set_alignment ((GtkMisc*) realm_label, (gfloat) 0, 0.5f);
1199 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1201 "Please check with your realm administrator for the correct fingerprint");
1202 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1203 _tmp52_ = _ (" for your authentication server. If it matches the above fingerprint,");
1204 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1205 _tmp53_ = g_strconcat (_tmp51_, _tmp52_, NULL);
1206 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1208 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1209 _tmp55_ = _ (" confirm the change. If not, then cancel.");
1210 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1211 _tmp56_ = g_strconcat (_tmp54_, _tmp55_, NULL);
1212 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1214 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1216 #line 190 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1217 confirm_text = _tmp57_;
1218 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1219 _tmp58_ = (GtkLabel*) gtk_label_new (confirm_text);
1220 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1221 g_object_ref_sink (_tmp58_);
1222 #line 194 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1223 confirm_label = _tmp58_;
1224 #line 195 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1225 gtk_misc_set_alignment ((GtkMisc*) confirm_label, (gfloat) 0, 0.5f);
1226 #line 196 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1227 gtk_label_set_line_wrap (confirm_label, TRUE);
1228 #line 197 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1229 gtk_label_set_width_chars (confirm_label, 60);
1230 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1231 _tmp59_ = fingerprint;
1232 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1233 _tmp60_ = server_ta_label_text;
1234 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1235 _tmp61_ = make_ta_fingerprint_widget (_tmp59_, _tmp60_);
1236 #line 199 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1237 trust_anchor_display = _tmp61_;
1238 #line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1239 _tmp62_ = (GtkVBox*) gtk_vbox_new (FALSE, 0);
1240 #line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1241 g_object_ref_sink (_tmp62_);
1242 #line 201 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1244 #line 202 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1245 gtk_container_set_border_width ((GtkContainer*) vbox, (guint) 6);
1246 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1247 _tmp63_ = dialog_label;
1248 #line 203 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1249 gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) _tmp63_, TRUE, TRUE, (guint) 12);
1250 #line 204 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1251 gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) user_label, TRUE, TRUE, (guint) 2);
1252 #line 205 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1253 gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) realm_label, TRUE, TRUE, (guint) 2);
1254 #line 206 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1255 gtk_box_pack_start ((GtkBox*) vbox, trust_anchor_display, TRUE, TRUE, (guint) 0);
1256 #line 207 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1257 gtk_box_pack_start ((GtkBox*) vbox, (GtkWidget*) confirm_label, TRUE, TRUE, (guint) 12);
1258 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1259 _tmp64_ = content_area;
1260 #line 209 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1261 gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GTK_TYPE_CONTAINER, GtkContainer), (GtkWidget*) vbox);
1262 #line 211 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1263 gtk_container_set_border_width ((GtkContainer*) self, (guint) 6);
1264 #line 212 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1265 gtk_window_set_resizable ((GtkWindow*) self, FALSE);
1266 #line 214 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1267 g_signal_connect_object ((GtkDialog*) self, "response", (GCallback) _trust_anchor_dialog_on_response_gtk_dialog_response, self, 0);
1268 #line 216 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1269 gtk_widget_show_all ((GtkWidget*) self);
1270 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1271 _g_object_unref0 (vbox);
1272 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1273 _g_object_unref0 (trust_anchor_display);
1274 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1275 _g_object_unref0 (confirm_label);
1276 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1277 _g_free0 (confirm_text);
1278 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1279 _g_object_unref0 (realm_label);
1280 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1281 _g_object_unref0 (user_label);
1282 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1283 _g_free0 (label_markup);
1284 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1285 _g_object_unref0 (dialog_label);
1286 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1287 _g_object_unref0 (content_area);
1288 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1289 _g_free0 (server_ta_label_text);
1290 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1292 #line 1288 "moonshot-trust-anchor-dialog.c"
1296 TrustAnchorDialog* trust_anchor_dialog_new (IdCard* card, const gchar* userid, const gchar* realm, const gchar* fingerprint) {
1297 #line 142 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1298 return trust_anchor_dialog_construct (TYPE_TRUST_ANCHOR_DIALOG, card, userid, realm, fingerprint);
1299 #line 1295 "moonshot-trust-anchor-dialog.c"
1303 static void trust_anchor_dialog_on_response (TrustAnchorDialog* self, GtkDialog* source, gint response_id) {
1305 #line 219 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1306 g_return_if_fail (self != NULL);
1307 #line 219 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1308 g_return_if_fail (source != NULL);
1309 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1310 _tmp0_ = response_id;
1311 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1313 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1314 case GTK_RESPONSE_OK:
1315 #line 1311 "moonshot-trust-anchor-dialog.c"
1317 #line 223 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1318 self->complete = TRUE;
1319 #line 224 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1321 #line 1317 "moonshot-trust-anchor-dialog.c"
1323 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1324 case GTK_RESPONSE_CANCEL:
1325 #line 1321 "moonshot-trust-anchor-dialog.c"
1327 #line 226 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1328 self->complete = TRUE;
1329 #line 227 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1331 #line 1327 "moonshot-trust-anchor-dialog.c"
1334 #line 221 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1336 #line 1332 "moonshot-trust-anchor-dialog.c"
1341 static void trust_anchor_dialog_class_init (TrustAnchorDialogClass * klass) {
1342 GdkColor _tmp0_ = {0};
1343 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1344 trust_anchor_dialog_parent_class = g_type_class_peek_parent (klass);
1345 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1346 G_OBJECT_CLASS (klass)->finalize = trust_anchor_dialog_finalize;
1347 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1348 make_color ((guint16) 65535, (guint16) 65535, (guint16) 65535, &_tmp0_);
1349 #line 138 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1350 trust_anchor_dialog_white = _tmp0_;
1351 #line 1347 "moonshot-trust-anchor-dialog.c"
1355 static void trust_anchor_dialog_instance_init (TrustAnchorDialog * self) {
1356 #line 140 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1357 self->complete = FALSE;
1358 #line 1354 "moonshot-trust-anchor-dialog.c"
1362 static void trust_anchor_dialog_finalize (GObject* obj) {
1363 TrustAnchorDialog * self;
1364 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1365 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRUST_ANCHOR_DIALOG, TrustAnchorDialog);
1366 #line 136 "/home/hartmans/moonshot/moonshot/ui/src/moonshot-trust-anchor-dialog.vala"
1367 G_OBJECT_CLASS (trust_anchor_dialog_parent_class)->finalize (obj);
1368 #line 1364 "moonshot-trust-anchor-dialog.c"
1372 GType trust_anchor_dialog_get_type (void) {
1373 static volatile gsize trust_anchor_dialog_type_id__volatile = 0;
1374 if (g_once_init_enter (&trust_anchor_dialog_type_id__volatile)) {
1375 static const GTypeInfo g_define_type_info = { sizeof (TrustAnchorDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trust_anchor_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrustAnchorDialog), 0, (GInstanceInitFunc) trust_anchor_dialog_instance_init, NULL };
1376 GType trust_anchor_dialog_type_id;
1377 trust_anchor_dialog_type_id = g_type_register_static (GTK_TYPE_DIALOG, "TrustAnchorDialog", &g_define_type_info, 0);
1378 g_once_init_leave (&trust_anchor_dialog_type_id__volatile, trust_anchor_dialog_type_id);
1380 return trust_anchor_dialog_type_id__volatile;