diff options
author | Luke Howard <lukeh@padl.com> | 2009-11-24 18:58:59 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2009-11-24 18:58:59 +0000 |
commit | 1070b301d378feed4653f8b6c5a91bb0e6c2dcf5 (patch) | |
tree | eee844ef1dd597bdd54ae2b576fca531fbcdfc65 | |
parent | c4bc72a768c9cb7ffa7c9495e16b3ad25c49d8c8 (diff) | |
download | krb5-1070b301d378feed4653f8b6c5a91bb0e6c2dcf5.zip krb5-1070b301d378feed4653f8b6c5a91bb0e6c2dcf5.tar.gz krb5-1070b301d378feed4653f8b6c5a91bb0e6c2dcf5.tar.bz2 |
add a gss_store_cred() test
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/gssextras@23349 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/tests/gssapi/t_prf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/gssapi/t_prf.c b/src/tests/gssapi/t_prf.c index 8b4a919..82662fa 100644 --- a/src/tests/gssapi/t_prf.c +++ b/src/tests/gssapi/t_prf.c @@ -403,6 +403,20 @@ int main(int argc, char *argv[]) goto out; } + /* Try to store it in default ccache */ + major = gss_store_cred(&minor, + user_cred_handle, + GSS_C_INITIATE, + &mechs.elements[0], + 1, + 1, + NULL, + NULL); + if (GSS_ERROR(major)) { + displayStatus("gss_store_cred", major, minor); + goto out; + } + major = initAcceptSecContext(&minor, user_cred_handle, impersonator_cred_handle, |