Skip to main content

validate_hello_metadata

Function validate_hello_metadata 

Source
pub fn validate_hello_metadata(
    hello: &BrowserHello,
    expected_endpoint: &WebRtcDirectEndpoint,
) -> Result<String, BrowserProtocolError>
Expand description

Validate metadata received inside an authenticated post-quantum session.

ยงErrors

Returns an error if the protocol, endpoint, or peer identity does not match.