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:
		| @@ -43,17 +43,14 @@ OM_uint32 _gss_ntlm_delete_sec_context | ||||
| { | ||||
|     if (context_handle) { | ||||
| 	ntlm_ctx ctx = (ntlm_ctx)*context_handle; | ||||
| 	gss_cred_id_t cred = (gss_cred_id_t)ctx->client; | ||||
|  | ||||
| 	*context_handle = GSS_C_NO_CONTEXT; | ||||
|  | ||||
| 	if (ctx->server) | ||||
| 	    (*ctx->server->nsi_destroy)(minor_status, ctx->ictx); | ||||
|  | ||||
| 	if (ctx->client.username) | ||||
| 	    free(ctx->client.username); | ||||
| 	if (ctx->client.key.data) { | ||||
| 	    memset(ctx->client.key.data, 0, ctx->client.key.length); | ||||
| 	    free(ctx->client.key.data); | ||||
| 	} | ||||
| 	_gss_ntlm_release_cred(NULL, &cred); | ||||
|  | ||||
| 	memset(ctx, 0, sizeof(*ctx)); | ||||
| 	free(ctx); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand