Hello,
I'm working on a project that requires secure
communication.
The client is a GUI written in C++ and
Windows, so I'm processing
WM_* window messages and would like to handle
network communication
in the main thread by means of the WSAAsyncSelect()
system call and OpenSSL.
Does anybody have some sample code for that
?
I'm especially worried about the server initiating
a new handshake.
This will trigger a WM_SOCKET with FD_READ, but
what should I
read/write in that case. I'm developing the server
side too, is it possible
to avoid these new handshakes ? Or, can the trouble
be avoided by
simply turning on the SSL_MODE_AUTO_RETRY flag
?
I've read most of the O'Reilly book on OpenSSL, and
found no mention
of the SSL_set_fd() function that I will need. Is
this function deprecated ?
Is the Addison-Wesley book still useful ? (http://www.amazon.com/exec/obidos/tg/detail/-/0201615983/102-5608801-5807345?v=glance) . After all, it's 5 years
old, and some of the API is probably invalid.
A lot of questions at the same time :=), but half
an answer to any of these
would be greatly appreciated.
Kind regards
Peter B.
|