Commit graph

34 commits

Author SHA1 Message Date
e3b9db4572 Fix some issues with Sender, add Multisender 2023-05-28 12:23:05 -04:00
b7378dba78 Fix some logic errors in Sender::send, as before it was sending to the
sender rather than the recipient
2023-05-28 11:02:54 -04:00
50644d2d68 Some tweaks to MailStore trait 2023-05-28 00:18:15 -04:00
Nathan Fisher
2afbede154 Add Account, Domain, MultiDomain structs and MailStore trait 2023-05-27 23:38:41 -04:00
c7ed63a260 Adjust dependency specs in Cargo.toml to allow patch version upgrades 2023-05-27 11:13:48 -04:00
46d04405ad Send client certs if they exist in ClientCertificateStore; Impl
TryFrom<Vec<u8>> for Response; Adjust error types to fit all new cases;
2023-05-27 10:58:14 -04:00
54a099bb44 Add Certificate struct and ClientCertificateStore trait 2023-05-27 01:18:30 -04:00
Nathan Fisher
680ca4e9b9 Flesh out most of sender functionality 2023-05-27 00:10:41 -04:00
Nathan Fisher
887ab8e085 Added docs for CertificateStore 2023-05-26 19:04:31 -04:00
Nathan Fisher
799ff9ef17 Added two tests for Verifier, covering Tofu success cases.
TODO: implement failing tests and check that the proper errors are
returned.
2023-05-26 18:58:38 -04:00
6e5ba46c26 Added currently failing test for Verifier. Can't satisfy the function
signature for the rustls provided api.
2023-05-26 11:19:55 -04:00
54fb9e79ab Add methods to get recipients, senders and timestamp from Request;
Add Mailuser type; Use Mailuser instead of String and Host in Request to
represent the sender;
2023-05-26 01:34:29 -04:00
Nathan Fisher
b2f60c61ec Add Mailbox, Message, Lines, Recipients types 2023-05-25 23:35:24 -04:00
Nathan Fisher
c57bb83c5c Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/dory into odin 2023-05-25 18:52:08 -04:00
102130eb75 Run cargo fmt; Remove an unused import (verifier.rs) 2023-05-25 10:24:32 -04:00
2b7119610c Add handling of certs with multiple common names; Check certs for
validity against current date;
2023-05-25 10:22:26 -04:00
0d15b8d24b Finish implementing TOFU for Verifier;
TODO: additional checks for certificate validity;
2023-05-24 17:37:44 -04:00
ac5f2c21eb Add optional serde support; Remove Clone from most error types; 2023-05-24 15:59:15 -04:00
73375abec3 Add doc comments for all status subcodes 2023-05-24 13:22:47 -04:00
4a40603efc Finish refactor and add a number of doc comments 2023-05-24 13:14:14 -04:00
02de655640 Verifier: wrap self.store in Arc<Mutex<T>>;
Refactoring:
* Add prelude
* Move some error types into modules
* make most modules private and re-export their items
2023-05-24 12:07:18 -04:00
d2802ced83 Ran cargo fmt 2023-05-24 03:15:26 -04:00
e25ebfa353 Add Sender struct 2023-05-24 03:13:49 -04:00
8d4f50e3f6 Renamed server to receiver, client to sender 2023-05-24 02:07:41 -04:00
Nathan Fisher
c3891cb485 Add doc comment and example for host module 2023-05-23 19:09:17 -04:00
7bbdb1381d Add Store, Verifier and Fingerprint types for handling
certificates
2023-05-22 20:47:20 -04:00
8d6c21325f Add LICENSE.md, run cargo fmt 2023-05-22 18:11:14 -04:00
c68b539af5 Add tests for Request; Fix some errors revealed in testing; Fix some
clippy lints;
2023-05-22 15:45:34 -04:00
f87299ad34 Request: handle empty fields as errors 2023-05-22 10:29:39 -04:00
6d66bf9664 Finish Request struct trait impl's; TODO: write tests 2023-05-22 10:25:49 -04:00
30f78990b1 Add Host struct with tests; Add Request struct (unfinished); 2023-05-22 10:12:28 -04:00
62eeb9d627 Add Response struct and tests 2023-05-22 01:29:03 -04:00
399d567c62 Implement to/from numerical status codes for Status enum and add tests 2023-05-22 00:45:43 -04:00
Nathan Fisher
26062171cc Initial commit 2023-05-21 23:27:49 -04:00