Is there a simple way to convert a socket to an SSLified socket in C++?
开发者_JS百科In perl there are modules that you can pass a socket to and it'll return an SSL enabled socket.
Is there something similar to that for C++ that I can use as a drop in replacement?
In the literal way in which you ask: no, this is not possible. The existing APIs only support plain windows sockets, and provide no hooking for additional functionality. You will have to change readers and writers of the sockets as well.
精彩评论