websockets: preliminary SSL support on the listening/accepting side
authorKrisztian Litkey <kli@iki.fi>
Fri, 22 Feb 2013 21:32:24 +0000 (23:32 +0200)
committerKrisztian Litkey <kli@iki.fi>
Fri, 22 Feb 2013 21:32:24 +0000 (23:32 +0200)
commitf27e961b0811b7a74e5f9ed635603853b31b0b49
treeb8009a061f5578b764f3404e38e6c25af0f2425f
parent25e0724c08e94520b3550570ff003cc8d6170433
websockets: preliminary SSL support on the listening/accepting side

Enabled basic SSL support in the low-level websocket wrapper. Added
transport options for configuring the necessary SSL certificates
and keys. The current support is already enough to enable SSL on
the listening/accepting side (tested with the web console), although
there are a few things still missing (eg. mapping out the server side
REQUIRE_VALID_OPENSSL_CLIENT_CERT option). The client side SSL support
has not been tested.

One thing that probably needs to be changed is the websocket transport
naming scheme. It would be a better idea to follow the established 'ws:'
(plain) and 'wss:' (encrypted) prefixes.
src/common/websocket.c
src/common/websocket.h
src/common/websocklib.c
src/common/websocklib.h
src/common/wsck-transport.c
src/common/wsck-transport.h