Skip to main content

Module auth

Module auth 

Source
Expand description

Shared HTTP Digest authentication for SIP.

Parsing, challenge selection and digest arithmetic live in the sans-I/O SIP core so registration and call setup use one implementation. This module preserves the sipx-ua API and supplies entropy at the runtime-facing layer.

Structs§

Challenge
A challenge from a WWW-Authenticate or Proxy-Authenticate header.
Credentials
What a user knows.

Enums§

Algorithm
Which digest algorithm a challenge asks for.

Functions§

new_cnonce
A fresh client nonce.
respond
Answer a challenge.
strongest
Pick the strongest challenge offered, which is a deliberate departure from RFC 8760 §2.4.
topmost_supported
Pick the first challenge offered, which is RFC 8760 §2.4’s own rule.