summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-10-24 20:57:40 -0400
committerSimo Sorce <simo@redhat.com>2013-10-24 20:57:40 -0400
commitb693d402926133bf2392b6af62c8dc6ccc4dd66b (patch)
tree5235a23439be7426781d254b2f9b30d4ce373daf /tests
parent8a36ccb157ad5100cae5cbc82d9916264a990d8f (diff)
downloadgss-ntlmssp-b693d402926133bf2392b6af62c8dc6ccc4dd66b.tar.gz
gss-ntlmssp-b693d402926133bf2392b6af62c8dc6ccc4dd66b.tar.xz
gss-ntlmssp-b693d402926133bf2392b6af62c8dc6ccc4dd66b.zip
Add methods to inquire credentials
Also add simple sanity check test.
Diffstat (limited to 'tests')
-rw-r--r--tests/ntlmssptest.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ntlmssptest.c b/tests/ntlmssptest.c
index e6b7748..f8af5d4 100644
--- a/tests/ntlmssptest.c
+++ b/tests/ntlmssptest.c
@@ -1164,6 +1164,14 @@ int test_gssapi_1(bool user_env_file)
}
}
+ retmaj = gssntlm_inquire_cred_by_mech(&retmin, cli_cred, GSS_C_NO_OID,
+ NULL, NULL, NULL, NULL);
+ if (retmaj != GSS_S_COMPLETE) {
+ fprintf(stderr, "gssntlm_import_cred_by_mech failed! (%d/%d, %s)",
+ retmaj, retmin, strerror(retmin));
+ return EINVAL;
+ }
+
nbuf.value = discard_const(srvname);
nbuf.length = strlen(srvname);
retmaj = gssntlm_import_name(&retmin, &nbuf,