summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_rpc_creds.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-12 18:05:47 -0400
committerRobbie Harwood <rharwood@redhat.com>2015-12-01 17:45:53 -0500
commit7e71db8edc9694ed75110ddd9efa373250cc0545 (patch)
tree3534b077c88f6f710d0e7e4e5680620ccefb7216 /proxy/src/gp_rpc_creds.h
parente155f81d84f7dd0b0b643a1228c2f9c503fc87e5 (diff)
downloadgss-proxy-7e71db8edc9694ed75110ddd9efa373250cc0545.tar.gz
gss-proxy-7e71db8edc9694ed75110ddd9efa373250cc0545.tar.xz
gss-proxy-7e71db8edc9694ed75110ddd9efa373250cc0545.zip
Add gss_acquire_cred_impersonate_name support
This is used by a client that wants to peform a s4u2self operation using its server credentials. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwoood <rharwood@redhat.com>
Diffstat (limited to 'proxy/src/gp_rpc_creds.h')
-rw-r--r--proxy/src/gp_rpc_creds.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/proxy/src/gp_rpc_creds.h b/proxy/src/gp_rpc_creds.h
index 98f2eaf..ead6afc 100644
--- a/proxy/src/gp_rpc_creds.h
+++ b/proxy/src/gp_rpc_creds.h
@@ -12,8 +12,16 @@ struct gp_call_ctx;
bool gp_creds_allowed_mech(struct gp_call_ctx *gpcall, gss_OID desired_mech);
uint32_t gp_get_supported_mechs(uint32_t *min, gss_OID_set *set);
+struct gssx_arg_acquire_cred;
+enum gp_aqcuire_cred_type {
+ ACQ_NORMAL = 0,
+ ACQ_IMPNAME = 1,
+};
+int gp_get_acquire_type(struct gssx_arg_acquire_cred *arg);
+
uint32_t gp_add_krb5_creds(uint32_t *min,
struct gp_call_ctx *gpcall,
+ enum gp_aqcuire_cred_type acquire_type,
gss_cred_id_t in_cred,
gssx_name *desired_name,
gss_cred_usage_t cred_usage,