chore(NetSSL_Win): use state machine also for blocking connections; fix non-blocking renegotiation

This commit is contained in:
Günter Obiltschnig
2024-11-24 16:59:40 +01:00
parent 0bf3c15655
commit 28a08434c6
2 changed files with 26 additions and 95 deletions

View File

@@ -281,9 +281,7 @@ protected:
void performClientHandshakeSendError();
void sendOutSecBufferAndAdvanceState(State state);
void performClientHandshake();
SECURITY_STATUS performClientHandshakeLoop();
void performClientHandshakeLoopCondReceive();
SECURITY_STATUS performClientHandshake();
SECURITY_STATUS decodeMessage(BYTE* pBuffer, DWORD bufSize, AutoSecBufferDesc<4>& msg, SecBuffer*& pData, SecBuffer*& pExtra);
SECURITY_STATUS decodeBufferFull(BYTE* pBuffer, DWORD bufSize, char* pOutBuffer, int outLength, int& bytesDecoded);
@@ -293,7 +291,7 @@ protected:
void connectSSL(bool completeHandshake);
void completeHandshake();
static int lastError();
void stateMachine();
bool stateMachine();
State getState() const;
void setState(State st);
static bool isLocalHost(const std::string& hostName);