summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_creds.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-16 17:09:45 -0500
committerGünther Deschner <gdeschner@redhat.com>2013-11-20 15:26:08 +0100
commit3df6ac81f4a6d8cf6ff514e7d7f2cbe58840c393 (patch)
tree91008104605d618734344e8c217cb462506b9038 /proxy/src/gp_creds.c
parent6a096c0a0a37d2fa9e0b03edce05929a7d98f390 (diff)
downloadgss-proxy-3df6ac81f4a6d8cf6ff514e7d7f2cbe58840c393.tar.gz
gss-proxy-3df6ac81f4a6d8cf6ff514e7d7f2cbe58840c393.tar.xz
gss-proxy-3df6ac81f4a6d8cf6ff514e7d7f2cbe58840c393.zip
server: Implement flag filtering enforcement
Resolves: https://fedorahosted.org/gss-proxy/ticket/109 Reviewed-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src/gp_creds.c')
-rw-r--r--proxy/src/gp_creds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
index 5337390..60c4e12 100644
--- a/proxy/src/gp_creds.c
+++ b/proxy/src/gp_creds.c
@@ -548,3 +548,9 @@ done:
return ret_maj;
}
+
+void gp_filter_flags(struct gp_call_ctx *gpcall, uint32_t *flags)
+{
+ *flags |= gpcall->service->enforce_flags;
+ *flags &= ~gpcall->service->filter_flags;
+}