pub fn validate_cookie(
peer: &SocketAddr,
caller_socket_id: u32,
cookie: u32,
now_bucket: u32,
secrets: impl IntoIterator<Item = u128> + Clone,
) -> Option<CookieOrigin>Available on crate feature
link only.Expand description
Whether cookie was issued to peer and caller_socket_id under one of secrets, in
now_bucket or the bucket before it, compared in constant time. A cookie two buckets old is
refused.