add credential handling, add probe function, add better acquired cred function

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22163 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-12-04 21:25:06 +00:00
parent 280b58bb08
commit 8ca9a4469c
7 changed files with 162 additions and 67 deletions

View File

@@ -40,10 +40,26 @@ OM_uint32 _gss_ntlm_release_cred
gss_cred_id_t * cred_handle
)
{
ntlm_cred cred;
if (minor_status)
*minor_status = 0;
if (cred_handle)
*cred_handle = GSS_C_NO_CREDENTIAL;
if (cred_handle == NULL || *cred_handle == GSS_C_NO_CREDENTIAL)
return GSS_S_COMPLETE;
cred = (ntlm_cred)*cred_handle;
*cred_handle = GSS_C_NO_CREDENTIAL;
if (cred->username)
free(cred->username);
if (cred->domain)
free(cred->domain);
if (cred->key.data) {
memset(cred->key.data, 0, cred->key.length);
free(cred->key.data);
}
return GSS_S_COMPLETE;
}