Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    outcome: &BindingOutcome,
    policy: BindingPolicy,
) -> Result<Option<[u8; 48]>, &'static str>
Expand description

Apply a BindingPolicy to a BindingOutcome, deciding whether the handshake may proceed.

Returns Ok(Some(bls_pub)) when a binding was verified, Ok(None) when the connection is permitted without a verified binding (Off, or Opportunistic-and-absent), and Err(reason) when the policy REJECTS the peer (fail-closed).