From: | tlyu@mit.edu |
Subject: | git commit |
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.
(cherry picked from commit 48dd01f29b893a958a64dcf6eb0b734e8463425b)
https://github.com/krb5/krb5/commit/cf003fc2ed7e345de3103d76a3801fb9f61fdc5f
Author: Tom Yu <tlyu@mit.edu>
Commit: cf003fc2ed7e345de3103d76a3801fb9f61fdc5f
Branch: krb5-1.11
src/lib/gssapi/krb5/import_cred.c | 2 +-
src/tests/gssapi/common.c | 14 ++++++++++++++
src/tests/gssapi/common.h | 4 ++++
src/tests/gssapi/t_export_cred.c | 16 ----------------
src/tests/gssapi/t_export_cred.py | 5 ++++-
src/tests/gssapi/t_s4u2proxy_krb5.c | 4 ++++
6 files changed, 27 insertions(+), 18 deletions(-)