Skip to main content

check_role

Function check_role 

Source
fn check_role(parameters: &[KeyValuePair]) -> Result<(), SetupError>
Expand description

Hold a setup message to the ROLE rule.

Section 6.2.2.1: “Both endpoints MUST send a ROLE parameter with one of the three values specified above. Both endpoints MUST close the session if the ROLE parameter is missing or is not one of the three above-specified values.” The three values are the ones Role names, and this is the only draft that states the rule at all - draft-08 removed the parameter, so no later draft has a ROLE to check.