From dace994bf54750c67385cdfe17898376394af622 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 25 Jan 2012 16:32:33 -0500 Subject: Add a function to find credential handles --- proxy/src/gp_export.c | 4 ++++ proxy/src/gp_export.h | 1 + 2 files changed, 5 insertions(+) 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_ */ -- cgit