Skip to main content

global_response_verify_policy

Function global_response_verify_policy 

Source
pub fn global_response_verify_policy() -> CryptoPolicy
Expand description

The enforced RESPONSE-verify policy (consulted when a client did not set one).

When a config has been installed, its policy is returned verbatim.

When uninstalled, the default is fail-closed, symmetric to the request side (global_verify_policy): production builds default to [CryptoPolicy::Hybrid] so a client that reaches the response-verify path before install_response_verify_config rejects classical-only responses rather than silently accepting EdDSA-only ones (#277).