new access-token attribute introduced

This commit is contained in:
mom040267 2014-09-23 06:36:04 +00:00
parent 491d7d7eba
commit 21054d7af4
2 changed files with 2 additions and 1 deletions

View File

@ -102,6 +102,7 @@ typedef enum _AUTH_ALG AUTH_ALG;
*/
#define STUN_ATTRIBUTE_THIRD_PARTY_AUTHORIZATION (0x8030)
#define STUN_ATTRIBUTE_OAUTH_ACCESS_TOKEN (0x0030)
#define OAUTH_KID_SIZE (128)
#define OAUTH_HASH_FUNC_SIZE (64)

View File

@ -881,7 +881,7 @@ static int update_channel_lifetime(ts_ur_super_session *ss, ch_info* chn)
/////////////// TURN ///////////////////////////
#define SKIP_ATTRIBUTES case STUN_ATTRIBUTE_PRIORITY: case STUN_ATTRIBUTE_FINGERPRINT: case STUN_ATTRIBUTE_MESSAGE_INTEGRITY: break; \
#define SKIP_ATTRIBUTES case STUN_ATTRIBUTE_OAUTH_ACCESS_TOKEN: case STUN_ATTRIBUTE_PRIORITY: case STUN_ATTRIBUTE_FINGERPRINT: case STUN_ATTRIBUTE_MESSAGE_INTEGRITY: break; \
case STUN_ATTRIBUTE_USERNAME: case STUN_ATTRIBUTE_REALM: case STUN_ATTRIBUTE_NONCE: case STUN_ATTRIBUTE_ORIGIN: \
sar = stun_attr_get_next_str(ioa_network_buffer_data(in_buffer->nbh),\
ioa_network_buffer_get_size(in_buffer->nbh), sar); \