libwebsockets 5 breaks ttyd build
Author: kiefernforstCreated Aug 3, 2026Updated Aug 3, 2026
Labelsbug
I've just tried to build ttyd against https://github.com/warmcat/libwebsockets/commit/8e376f62a865af427bee12266fd3d5743aab91ab
which leads to
./ttyd/src/server.c: In function 'main':
./ttyd/src/server.c:569:28: error: 'SSL_OP_NO_TLSv1' undeclared (first use in this function)
569 | info.ssl_options_set = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1;
| ^~~~~~~~~~~~~~~
./ttyd/src/server.c:569:28: note: each undeclared identifier is reported only once for each function it appears in
./ttyd/src/server.c:569:46: error: 'SSL_OP_NO_TLSv1_1' undeclared (first use in this function)
569 | info.ssl_options_set = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1;
| ^~~~~~~~~~~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-incompatible-pointer-type' may have been intended to silence earlier diagnostics
make[2]: *** [CMakeFiles/ttyd.dir/build.make:135: CMakeFiles/ttyd.dir/src/server.c.o] Error 1
./ttyd/src/http.c: In function 'callback_http':
./ttyd/src/http.c:220:56: error: 'X509_V_OK' undeclared (first use in this function)
220 | if (!len || (SSL_get_verify_result((SSL *)in) != X509_V_OK)) {
| ^~~~~~~~~
./ttyd/src/http.c:220:56: note: each undeclared identifier is reported only once for each function it appears in
./ttyd/src/http.c:221:45: error: 'X509_STORE_CTX' undeclared (first use in this function)
221 | int err = X509_STORE_CTX_get_error((X509_STORE_CTX *)user);
| ^~~~~~~~~~~~~~
./ttyd/src/http.c:221:61: error: expected expression before ')' token
221 | int err = X509_STORE_CTX_get_error((X509_STORE_CTX *)user);
| ^
./ttyd/src/http.c:222:69: error: expected expression before ')' token
222 | int depth = X509_STORE_CTX_get_error_depth((X509_STORE_CTX *)user);
| ^
./ttyd/src/http.c:223:27: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
223 | const char *msg = X509_verify_cert_error_string(err);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~Source: tsl0922/ttyd