allinurl / gwsocket

fast, standalone, language-agnostic WebSocket server RFC6455 compliant
http://gwsocket.io
MIT License
745 stars 67 forks source link

Fails to compile with OpenSSL 1.1.0 or newer #28

Closed ghost closed 4 years ago

ghost commented 4 years ago

OpenSSL 1.1.0 introduces breaking changes which prevents gwsocket from compiling. This is what I did to get it to compile with OpenSSL 1.1.1 on Debian 10:

allinurl commented 4 years ago

Thanks for reporting this! Would you be able to submit a PR?

FlamingPaw commented 4 years ago

I came across this issue as well, and applied the changes @nyuszika7h mentioned above on my fork at https://github.com/FlamingPaw/gwsocket. I am still doing some testing on it, but it appears to be working properly with OpenSSL 1.1.0+

I also had to change the make command in addition to the compile command. The full install procedure is as follows: $ git clone https://github.com/FlamingPaw/gwsocket.git $ cd gwsocket $ autoreconf -fiv $ ./configure --with-openssl LDFLAGS=-lcrypto <-- Updated $ make LIBS="-lssl -lcrypto" <-- Updated $ make install

Testing with gwsocket --ssl-cert /path/to/my/ssl/cert --ssl-key /path/to/my/ssl/key --port 7891 --echo-mode provides a successful wss connection with gwsocket properly responding by echoing the received messages.

allinurl commented 4 years ago

This has been fixed upstream. Thanks for reporting it and posting those details!