Commit Graph

9507 Commits (99de2b3ceed9911008c49fcb6d3271feef36d1f7)
 

Author SHA1 Message Date
angryce 99de2b3cee Merge branch 'unreal60_dev' of github.com:unrealircd/unrealircd into unrealircd-unreal60_dev
8 months ago
Bram Matthys 14215e1837
Fix two memory leaks in RPC:
8 months ago
Bram Matthys fdf0d545d7
Split rpc_client_handshake() into rpc_client_handshake_unix_socket()
8 months ago
Bram Matthys 25d5ae93e6
Do some sanity checking in webserver (fixes crash)
8 months ago
Bram Matthys faffe7c9a8
Fix crash in webserver
8 months ago
Bram Matthys 7c8918e22d
Update rpc_error() to use JsonRpcError (enum) and add more error values.
8 months ago
Bram Matthys b38b0f5086
Set loop.config_state to one of CONFIG_STATE_* so modules (and core)
8 months ago
Bram Matthys 0a4c6e877d
Fix crash if 'websocket' is loaded without 'websocket_common'.
8 months ago
Bram Matthys a14609f493
Fix small memory leak in webserver.
8 months ago
Bram Matthys 26ab79132b
Fix memory leak in webserver for HTTPS POST.
8 months ago
Bram Matthys bbf9600504
Mention JSON-RPC documentation in early release notes.
8 months ago
Bram Matthys 1fe6119026
Make tld::motd and tld::rules optional.
8 months ago
Bram Matthys 55387a8aa4
RPC: Fix strchr() on non-nul-terminated string (leading to OOB read)
8 months ago
Bram Matthys 85784e8118
Bump version to 6.0.5-git
8 months ago
Bram Matthys 8b2caf5501
Make listen::options::rpc implicitly enable TLS, so nobody
8 months ago
Bram Matthys 5301ab5be8 Add some TODO items
8 months ago
Bram Matthys 941439a710 Use RPC_CALL_FUNC() just like how we have CMD_FUNC()
8 months ago
Bram Matthys c24a8e43e3 Fix outdated doxygen information on CMD_FUNC()
8 months ago
Bram Matthys f99085fc03 RPC: add user.get()
8 months ago
Bram Matthys 0e60b8bbfb RPC: Add ?username=xyz&password=zzz authentication as well
8 months ago
Bram Matthys c611f18d56 RPC: Add rpc-user { } block and do authentication
8 months ago
Bram Matthys ab999659fc Remove some FIXME's and cleanup code a little bit.
8 months ago
Bram Matthys feb2c9c418 Don't print "Link to server [..] closed" for RPC and control sockets.
8 months ago
Bram Matthys e718d2021f Make websocket work over RPC
8 months ago
Bram Matthys 853f0685ed Split off big chunk of websocket module into websocket_common module.
8 months ago
Bram Matthys 7679ec7920 Get rid of cast, do things properly.
8 months ago
Bram Matthys 0eb42155dd Limit request body to 4k by default.
8 months ago
Bram Matthys 3e35b8e96a Small code cleanup
8 months ago
Bram Matthys 467e3d847a Handle chunked encoding in webserver (mostly meant for RPC).
8 months ago
Bram Matthys 4a68008b81 Rename some more:
8 months ago
Bram Matthys 12f2cd8555 Rename webserver_handle_body_data() -> webserver_handle_request_body()
8 months ago
Bram Matthys 9afdcb7ff0 Add request body handler in webserver -- only a beginning, the
8 months ago
Bram Matthys cf60b22b31 Close RPC web connection immediately when all has been sent.
8 months ago
Bram Matthys f9794c7ed5 Make RPC API work over HTTP(S). Well, first steps, anyway.
8 months ago
Bram Matthys b710fb188b Add get_nvplist() function.
8 months ago
Bram Matthys 5e81a6ee67 Add listener->start_handshake function pointer.
8 months ago
Bram Matthys 2bf41a47d2 Don't check for connect-flood on RPC connections.
8 months ago
Bram Matthys 46588db89a Fix rehash crash since adding RPC code.
8 months ago
Bram Matthys 2c8fc5e641 Move special handling of control socket to procio_server.c.
8 months ago
Bram Matthys df8c5cfd76 Add ability to skip connect-flood and zlined checks via listener->options
8 months ago
Bram Matthys 29eb89a528 Attach client->local->listener to a client very early, now that it is safe.
8 months ago
Bram Matthys 1d613a592c Remove freeing of client->local->listener and refdec from exit_client()
8 months ago
Bram Matthys 60c83b4ba1 Move connect-flood and max-unknown-connections-per-ip into their own module.
8 months ago
Bram Matthys a09d4a7e88 Add CLIENT_STATUS_RPC and add SetRPC() and IsRPC().
8 months ago
Bram Matthys 6b30482c04 Don't apply registration timeout to *NIX domain socket connections.
8 months ago
Bram Matthys 1830f3e53f Add RPC channel.list call to show list of channels (with all details)
8 months ago
Bram Matthys 61ba3727df JSON-RPC: Use proper error response with error codes according to
8 months ago
Bram Matthys 4cd520d327 Make user.list() RPC API return a list of all users with details.
8 months ago
Bram Matthys 31fc2843a2 Add "rpc" module. Supports parsing from *NIX domain sockets for starters.
8 months ago
Bram Matthys 53732e0f78 Warn if 'websocket' module is loaded without 'webserver' (= won't work).
8 months ago