diff --git a/ixwebsocket/IXSocketSChannel.cpp b/ixwebsocket/IXSocketSChannel.cpp index 62ae44de..72450ab9 100644 --- a/ixwebsocket/IXSocketSChannel.cpp +++ b/ixwebsocket/IXSocketSChannel.cpp @@ -2,6 +2,8 @@ * IXSocketSChannel.cpp * Author: Benjamin Sergeant * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. + * + * See https://docs.microsoft.com/en-us/windows/desktop/WinSock/using-secure-socket-extensions */ #include "IXSocketSChannel.h" @@ -13,6 +15,41 @@ # include # include # include + +#define WIN32_LEAN_AND_MEAN + +#ifndef UNICODE +#define UNICODE +#endif + +#include +#include +#include +#include +#include +#include +#include +#include + +#define RECV_DATA_BUF_SIZE 256 + +// Link with ws2_32.lib +#pragma comment(lib, "Ws2_32.lib") + +// link with fwpuclnt.lib for Winsock secure socket extensions +#pragma comment(lib, "fwpuclnt.lib") + +// link with ntdsapi.lib for DsMakeSpn function +#pragma comment(lib, "ntdsapi.lib") + +// The following function assumes that Winsock +// has already been initialized + + + + + + #else # error("This file should only be built on Windows") #endif