Merge branch 'odin' of codeberg.org:jeang3nie/Dory into odin
This commit is contained in:
commit
dcb182e4d0
15 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
//! Dory's internal representation of a TLS certificate
|
||||||
use crate::mailuser::Mailuser;
|
use crate::mailuser::Mailuser;
|
||||||
use std::collections::{BTreeMap, HashMap};
|
use std::collections::{BTreeMap, HashMap};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Builds an incoming connection from a TCP stream and certificate verifier
|
||||||
use super::{FingerPrintStore, Verifier};
|
use super::{FingerPrintStore, Verifier};
|
||||||
use rustls::ServerConfig;
|
use rustls::ServerConfig;
|
||||||
use std::{net::TcpStream, sync::Arc};
|
use std::{net::TcpStream, sync::Arc};
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A connection for a recieving Misfin server
|
||||||
pub mod builder;
|
pub mod builder;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod verifier;
|
pub mod verifier;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Fingerprinting for TLS certificates
|
||||||
use {
|
use {
|
||||||
digest::Digest,
|
digest::Digest,
|
||||||
rustls::Certificate,
|
rustls::Certificate,
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
//! A Gemtext representation and parser
|
||||||
pub mod parser;
|
pub mod parser;
|
||||||
pub use parser::{GemtextNode, Parser};
|
pub use parser::{GemtextNode, Parser};
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A DNS name for an internet host
|
||||||
use std::{
|
use std::{
|
||||||
fmt,
|
fmt,
|
||||||
net::{SocketAddr, ToSocketAddrs},
|
net::{SocketAddr, ToSocketAddrs},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A full representation of a Misfin mailbox, including display name
|
||||||
use crate::{mailuser::Mailuser, prelude::Host};
|
use crate::{mailuser::Mailuser, prelude::Host};
|
||||||
use std::{fmt, str::FromStr};
|
use std::{fmt, str::FromStr};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A trait for abstracting mail storage
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
use crate::prelude::{Host, Mailbox, Mailuser, Message};
|
use crate::prelude::{Host, Mailbox, Mailuser, Message};
|
||||||
use std::{collections::HashMap, io, str::FromStr};
|
use std::{collections::HashMap, io, str::FromStr};
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A naive representation of a Misfin address, minus display name
|
||||||
use crate::prelude::{Host, Mailbox, ParseMailboxError as Error};
|
use crate::prelude::{Host, Mailbox, ParseMailboxError as Error};
|
||||||
use std::{fmt, str::FromStr};
|
use std::{fmt, str::FromStr};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A Misfin message broken out into component parts, useful for client display
|
||||||
use crate::prelude::Mailbox;
|
use crate::prelude::Mailbox;
|
||||||
use std::{fmt, str::FromStr};
|
use std::{fmt, str::FromStr};
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
|
//! Accepts a connection and processes an incoming request
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! A Misfin request, made up of a recipient address and a message string
|
||||||
use crate::prelude::{Mailbox, Mailuser};
|
use crate::prelude::{Mailbox, Mailuser};
|
||||||
use std::{fmt, str::FromStr};
|
use std::{fmt, str::FromStr};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Parses the receiving server's response to the sender
|
||||||
use crate::prelude::Status;
|
use crate::prelude::Status;
|
||||||
use std::{fmt, str::FromStr};
|
use std::{fmt, str::FromStr};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Sends a Misfin [`Request`]
|
||||||
use {
|
use {
|
||||||
crate::prelude::{CertificateStore, ClientCertificateStore, Mailuser, Request, Response},
|
crate::prelude::{CertificateStore, ClientCertificateStore, Mailuser, Request, Response},
|
||||||
rustls::{ClientConfig, ClientConnection, StreamOwned},
|
rustls::{ClientConfig, ClientConnection, StreamOwned},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Return status codes for Misfin
|
||||||
mod error;
|
mod error;
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue