Commit 32bf4b28 authored by Olivier Crête's avatar Olivier Crête

stun: Indications are never authentication when using long term auth

parent 39023ed4
......@@ -193,7 +193,6 @@ nice_turn_socket_new (GMainContext *ctx, NiceAddress *addr,
} else if (compatibility == NICE_TURN_SOCKET_COMPATIBILITY_OC2007) {
stun_agent_init (&priv->agent, STUN_ALL_KNOWN_ATTRIBUTES,
STUN_COMPATIBILITY_OC2007,
STUN_AGENT_USAGE_NO_INDICATION_AUTH |
STUN_AGENT_USAGE_LONG_TERM_CREDENTIALS |
STUN_AGENT_USAGE_NO_ALIGNED_ATTRIBUTES);
}
......
......@@ -193,7 +193,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
STUN_MESSAGE_RETURN_SUCCESS &&
(error_code == 400 || error_code == 401)) ||
(stun_message_get_class (msg) == STUN_INDICATION &&
(agent->usage_flags & STUN_AGENT_USAGE_NO_INDICATION_AUTH));
(agent->usage_flags & STUN_AGENT_USAGE_LONG_TERM_CREDENTIALS ||
agent->usage_flags & STUN_AGENT_USAGE_NO_INDICATION_AUTH));
if (key == NULL &&
ignore_credentials == 0 &&
......
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