[krb5-auth-dialog] Use KA_PROP_NAME_* instead of hardcoded strings
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] Use KA_PROP_NAME_* instead of hardcoded strings
- Date: Sat, 16 Mar 2013 13:29:45 +0000 (UTC)
commit 4047d40116e7dfcd71e2c300c04470b447bdfd05
Author: Guido Günther <agx sigxcpu org>
Date: Sat Mar 16 14:27:20 2013 +0100
Use KA_PROP_NAME_* instead of hardcoded strings
src/ka-kerberos.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/ka-kerberos.c b/src/ka-kerberos.c
index 7eff619..7615d9c 100644
--- a/src/ka-kerberos.c
+++ b/src/ka-kerberos.c
@@ -546,13 +546,13 @@ ka_set_ticket_options (KaApplet *applet, krb5_context context,
krb5_principal_get_realm
(context, kprincipal), out);
#endif
- g_object_get (applet, "tgt-forwardable", &flag, NULL);
+ g_object_get (applet, KA_PROP_NAME_TGT_FORWARDABLE, &flag, NULL);
if (flag)
krb5_get_init_creds_opt_set_forwardable (out, flag);
- g_object_get (applet, "tgt-proxiable", &flag, NULL);
+ g_object_get (applet, KA_PROP_NAME_TGT_PROXIABLE, &flag, NULL);
if (flag)
krb5_get_init_creds_opt_set_proxiable (out, flag);
- g_object_get (applet, "tgt-renewable", &flag, NULL);
+ g_object_get (applet, KA_PROP_NAME_TGT_RENEWABLE, &flag, NULL);
if (flag) {
krb5_deltat r = 3600 * 24 * 30; /* 1 month */
@@ -640,7 +640,7 @@ ka_parse_name (KaApplet *applet, krb5_context krbcontext,
if (*kprinc != NULL)
krb5_free_principal (krbcontext, *kprinc);
- g_object_get (applet, "principal", &principal, NULL);
+ g_object_get (applet, KA_PROP_NAME_PRINCIPAL, &principal, NULL);
ret = krb5_parse_name (krbcontext, principal, kprinc);
g_free (principal);
@@ -752,7 +752,7 @@ grab_credentials (KaApplet *applet)
if (retval)
goto out2;
- g_object_get (applet, "pk-userid", &pk_userid,
+ g_object_get (applet, KA_PROP_NAME_PK_USERID, &pk_userid,
"pk-anchors", &pk_anchors, NULL);
#if ENABLE_PKINIT && HAVE_HX509_ERR_H && HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PKINIT
/* pk_userid set: try pkinit */
@@ -960,7 +960,7 @@ ka_check_credentials (KaApplet *applet, const char *newprincipal)
int retval;
char *principal;
- g_object_get (applet, "principal", &principal, NULL);
+ g_object_get (applet, KA_PROP_NAME_PRINCIPAL, &principal, NULL);
if (strlen (newprincipal)) {
krb5_principal knewprinc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]