pub fn check_success(
transaction: TransactionId,
peering: &Peering,
mapped: SocketAddr,
) -> Result<Vec<u8>, Error>Expand description
The success response to a check sipx received (RFC 8445 §7.3.1.2, RFC 5389 §10.1.2).
mapped is the address the check arrived from — the peer-reflexive address the peer learns
itself by, so it must be the source of the datagram and not anything out of SDP.
No USERNAME: RFC 5389 §10.1.2 asks a short-term-credential response for MESSAGE-INTEGRITY
and nothing more, and RFC 5769 §2.2 — the IETF’s own response to §2.1’s request — carries
none. The key is ours, because it is our credential the peer’s check was made with.