I’m about to start modifying SDL_Net to support SSL through calls like
SDLNet_SSL_*
Obviously since SDL_Net is LGPL I’ll be releasing the changes, but
they’ll almost certainly be ugly unless there’s interest here for a
clean and usable patch.
Do you think that you could design your addition so that it is easy to
have SSL and normal modes toggleable at some level? Doing that would
not only make it seamless to integrate into current projects, but it
could be a neat configurable option in certain situations.
-ray
skoog
Jimmy wrote:>Hey all,
I’m about to start modifying SDL_Net to support SSL through calls like
SDLNet_SSL_*
Obviously since SDL_Net is LGPL I’ll be releasing the changes, but
they’ll almost certainly be ugly unless there’s interest here for a
clean and usable patch.
I’m not immediately familiar with a way to detach/attach a socket
to/from SSL like that, but it’s certainly a neat idea.
Perhaps the most realistic will be to switch ciphers to a non-encrypt,
but I’m not sure if that’s possible either.
Generally in this situation I build three connections, TCP, SSL and UDP
and just abstract away the difference with a procedural call, and send
messages with an selector for SECURE, GUARANTEED or FAST or some such.
Anyway, I’ll look into it.On Mon, 2003-01-06 at 20:07, Ray Skoog wrote:
Do you think that you could design your addition so that it is easy to
have SSL and normal modes toggleable at some level? Doing that would
not only make it seamless to integrate into current projects, but it
could be a neat configurable option in certain situations.
-ray
skoog
Jimmy wrote:
Hey all,
I’m about to start modifying SDL_Net to support SSL through calls like
SDLNet_SSL_*
Obviously since SDL_Net is LGPL I’ll be releasing the changes, but
they’ll almost certainly be ugly unless there’s interest here for a
clean and usable patch.
Even if the SSL-ness of the connection was only setable at socket
creation time it would be useful.
I wonder if a three-mode wrapper like you outline would have large
enough appeal to merit inclusion into some library (I wonder if it would
be simple enough to get into SDL_Net?). I know that it sounds quite
useful (I’ve done something of a two-mode system myself).
-ray skoog
Jimmy wrote:>I’m not immediately familiar with a way to detach/attach a socket
to/from SSL like that, but it’s certainly a neat idea.
Perhaps the most realistic will be to switch ciphers to a non-encrypt,
but I’m not sure if that’s possible either.
Generally in this situation I build three connections, TCP, SSL and UDP
and just abstract away the difference with a procedural call, and send
messages with an selector for SECURE, GUARANTEED or FAST or some such.
Anyway, I’ll look into it.
On Mon, 2003-01-06 at 20:07, Ray Skoog wrote:
Do you think that you could design your addition so that it is easy to
have SSL and normal modes toggleable at some level? Doing that would
not only make it seamless to integrate into current projects, but it
could be a neat configurable option in certain situations.
-ray
skoog
Jimmy wrote:
Hey all,
I’m about to start modifying SDL_Net to support SSL through calls like
SDLNet_SSL_*
Obviously since SDL_Net is LGPL I’ll be releasing the changes, but
they’ll almost certainly be ugly unless there’s interest here for a
clean and usable patch.