diff options
| author | Simo Sorce <simo@redhat.com> | 2012-02-22 15:23:09 -0500 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2012-02-23 16:55:46 -0500 |
| commit | 467045ad0a97cfc1edee8b3faafab53433a5b702 (patch) | |
| tree | 387850030ee8d19bf51b96e64e2ef6e3f834dd05 /proxy/src/gp_proxy.h | |
| parent | d0989ef842fb3cd48265521cd139b3ffa2aa3889 (diff) | |
| download | gss-proxy-467045ad0a97cfc1edee8b3faafab53433a5b702.tar.gz gss-proxy-467045ad0a97cfc1edee8b3faafab53433a5b702.tar.xz gss-proxy-467045ad0a97cfc1edee8b3faafab53433a5b702.zip | |
config: parse credential/service config sections
Diffstat (limited to 'proxy/src/gp_proxy.h')
| -rw-r--r-- | proxy/src/gp_proxy.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h index 0cf24bb..bd3d181 100644 --- a/proxy/src/gp_proxy.h +++ b/proxy/src/gp_proxy.h @@ -34,11 +34,45 @@ #define _(STRING) gettext(STRING) +struct gp_cred_krb5 { + 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; + + struct gp_credcfg **creds; + int num_creds; +}; + struct gp_config { char *config_file; /* gssproxy configuration file */ bool daemonize; /* let gssproxy daemonize */ 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; }; struct gp_workers; |
