Skip to content

Commit

Permalink
switch auto cred validation back on
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan63 committed Nov 23, 2024
1 parent 9b6f41d commit db00bf1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hx/libs/ssl/windows/SSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ void _hx_ssl_handshake(Dynamic handle)
auto wrapper = (SocketWrapper*)ctx->socket.mPtr;
auto result = SECURITY_STATUS{ SEC_E_OK };

// SCH_CRED_MANUAL_CRED_VALIDATION
// SCH_CRED_AUTO_CRED_VALIDATION
auto credentials = SCHANNEL_CRED();
credentials.dwFlags = SCH_CRED_MANUAL_CRED_VALIDATION | SCH_CRED_NO_DEFAULT_CREDS | SCH_USE_STRONG_CRYPTO;
credentials.dwFlags = SCH_CRED_AUTO_CRED_VALIDATION | SCH_CRED_NO_DEFAULT_CREDS | SCH_USE_STRONG_CRYPTO;
credentials.dwVersion = SCHANNEL_CRED_VERSION;
credentials.grbitEnabledProtocols = SP_PROT_TLS1_2;

Expand Down Expand Up @@ -556,7 +554,7 @@ int _hx_ssl_recv(Dynamic hssl, Array<unsigned char> buf, int p, int l)
{
printf("no buffered input, reading block from socket (%i)\n", ctx->sizes.cbBlockSize);

auto count = recv(wrapper->socket, ctx->input->getBase(), ctx->sizes.cbBlockSize, 0);
auto count = recv(wrapper->socket, ctx->input->getBase(), ctx->input->length, 0);
if (count <= 0)
{
block_error();
Expand Down

0 comments on commit db00bf1

Please sign in to comment.