uWebSockets icon indicating copy to clipboard operation
uWebSockets copied to clipboard

Throw exception or stop the listener when SSL used but compiled without WITH_OPENSSL=1

Open AxcelVoid opened this issue 3 years ago • 3 comments

There also seems to be no warnings/errors if uWS is compiled without "WITH_OPENSSL=1" . It compiles and executes without using an ssl context even when the code tells it to.

Originally posted by @yuumikazoomi in https://github.com/uNetworking/uWebSockets/issues/1132#issuecomment-800413035

AxcelVoid avatar Jun 01 '22 20:06 AxcelVoid

It's kind of a core feature that TLS and TCP have the same interface, so your app doesn't have to be rewritten when moving to TLS. uWebSockets doesn't know whether or not uSockets is compiled with SSL or not.

uSockets just default to TCP if not compiled with SSL

ghost avatar Jun 01 '22 20:06 ghost

You could make it so that uSockets fails of requested to do SSL without supporting it

ghost avatar Jun 01 '22 20:06 ghost

int us_protocol_support (int)

Could be checked in listen and just print a different message as a hint

uNetworkingAB avatar Oct 08 '22 23:10 uNetworkingAB