summaryrefslogtreecommitdiffstats
path: root/src/tests/gssapi/common.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-10-07 09:51:56 -0400
committerGreg Hudson <ghudson@mit.edu>2013-10-14 23:32:05 -0400
commit48dd01f29b893a958a64dcf6eb0b734e8463425b (patch)
treed640110f683fb152d3e5ca6290b68ad7f486f8b9 /src/tests/gssapi/common.h
parent69c190ed9189273a79fdb8e8d95ce970d21118b3 (diff)
downloadkrb5-48dd01f29b893a958a64dcf6eb0b734e8463425b.tar.gz
krb5-48dd01f29b893a958a64dcf6eb0b734e8463425b.tar.xz
krb5-48dd01f29b893a958a64dcf6eb0b734e8463425b.zip
Fix GSSAPI krb5 cred ccache import
json_to_ccache was incorrectly indexing the JSON array when restoring a memory ccache. Fix it. Add test coverage for a multi-cred ccache by exporting/importing the synthesized S4U2Proxy delegated cred in t_s4u2proxy_krb5.c; move export_import_cred from t_export_cred.c to common.c to facilitate this. Make a note in t_export_cred.py that this case is covered in t_s4u.py. ticket: 7706 target_version: 1.11.4
Diffstat (limited to 'src/tests/gssapi/common.h')
-rw-r--r--src/tests/gssapi/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/gssapi/common.h b/src/tests/gssapi/common.h
index 54c0d36b5..ae11b51d4 100644
--- a/src/tests/gssapi/common.h
+++ b/src/tests/gssapi/common.h
@@ -62,6 +62,10 @@ void establish_contexts(gss_OID imech, gss_cred_id_t icred,
gss_name_t *src_name, gss_OID *amech,
gss_cred_id_t *deleg_cred);
+/* Export *cred to a token, then release *cred and replace it by re-importing
+ * the token. */
+void export_import_cred(gss_cred_id_t *cred);
+
/* Display name as canonicalized to mech, preceded by tag. */
void display_canon_name(const char *tag, gss_name_t name, gss_OID mech);