[Pkg-telepathy-commits] [libnice] 36/265: stun: Indications are never authentication when using long term auth

Simon McVittie smcv at debian.org
Wed May 14 12:04:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit 32bf4b287d79c2806cf3955850d1c375125dd417
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Mon Dec 23 23:22:34 2013 -0500

    stun: Indications are never authentication when using long term auth
---
 socket/turn.c    | 1 -
 stun/stunagent.c | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/socket/turn.c b/socket/turn.c
index 4d9cb72..f97aaf6 100644
--- a/socket/turn.c
+++ b/socket/turn.c
@@ -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);
   }
diff --git a/stun/stunagent.c b/stun/stunagent.c
index e3540ab..0943a02 100644
--- a/stun/stunagent.c
+++ b/stun/stunagent.c
@@ -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 &&

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list