summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_proxy.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-02-26 16:40:47 -0500
committerSimo Sorce <simo@redhat.com>2012-04-05 11:20:33 -0400
commitcfbd12afad3fb232cbc214e1c47c2bf202ec5003 (patch)
treea83df9e410d858d23d2ac494079ebb57be5baba2 /proxy/src/gp_proxy.h
parent5286f86243c1a76f52a4ddb2f341f23762b068b5 (diff)
downloadgss-proxy-cfbd12afad3fb232cbc214e1c47c2bf202ec5003.tar.gz
gss-proxy-cfbd12afad3fb232cbc214e1c47c2bf202ec5003.tar.xz
gss-proxy-cfbd12afad3fb232cbc214e1c47c2bf202ec5003.zip
config: Rework configuration syntax
Keeping 2 separate sections for credentials and services seem to just make things really confusing. The off chance of reusing a 'credential' section is dwarfed by the confusion cause by keeping them separate. Having to copy a full service section is not a big deal so KISS wins here.
Diffstat (limited to 'proxy/src/gp_proxy.h')
-rw-r--r--proxy/src/gp_proxy.h26
1 files changed, 6 insertions, 20 deletions
diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h
index bd3d181..cebde03 100644
--- a/proxy/src/gp_proxy.h
+++ b/proxy/src/gp_proxy.h
@@ -34,32 +34,21 @@
#define _(STRING) gettext(STRING)
+#define GP_CRED_KRB5 0x01
+
struct gp_cred_krb5 {
+ char *principal;
char *keytab;
char *ccache;
};
-struct gp_credcfg {
- char *name;
-
- enum {
- GP_CRED_NONE = 0,
- GP_CRED_KRB5,
- } mech;
-
- union {
- struct gp_cred_krb5 krb5;
- } cred;
-};
-
struct gp_service {
char *name;
-
uid_t euid;
- gid_t egid;
+ bool trusted;
- struct gp_credcfg **creds;
- int num_creds;
+ uint32_t mechs;
+ struct gp_cred_krb5 krb5;
};
struct gp_config {
@@ -68,9 +57,6 @@ struct gp_config {
char *socket_name; /* the socket name to use for */
int num_workers; /* number of worker threads */
- struct gp_credcfg **creds;
- int num_creds;
-
struct gp_service **svcs;
int num_svcs;
};