Commit graph

2972 commits

Author SHA1 Message Date
badaix
2530a347c2 Fix linker error 2024-12-19 22:44:51 +01:00
badaix
c112058998 Pass complete Settings struct around 2024-12-19 22:44:51 +01:00
badaix
964801896a Add ErrorOr class 2024-12-19 22:44:51 +01:00
badaix
4540e64224 Split string_utils.hpp into impl and header 2024-12-19 22:44:51 +01:00
badaix
a704fd11d5 Fix pipe reconnect 2024-12-19 22:44:51 +01:00
badaix
187ed109f0 Add doxygen to CI 2024-12-19 22:44:51 +01:00
badaix
878fecdc35 Add AuthInfo class 2024-12-19 22:44:51 +01:00
badaix
c784e2526f Update jsonrpc++ to v1.4.0 2024-12-19 22:44:51 +01:00
badaix
0a50006c0c Remove _UNICODE define 2024-12-19 22:44:51 +01:00
badaix
13285a6cbb Link catch2 non private 2024-12-19 22:44:51 +01:00
badaix
b7f3c91f30 Link catch2 2024-12-19 22:44:51 +01:00
badaix
c401b801e3 Remove CATCH_CONFIG_MAIN 2024-12-19 22:44:51 +01:00
badaix
e5cdf47e24 suppress files in build dir for cppcheck 2024-12-19 22:44:51 +01:00
badaix
7f59f5c2de suppress files in build dir for cppcheck 2024-12-19 22:44:51 +01:00
badaix
f44609a872 Fetch catch2 from git repo 2024-12-19 22:44:51 +01:00
badaix
a88ff9cfad Reformat yml files 2024-12-19 22:44:51 +01:00
badaix
348494927b Set ccache directory 2024-12-19 22:44:51 +01:00
badaix
a4c5d537a1 Use ccache 2024-12-19 22:44:51 +01:00
badaix
bfdaa6e085 Reenable warnings 2024-12-19 22:44:51 +01:00
Johannes Pohl
e44dd9fa3f Update CMakeLists.txt 2024-12-19 22:44:51 +01:00
badaix
8a7cb9147a Use Ubuntu 22.04 for static analysis 2024-12-19 22:44:51 +01:00
badaix
1b432dbae7 Fix sanitizer selection 2024-12-19 22:44:51 +01:00
badaix
67f8453586 Ignode tsan errors 2024-12-19 22:44:51 +01:00
badaix
e69e7f621d Fix warnings 2024-12-19 22:44:51 +01:00
badaix
d73ae793d7 Use ccache for sanitizers 2024-12-19 22:44:51 +01:00
badaix
f4b582ba46 Execute unit tests 2024-12-19 22:44:51 +01:00
badaix
b626217e79 Fix windows build 2024-12-19 22:44:51 +01:00
badaix
d9c394e0fa Fix mem leaks 2024-12-19 22:44:51 +01:00
badaix
9ed99f344b Add unit-tests to CI 2024-12-19 22:44:51 +01:00
badaix
f8af2c44c5 Silence warning in catch2 2024-12-19 22:44:51 +01:00
badaix
d0780b157a Update catch2 2024-12-19 22:44:51 +01:00
badaix
8c18fcb13b Fix memory leak 2024-12-19 22:44:51 +01:00
badaix
2f68a5913a Rename CMakePresets.json 2024-12-19 22:44:51 +01:00
badaix
f50a03ba1e Add OpenSSL include dir 2024-12-19 22:44:51 +01:00
badaix
c1bbfdf167 JWT improvements 2024-12-19 22:44:51 +01:00
badaix
e61c862510 Fix compiler error on macOS 2024-12-19 22:44:51 +01:00
badaix
cecde333fd Replace u_char with unsigned char 2024-12-19 22:44:51 +01:00
badaix
4321a9d9d1 Add JWT class 2024-12-19 22:44:51 +01:00
badaix
97739a460e Add 'ssl_enabled' config parameter 2024-12-19 22:44:51 +01:00
badaix
c2528623cd Make key password configurable 2024-12-19 22:44:51 +01:00
badaix
8141e72f07 Fix lib dependencies 2024-12-19 22:44:51 +01:00
badaix
542708667b cppcheck requires cmake v3.19.0 or later 2024-12-19 22:44:51 +01:00
badaix
eb9fc4ce65 Add dependency to OpenSSL 2024-12-19 22:44:51 +01:00
badaix
153d004004 Reenable plain HTTP, change HTTPS port to 1788 2024-12-19 22:44:51 +01:00
badaix
c5bd0ed6df Clean up 2024-12-19 22:44:51 +01:00
badaix
447bbb60f7 Suppress boost warning 2024-12-19 22:44:51 +01:00
badaix
a796bb2032 Use HTTPS, support for HTTP missing 2024-12-19 22:44:51 +01:00
badaix
f7bd5e733f Setup SSL context 2024-12-19 22:44:51 +01:00
badaix
6190041e86 Fix compilation with boost v1.87.0 2024-12-19 21:36:08 +01:00
Rudi Heitbaum
b2fd2bf9ef
use make_address from boost as from_string is deprecated (#1308)
Since boost 1.87.0 boost::asio::ip::address::from_string is no longer available

ref: c0d1cfce77

fixes:
    ../server/control_server.cpp: In member function 'void ControlServer::start()':
    ../server/control_server.cpp:164:111: error: 'from_string' is not a member of 'boost::asio::ip::address'
      164 |                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
          |                                                                                                               ^~~~~~~~~~~
    ../server/control_server.cpp:180:112: error: 'from_string' is not a member of 'boost::asio::ip::address'
      180 |                                                                        tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
          |                                                                                                                ^~~~~~~~~~~
    ../server/streamreader/tcp_stream.cpp: In constructor 'streamreader::TcpStream::TcpStream(streamreader::PcmStream::Listener*, boost::asio::io_context&, const ServerSettings&, const streamreader::StreamUri&)':
    ../server/streamreader/tcp_stream.cpp:67:97: error: 'from_string' is not a member of 'boost::asio::ip::address'
       67 |         acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
          |                                                                                                 ^~~~~~~~~~~
    ../server/streamreader/tcp_stream.cpp: In member function 'virtual void streamreader::TcpStream::connect()':
    ../server/streamreader/tcp_stream.cpp:96:75: error: 'from_string' is not a member of 'boost::asio::ip::address'
       96 |         boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
          |                                                                           ^~~~~~~~~~~
    ../server/stream_server.cpp: In member function 'void StreamServer::start()':
    ../server/stream_server.cpp:234:103: error: 'from_string' is not a member of 'boost::asio::ip::address'
      234 |                                                               tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
          |
2024-12-18 16:23:11 +01:00