Commit graph

24 commits

Author SHA1 Message Date
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