Reorganize protocol and pseudoclients into a modules/ tree

The core stays in src/; protocol and pseudoclients move to modules/,
pulled in with #[path].
This commit is contained in:
Jean Chevronnet 2026-07-12 10:31:09 +00:00
parent dbc45a0b6a
commit 677963924a
No known key found for this signature in database
11 changed files with 43 additions and 17 deletions

View file

@ -542,7 +542,7 @@ impl RegLimiter {
#[cfg(test)]
mod tests {
use super::*;
use crate::services::nickserv::NickServ;
use crate::nickserv::NickServ;
fn plain(authzid: &[u8], authcid: &[u8], passwd: &[u8]) -> String {
let mut payload = Vec::new();
@ -934,7 +934,7 @@ mod tests {
// only the founder can drop.
#[test]
fn chanserv_register_info_drop() {
use crate::services::chanserv::ChanServ;
use crate::chanserv::ChanServ;
let path = std::env::temp_dir().join("fedserv-chanserv.jsonl");
let _ = std::fs::remove_file(&path);
let mut db = Db::open(&path, "42S");

View file

@ -1,6 +1,5 @@
//! SCRAM (RFC 5802 / RFC 7677) server side for SASL SCRAM-SHA-256 and
//! SCRAM-SHA-512. The stored verifier is byte-compatible with the rest of the
//! stack (Anope m_apiauth / Django): `v=1,i=,s=,sk=,sv=` where
//! SCRAM-SHA-512. Stored verifier format `v=1,i=,s=,sk=,sv=` where
//!
//! SaltedPassword = Hi(password, salt, i) (PBKDF2, dklen = hash len)
//! ClientKey = HMAC(SaltedPassword, "Client Key")