Skip to main content

rskit_security/
lib.rs

1//! Shared security configuration used across transports.
2//!
3//! This crate owns lower-level security vocabulary that multiple transport and
4//! auth crates need without depending on each other: TLS policy,
5//! [`SecretString`], secure HTTP response headers, and shared HTTP auth scheme
6//! constants.
7
8#![warn(missing_docs)]
9
10/// HTTP security header policy and shared auth scheme constants.
11pub mod http;
12/// Secret redaction and constant-time comparison helpers.
13pub mod secret;
14/// TLS material and verification policy.
15pub mod tls;
16
17pub use http::{BASIC_AUTH_SCHEME, BEARER_AUTH_SCHEME, SecurityHeadersConfig, TransportSecurity};
18pub use secret::{SecretString, constant_time_eq};
19pub use tls::{TlsConfig, TlsVersion};