Commit Graph

22 Commits

Author SHA1 Message Date
Luca Fulchir 08025de8f5
Rename lots of stuff to properly use namespaces
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-19 20:25:31 +02:00
Luca Fulchir 866edc2d7d
TONS of bugfixing. Add tests. Client now connects
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-17 11:33:47 +02:00
Luca Fulchir aff1c313f5
Cleanup & incomplete tests
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-10 14:42:24 +02:00
Luca Fulchir 6da5464c68
Helpers for dnssec
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-06 22:37:34 +02:00
Luca Fulchir 289c6c318e
More work on Dirsync request sending
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-05 09:18:32 +02:00
Luca Fulchir 9634fbba31
Move enc::sym::Secret to enc::Secret
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-01 12:56:52 +02:00
Luca Fulchir ac213a6528
More work on key exhcnage negotiation
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-01 11:41:10 +02:00
Luca Fulchir c6a3bf0820
More work on connect(), use our own Random
We use :💍:rand::SystemRandom, but we need to wrap it
for a couple of traits needed by ::x25519_dalek

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-05-30 10:52:54 +02:00
Luca Fulchir 1259996201
Connect boilerplate, cleanup
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-05-27 10:57:15 +02:00
Luca Fulchir e71167224c
Track auth and service connections client side
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-05-26 15:02:21 +02:00
Luca Fulchir a5f18ac533
DirSync::Resp work
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-05-17 10:26:39 +02:00
Luca Fulchir d1e1006143
update flakes, randomize mutex
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-03-01 18:20:03 +01:00
Luca Fulchir 7bddc9bf55
ConnTrack with ciphers
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-26 10:44:21 +01:00
Luca Fulchir 4157c207a3
DirSync response serialization
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-25 15:36:14 +01:00
Luca Fulchir 0d33033c0b
SocketList: arcswap the list of SocketList
faster socket add/remove, so that we can search this list
to find with wich socket we should send

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-23 21:57:21 +01:00
Luca Fulchir c3aff3e8df
Preparation work to write/encrypt response
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-22 21:10:00 +01:00
Luca Fulchir 9e1312b149
More work on authentication
Still lots of unfinished stuff

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-22 12:30:00 +01:00
Luca Fulchir f5a605867e
token check function stubs
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-21 22:06:17 +01:00
Luca Fulchir bb348f392e
Connect decrypt to the handshake req
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-17 23:30:19 +01:00
Luca Fulchir 1d5316c738
chacha20poly1305 decryption
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-17 23:09:49 +01:00
Luca Fulchir a39767d32b
More work on ciphers and hkdf
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-17 14:59:02 +01:00
Luca Fulchir 238a0a5516
More work on handshake. obviously unfinished
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-02-16 19:11:45 +01:00