mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 11:03:38 +00:00
secur32: Remove unused pointer parameter from send request.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
8920ad75e3
commit
086e950a2b
|
@ -1297,7 +1297,6 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
|
|||
SECURITY_STATUS status;
|
||||
SecBuffer *buffer;
|
||||
SIZE_T data_size;
|
||||
SIZE_T length;
|
||||
char *data;
|
||||
int output_buffer_idx = -1;
|
||||
ULONG output_offset = 0;
|
||||
|
@ -1353,11 +1352,10 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
|
|||
buffer_index[1] = data_idx;
|
||||
buffer_index[2] = trailer_idx;
|
||||
|
||||
length = data_size;
|
||||
params.session = ctx->session;
|
||||
params.output = &output_desc;
|
||||
params.buffer = data;
|
||||
params.length = &length;
|
||||
params.length = data_size;
|
||||
params.output_buffer_idx = &output_buffer_idx;
|
||||
params.output_offset = &output_offset;
|
||||
status = GNUTLS_CALL( send, ¶ms );
|
||||
|
@ -1365,11 +1363,6 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
|
|||
if (!status)
|
||||
message->pBuffers[buffer_index[output_buffer_idx]].cbBuffer = output_offset;
|
||||
|
||||
TRACE("Sent %Id bytes.\n", length);
|
||||
|
||||
if (length != data_size)
|
||||
status = SEC_E_INTERNAL_ERROR;
|
||||
|
||||
free(data);
|
||||
|
||||
TRACE("Returning %#lx.\n", status);
|
||||
|
|
|
@ -786,12 +786,12 @@ static NTSTATUS schan_send( void *args )
|
|||
|
||||
for (;;)
|
||||
{
|
||||
ret = pgnutls_record_send(s, (const char *)params->buffer + total, *params->length - total);
|
||||
ret = pgnutls_record_send(s, (const char *)params->buffer + total, params->length - total);
|
||||
if (ret >= 0)
|
||||
{
|
||||
total += ret;
|
||||
TRACE( "sent %ld now %ld/%ld\n", ret, total, *params->length );
|
||||
if (total == *params->length) break;
|
||||
TRACE( "sent %ld now %ld/%u\n", ret, total, (unsigned)params->length );
|
||||
if (total == params->length) break;
|
||||
}
|
||||
else if (ret == GNUTLS_E_AGAIN)
|
||||
{
|
||||
|
|
|
@ -166,7 +166,7 @@ struct send_params
|
|||
schan_session session;
|
||||
SecBufferDesc *output;
|
||||
const void *buffer;
|
||||
SIZE_T *length;
|
||||
ULONG length;
|
||||
int *output_buffer_idx;
|
||||
ULONG *output_offset;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue