aboutsummaryrefslogtreecommitdiffstats
path: root/authd
Commit message (Expand)AuthorAgeFilesLines
* build: add Meson buildsystemGravatar Valentin Lorentz2026-03-171-0/+21
* make some authd warnings L_NETWIDEGravatar Jess Porter2022-10-031-1/+1
* Normalize snprintf size to use sizeof where possibleGravatar Matthew Martin2022-06-241-1/+1
* authd/providers/opm.c: include <netinet/tcp.h> (#318)•••This header defines the TCP_NODELAY flag, which this compilation unit uses. Other C libraries implicitly include this header from some other header we are using (I have not investigated which), but musl's system headers do not, which breaks building on musl. Reported-by: 0x5c <dev@0x5c.io>Gravatar Aaron Jones2022-04-081-0/+2
* Remove Windows supportGravatar jailbird7772021-07-308-1354/+3
* authd: substitute * if rewritten user is empty•••We remove characters like ^ and ~ from the ident string after checking if it's valid. If it consisted entirely of those, we'd try to send an empty string to ircd, which would break the protocol, so don't let that happen. Gravatar Ed Kellett2021-06-081-0/+6
* Mailmap and copyright update for AriadneGravatar Ariadne Conill2021-06-014-4/+4
* Undo overzealous sedderyGravatar Ed Kellett2020-10-232-2/+2
* Innovation by sedGravatar Ed Kellett2020-10-156-14/+14
* authd: Don't reveal to users how many DNSBLs are configuredGravatar Simon Arlott2020-07-091-4/+2
* authd: Fix DNSBL messagesGravatar Simon Arlott2020-07-091-3/+3
* authd: rename blacklist_provider to dnsbl_provider, change auth notices accor...Gravatar Ariadne Conill2020-07-054-132/+132
* Skip any unhandled DNS record type•••Currently the DNS resolver handles CNAME by skipping that record in the answer and looking for the subsequent A/AAAA/PTR record. There are other record types which could be handled in the same way, e.g. DNAME, but their presence currently causes the answer parsing to be abandoned. A better approach would be to skip *any* other record and just use the first A, AAAA or PTR in the answer, regardless of what comes before it.Gravatar Malcolm Scott2020-05-101-6/+2
* librb: Fix type of dst for rb_inet_pton_sock()Gravatar Simon Arlott2019-08-313-4/+4
* authd: always use an empty buffer to read ident reply•••Otherwise we could read uninitialised data beyond the actual reply Gravatar Simon Arlott2018-08-121-1/+1
* authd: fix "is provider done" logic in blacklist/opm providers•••This fixes #262. Gravatar Simon Arlott2018-08-123-34/+30
* Add basic SCTP listener support that binds to multiple addresses•••This only supports two addresses as the intended use is 1 IPv4 and 1 IPv6 address on a single-homed host, and the only supported configuration of outgoing connections to other servers is to bind a single IPv4 or IPv6 address. Gravatar Simon Arlott2017-08-243-5/+8
* remove RB_IPV6Gravatar Simon Arlott2017-08-204-45/+0
* authd: assume all providers are running•••Otherwise ident returns without setting itself running causing problems. Move opm/blacklist before ident/rdns so that they can receive completion notifications. Gravatar Simon Arlott2017-08-206-35/+36
* remove unused variablesGravatar Simon Arlott2017-08-042-8/+0
* remove unused variablesGravatar Simon Arlott2017-08-041-1/+0
* authd: opm: avoid clang static analysis warning•••Remove unused `c` variable. Gravatar Simon Arlott2017-07-291-1/+0
* authd: opm: avoid clang static analysis warning•••Remove unused `lookup` variables. Gravatar Simon Arlott2017-07-291-7/+0
* authd: don't exit() on OPM duplicate scanner errors, just ignore it•••I run into this code even with a single kind of scanner with a single port, so I'm not even sure how it thinks it already exists. Perhaps it's being parsed twice, or something similar. c.f. issue #229 Gravatar Aaron Jones2016-12-191-1/+2
* authd: Fix use after reference count decrement.Gravatar Jason Volk2016-08-051-1/+1
* Fix stupid compiler errors by my stupidity and tirednessGravatar Elizabeth Myers2016-06-271-2/+2
* blacklist: add blacklist_cancel_noneGravatar Elizabeth Myers2016-06-271-6/+13
* blacklist: add return statement. d'oh.Gravatar Elizabeth Myers2016-06-271-0/+2
* blacklist: fix precedence lossageGravatar Elizabeth Myers2016-06-271-1/+1
* blacklist: if no blacklists were checked, properly terminate query.Gravatar Elizabeth Myers2016-06-271-4/+30
* build_rdns: minor cleanupGravatar Elizabeth Myers2016-06-272-17/+23
* blacklist: tweak message for timeoutGravatar Elizabeth Myers2016-06-271-1/+1
* blacklist: give different messages for cancellation and timeoutGravatar Elizabeth Myers2016-06-271-3/+15
* authd/res: make function used only within this unit static, remove unused macrosGravatar Aaron Jones2016-06-011-12/+1
* authd/provider: remove shadowed double variable declGravatar Aaron Jones2016-06-011-1/+0
* authd/authd: a function that calls exit(3) should be marked noreturnGravatar Aaron Jones2016-06-011-0/+4
* minor spring cleaning: remove/relocate duplicate/unused includes & macros•••[ci skip] Gravatar Aaron Jones2016-05-142-4/+3
* authd: fix reference far off the end of the array on shutdown•••When authd has no more input it tries to reject all current clients with an id of UINT32_MAX. Gravatar Simon Arlott2016-05-011-5/+3
* authd: remove unused variable id from accept_clientGravatar Simon Arlott2016-05-012-10/+5
* authd: allocate the correct size of auth_client_data•••If there are holes in the auth_providers ID numbers, the array allocated based on list length won't be large enough to handle all the IDs. (auth->data could be converted to a dlink_list) Gravatar Simon Arlott2016-05-011-11/+5
* authd: Only use refcount for reference counting•••Use providers_active for provider activity tracking. Gravatar Simon Arlott2016-05-016-9/+54
* authd: fix auth->cid type sizes•••* long is too small on 32-bit systems, use unsigned long long if we want to check for out of range values * UINT32_MAX is a valid cid, and 0 isn't * make auth->cid a uint32_t not uint16_t Gravatar Simon Arlott2016-05-013-11/+12
* authd: fix memory leak in start_authGravatar Simon Arlott2016-05-011-1/+2
* authd: don't call cancel_providers recursively•••Also check that they haven't been cancelled while starting up. Gravatar Simon Arlott2016-05-012-0/+9
* authd: use a list for auth_providers•••We only need to iterate over this small fixed size list, so dictionary iteration will be less efficient. Gravatar Simon Arlott2016-05-012-24/+43
* authd: provider: make refcounting system less fragileGravatar William Pitcock2016-04-302-8/+24
* Revert "authd: change to lists instead of dictionaries for various things"•••This reverts commit 49fd293f200e3ecdd5665e62c6fdc18f33a9cdd1. Gravatar William Pitcock2016-04-306-112/+75
* authd: don't decrement refcount twice when accepting the clientGravatar Simon Arlott2016-04-301-1/+1
* opm: use rb_dlinkDelete instead of rb_dlinkFindDelete.Gravatar Elizabeth Myers2016-04-301-3/+3
* authd: change to lists instead of dictionaries for various things•••Iteration is the primary thing done on these, so using a dictionary doesn't help a lot. Furthermore (and most importantly), they are not safe to delete from. Gravatar Elizabeth Myers2016-04-306-75/+112