Skip to main content

AUTH_BANNER_MAX_CHARS

Constant AUTH_BANNER_MAX_CHARS 

Source
pub const AUTH_BANNER_MAX_CHARS: usize = 512;
Expand description

Max characters kept from a server-sent pre-auth banner before truncation (A1).

The banner is remote input that arrives before authentication. It is logged for diagnostics only, so a small cap is enough and keeps hostile input bounded.