kerberos: Simplify kerberos_SpInitLsaModeContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5744469234
commit
64cbf292bb
|
@ -919,16 +919,11 @@ static NTSTATUS NTAPI kerberos_SpInitLsaModeContext( LSA_SEC_HANDLE credential,
|
||||||
cred_handle = credhandle_sspi_to_gss( credential );
|
cred_handle = credhandle_sspi_to_gss( credential );
|
||||||
ctxt_handle = ctxthandle_sspi_to_gss( context );
|
ctxt_handle = ctxthandle_sspi_to_gss( context );
|
||||||
|
|
||||||
if (!input) input_token.length = 0;
|
if (!input || (idx = get_buffer_index( input, SECBUFFER_TOKEN )) == -1) input_token.length = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((idx = get_buffer_index( input, SECBUFFER_TOKEN )) == -1)
|
input_token.length = input->pBuffers[idx].cbBuffer;
|
||||||
input_token.length = 0;
|
input_token.value = input->pBuffers[idx].pvBuffer;
|
||||||
else
|
|
||||||
{
|
|
||||||
input_token.length = input->pBuffers[idx].cbBuffer;
|
|
||||||
input_token.value = input->pBuffers[idx].pvBuffer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((idx = get_buffer_index( output, SECBUFFER_TOKEN )) == -1) return SEC_E_INVALID_TOKEN;
|
if ((idx = get_buffer_index( output, SECBUFFER_TOKEN )) == -1) return SEC_E_INVALID_TOKEN;
|
||||||
|
|
Loading…
Reference in New Issue