Re: [asio-users] Native Windows ssl::stream support
Brought to you by:
chris_kohlhoff
From: Kasper L. <la...@st...> - 2020-07-21 16:38:35
|
On 21/07/2020 18.08, Vinnie Falco wrote: > > Well, I still think it is worth discussing with other folks, as this > can only help to inform your efforts. > Of course. I appreciate the help I can get. > How does Windows TLS work? Is it buffer-oriented? Or does Windows > control the socket? The answer to this question will have dramatic > influence on how your code is designed. If Windows wants to control > the socket, it will require more finesse and understanding of Asio to > author an I/O object that implements Windows TLS. > As far as I can tell, both options are supported. You can either make Windows control the socket: https://docs.microsoft.com/en-us/windows/win32/winsock/using-secure-socket-extensions Or use SChannel as a wrapper around an existing socket: https://docs.microsoft.com/en-us/windows/win32/secauthn/using-sspi-with-a-windows-sockets-client I was planning to look into the SChannel approach as that seems closest to how the OpenSSL implementation works. Kind regards, Kasper Laudrup |