Commit ca8fe244 authored by Youness Alaoui's avatar Youness Alaoui

validating the error response will give us a success since now the agent...

validating the error response will give us a success since now the agent checks if it's an unauthorized error, it won't check the integrity
parent fe458632
...@@ -222,7 +222,7 @@ int main (void) ...@@ -222,7 +222,7 @@ int main (void)
assert (val == EPERM); assert (val == EPERM);
assert (len > 0); assert (len > 0);
assert (stun_agent_validate (&agent, &resp, resp_buf, len, assert (stun_agent_validate (&agent, &resp, resp_buf, len,
stun_agent_default_validater, validater_data) == STUN_VALIDATION_UNAUTHORIZED); stun_agent_default_validater, validater_data) == STUN_VALIDATION_SUCCESS);
assert (stun_message_get_class (&resp) == STUN_ERROR); assert (stun_message_get_class (&resp) == STUN_ERROR);
stun_message_find_error (&resp, &code); stun_message_find_error (&resp, &code);
assert (code == STUN_ERROR_UNAUTHORIZED); assert (code == STUN_ERROR_UNAUTHORIZED);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment