secur32: Set error flag on pull callback.

Fixes a regression introduced in b8aaf86b2d

Partial revert the pull_timeout function, which now return -1 and sets the
transport error to try again.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51440
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2021-07-20 10:17:53 +10:00 committed by Alexandre Julliard
parent d60c450c7b
commit 8ed81720e8
1 changed files with 9 additions and 1 deletions

View File

@ -292,7 +292,15 @@ static DWORD CDECL schan_get_enabled_protocols(void)
static int pull_timeout(gnutls_transport_ptr_t transport, unsigned int timeout)
{
return 0;
struct schan_transport *t = (struct schan_transport*)transport;
gnutls_session_t s = (gnutls_session_t)callbacks->get_session_for_transport(t);
SIZE_T count = 0;
TRACE("\n");
if (callbacks->get_buffer(t, &t->in, &count)) return 1;
pgnutls_transport_set_errno(s, EAGAIN);
return -1;
}
static BOOL CDECL schan_create_session(schan_session *session, schan_credentials *cred)