mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
schannel.c: Small changes
This commit is contained in:
parent
ae8387b91c
commit
3c104448d6
@ -883,12 +883,12 @@ schannel_recv(struct connectdata *conn, int sockindex,
|
|||||||
connssl->encdata_offset),
|
connssl->encdata_offset),
|
||||||
size, &nread);
|
size, &nread);
|
||||||
/* check for received data */
|
/* check for received data */
|
||||||
if(*err != CURLE_OK)
|
if(*err != CURLE_OK) {
|
||||||
return -1;
|
return -1;
|
||||||
else {
|
}
|
||||||
if(nread > 0)
|
else if(nread > 0) {
|
||||||
/* increase encrypted data buffer offset */
|
/* increase encrypted data buffer offset */
|
||||||
connssl->encdata_offset += nread;
|
connssl->encdata_offset += nread;
|
||||||
}
|
}
|
||||||
infof(data, "schannel: encrypted data got %zd\n", nread);
|
infof(data, "schannel: encrypted data got %zd\n", nread);
|
||||||
}
|
}
|
||||||
@ -907,7 +907,6 @@ schannel_recv(struct connectdata *conn, int sockindex,
|
|||||||
InitSecBuffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0);
|
InitSecBuffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0);
|
||||||
InitSecBuffer(&inbuf[2], SECBUFFER_EMPTY, NULL, 0);
|
InitSecBuffer(&inbuf[2], SECBUFFER_EMPTY, NULL, 0);
|
||||||
InitSecBuffer(&inbuf[3], SECBUFFER_EMPTY, NULL, 0);
|
InitSecBuffer(&inbuf[3], SECBUFFER_EMPTY, NULL, 0);
|
||||||
|
|
||||||
InitSecBufferDesc(&inbuf_desc, inbuf, 4);
|
InitSecBufferDesc(&inbuf_desc, inbuf, 4);
|
||||||
|
|
||||||
/* http://msdn.microsoft.com/en-us/library/windows/desktop/aa375348.aspx */
|
/* http://msdn.microsoft.com/en-us/library/windows/desktop/aa375348.aspx */
|
||||||
|
Loading…
Reference in New Issue
Block a user