Matt Ullman
e23126c83b
Cleanup warnings
2016-03-21 22:28:41 -04:00
William Pitcock
9783438eb4
authd: res: fix build on windows ipv6
2016-03-20 04:22:17 -05:00
William Pitcock
ddebec8cfd
reslib: really fix it this time
2016-03-20 03:57:21 -05:00
William Pitcock
f23719b7cd
authd: reslib: fix compile on win32
2016-03-20 03:56:00 -05:00
William Pitcock
4063dc2f62
authd: reslib: hook in windows DNS logic
2016-03-20 03:51:31 -05:00
William Pitcock
2dea53a203
authd: some more win32 fixes
2016-03-20 01:37:00 -05:00
William Pitcock
66cd5f6695
authd/reslib: include rb_lib.h
2016-03-20 01:33:23 -05:00
William Pitcock
c99ae1907f
authd: use GET_SS_FAMILY() where appropriate
2016-03-20 01:30:24 -05:00
William Pitcock
8da0b2f2cb
authd: use _WIN32 as the define for checking windows presence
2016-03-20 01:19:46 -05:00
William Pitcock
76ebf6c489
authd: initial pass at win32 porting
2016-03-20 01:16:41 -05:00
Elizabeth Myers
46d17a88b4
provider: compile fixes
2016-03-19 15:58:48 -05:00
Elizabeth Myers
f7b37c1dc1
authd: add provider-specific data to auth_client via a dictionary.
2016-03-19 15:47:10 -05:00
Elizabeth Myers
a16b484f27
Import this from authd-framework branch
2016-03-17 16:25:58 -05:00
Elizabeth Myers
2b0cc3d36a
Redo of the authd-framework branch.
...
This is basically most of the code from the authd-framework branch, but
written to the new DNS code in master. Not quite done yet but getting
there.
2016-03-17 16:23:27 -05:00
Elizabeth Myers
1d9925cfb3
authd: fix a fallthrough.
2016-03-13 03:22:41 -05:00
Elizabeth Myers
540676fc18
cancel_query: fix stupid build error
2016-03-12 07:36:57 -06:00
Elizabeth Myers
45ac1e3ce6
authd: add the ability to cancel DNS requests
2016-03-12 07:10:27 -06:00
Elizabeth Myers
399c633313
authd: add improved API for internal usage
...
This is similar to what exists in ircd, but instead of request ID's, we
return struct dns_query pointers (that are freed by the DNS callback, so
you don't have to worry about their lifecycle management).
2016-03-12 07:08:27 -06:00
Elizabeth Myers
91f870b39b
auth: enable soft reject of clients.
...
This doesn't cancel callbacks in progress. This is useful in cases where
you're not sure you want to reject a client yet.
2016-03-10 11:30:09 -06:00
Elizabeth Myers
df32819e04
authd: tag rejection type.
2016-03-10 11:27:07 -06:00
Elizabeth Myers
c2222d7e9a
authd: actually init providers on startup.
...
(Yay, it doesn't crash!)
2016-03-10 10:04:35 -06:00
Elizabeth Myers
8b4544c9dc
authd: load ident provider
2016-03-10 10:01:41 -06:00
Elizabeth Myers
f1861e48e6
authd: identd fixes
2016-03-10 10:00:46 -06:00
Elizabeth Myers
b74739c247
auth: use sockaddr_storage to store ports
2016-03-10 09:32:37 -06:00
Elizabeth Myers
c70ae2e5cb
authd: properly iterate through all outstanding rdns queries on timeout
2016-03-10 08:43:46 -06:00
Elizabeth Myers
9eb410b347
rdns: properly set provider
2016-03-10 08:28:22 -06:00
Elizabeth Myers
cafe4dd8df
authd: plug in new C type.
2016-03-10 08:09:16 -06:00
Elizabeth Myers
50f842125a
authd: crap, C was taken already, rename reload to H.
2016-03-10 08:07:29 -06:00
Elizabeth Myers
8dc9aa85b6
authd: crap, C was taken already, rename reload to H.
2016-03-10 08:06:57 -06:00
Elizabeth Myers
187643195c
authd: add rdns provider (compile-tested)
2016-03-10 08:04:17 -06:00
Elizabeth Myers
5bfc606fa4
authd/provider: use rb_sockaddr_storage for IP addresses.
2016-03-10 07:25:22 -06:00
Elizabeth Myers
b3265d7afb
dns: create sockcmp function.
2016-03-10 06:32:25 -06:00
Elizabeth Myers
1c99f551e3
dns: add format_address function
2016-03-10 05:57:33 -06:00
Elizabeth Myers
f169fc8842
authd: add address families to provider processing.
...
ircd knows about them so let's not reinvent checking for address types
and stuff.
2016-03-10 05:40:21 -06:00
Elizabeth Myers
9b5b2dedc0
authd/provider: add these to provider.h
2016-03-10 03:15:03 -06:00
Elizabeth Myers
0f95a2749f
rename auth.[ch] to provider.[ch]
...
This name is less confusing and more descriptive.
2016-03-10 03:07:52 -06:00
Elizabeth Myers
99e538670d
authd: convert auth stuff to use a linked list.
...
This allows runtime loadable providers.
2016-03-10 03:02:16 -06:00
Elizabeth Myers
2c01da6b7e
Once more with feeling, remove useless enum bit
...
Now with 50% less experimental changes
2016-03-10 02:42:40 -06:00
Elizabeth Myers
be67cfca84
Revert "[ci skip] remove useless bit in auth.h"
...
This reverts commit 4cc131fc48
.
2016-03-10 02:42:18 -06:00
Elizabeth Myers
4cc131fc48
[ci skip] remove useless bit in auth.h
2016-03-10 02:37:52 -06:00
Elizabeth Myers
f42aa1a9e5
auth: minor changes
2016-03-10 01:59:37 -06:00
Elizabeth Myers
05e17ac208
authd: initial authentication framework implementation
...
Not plugged into anything yet, but compile-tested.
2016-03-10 01:50:36 -06:00
Mantas Mikulėnas
6f39a80ec6
authd, m_stats: fix command table sizes
...
There are 256 possible byte values.
2016-03-09 18:15:42 +02:00
Elizabeth Myers
6445c1cf0b
rehash: don't restart authd for DNS reloads
...
This could lead to pretty nasty things, like losing DNS (and in the
future, ident) queries. That's a Bad Thing™.
2016-03-09 03:46:04 -06:00
Elizabeth Myers
394b8dde17
authd: allow querying the list of DNS servers.
...
This was an asston of pain, and it still feels "dirty" as it introduces
an async call where there normally wouldn't be one. Better
implementation more than welcome.
2016-03-08 02:53:25 -06:00
Elizabeth Myers
fe037171d6
Change all leftover libratbox stuff to librb.
2016-03-06 03:49:27 -06:00
Elizabeth Myers
1b7a47417b
Remove more $Id tags.
2016-03-06 02:58:32 -06:00
William Pitcock
c83f2f5e12
rename libratbox to librb, since its pretty modified anyway
2016-03-06 02:30:20 -06:00
William Pitcock
9ea48ec30a
remove presupplied autotools files
2016-03-05 17:47:48 -06:00
William Pitcock
c678fbc08b
ircd: remove broken USE_IODEBUG_HOOKS knob and related code
2016-02-20 12:02:49 -06:00
Simon Arlott
3f6cbacc41
authd: fix link failure in random_socket
...
The random_socket function isn't used, and the code can only be
compiled if the function is optimised away (because it's static
and unused) otherwise it will fail to link when "ipv4_addr" and
"ipv6_addr" are not found.
Fix this by modifying ipv4_addr and ipv6_addr so that they're not
external variables.
2016-02-10 21:29:41 +00:00
Valerii Iatsko
5203cba5ce
Remove libratbox's snprintf.c, update related ircd code
2016-02-10 02:25:32 +01:00
William Pitcock
9e45a5ca19
buildsystem: further cleanup
2016-01-08 07:01:00 -06:00
William Pitcock
f0718c93d5
configure: use correct path for libltdl
2016-01-08 06:50:01 -06:00
William Pitcock
c7c009b563
authd: do not use \n with rb_helper_write(), unnecessary
2016-01-08 05:44:41 -06:00
William Pitcock
fa43f55940
authd: fix some DNS module logic
2016-01-08 05:32:27 -06:00
William Pitcock
5164a68650
buildsystem: update Makefile.in's
2016-01-08 05:20:32 -06:00
Aaron Jones
d8c4154da2
Fix LTDL conditional, remove some unnecessary and/or ugly configure tests
2016-01-07 17:15:55 +00:00
Aaron Jones
eec2776c6c
Fix some autotools discrepancies, disable SQLite threading code
2016-01-07 16:58:28 +00:00
William Pitcock
8cf45447e2
authd: implement DNS module
2016-01-06 03:52:37 -06:00
William Pitcock
f3e11b1d6f
authd: clean up command handlers code a little
2016-01-06 03:11:20 -06:00
William Pitcock
ed62c46ba1
authd: import stripped down charybdis resolver
2016-01-06 02:47:22 -06:00
William Pitcock
0d73e7db9c
authd: add skeleton
2016-01-06 02:31:11 -06:00