Implement _gss_ntlm_inquire_cred.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21250 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -44,15 +44,32 @@ OM_uint32 _gss_ntlm_inquire_cred
|
|||||||
gss_OID_set * mechanisms
|
gss_OID_set * mechanisms
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
OM_uint32 ret, junk;
|
||||||
|
|
||||||
if (minor_status)
|
if (minor_status)
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
if (name)
|
if (name)
|
||||||
*name = GSS_C_NO_NAME;
|
*name = GSS_C_NO_NAME;
|
||||||
if (lifetime)
|
if (lifetime)
|
||||||
*lifetime = 0;
|
*lifetime = GSS_C_INDEFINITE;
|
||||||
if (cred_usage)
|
if (cred_usage)
|
||||||
*cred_usage = 0;
|
*cred_usage = 0;
|
||||||
if (mechanisms)
|
if (mechanisms)
|
||||||
*mechanisms = GSS_C_NO_OID_SET;
|
*mechanisms = GSS_C_NO_OID_SET;
|
||||||
return GSS_S_FAILURE;
|
|
||||||
|
if (mechanisms) {
|
||||||
|
ret = gss_create_empty_oid_set(minor_status, mechanisms);
|
||||||
|
if (ret)
|
||||||
|
goto out;
|
||||||
|
ret = gss_add_oid_set_member(minor_status,
|
||||||
|
GSS_NTLM_MECHANISM,
|
||||||
|
mechanisms);
|
||||||
|
if (ret)
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
return GSS_S_COMPLETE;
|
||||||
|
out:
|
||||||
|
gss_release_oid_set(&junk, mechanisms);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user