summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-01-25 16:32:33 -0500
committerSimo Sorce <simo@redhat.com>2012-01-25 16:55:08 -0500
commitdace994bf54750c67385cdfe17898376394af622 (patch)
treec48b62515cf8e5cb5bf43ed5963883a5e72c3801
parent1f70f9d1361665fcd6b4fc01e23c2544b281421a (diff)
downloadgss-proxy-dace994bf54750c67385cdfe17898376394af622.tar.gz
gss-proxy-dace994bf54750c67385cdfe17898376394af622.tar.xz
gss-proxy-dace994bf54750c67385cdfe17898376394af622.zip
Add a function to find credential handles
-rw-r--r--proxy/src/gp_export.c4
-rw-r--r--proxy/src/gp_export.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c
index 89e14eb..8b87aaa 100644
--- a/proxy/src/gp_export.c
+++ b/proxy/src/gp_export.c
@@ -147,3 +147,7 @@ int gp_import_gssx_cred(octet_string *in, gss_cred_id_t *out)
return 0;
}
+int gp_find_cred(gssx_cred *cred, gss_cred_id_t *out)
+{
+ return gp_import_gssx_cred(&cred->cred_handle_reference, out);
+}
diff --git a/proxy/src/gp_export.h b/proxy/src/gp_export.h
index bc6a226..8296a5a 100644
--- a/proxy/src/gp_export.h
+++ b/proxy/src/gp_export.h
@@ -31,5 +31,6 @@
int gp_export_gssx_cred(gss_cred_id_t *in, gssx_cred *out);
int gp_import_gssx_cred(octet_string *in, gss_cred_id_t *out);
+int gp_find_cred(gssx_cred *cred, gss_cred_id_t *out);
#endif /* _GSS_EXPORT_H_ */