- Timestamp:
- Apr 4, 2007 5:49:28 PM (18 years ago)
- Location:
- pjproject/trunk/pjnath
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_msg.h
r1150 r1151 1030 1030 * decode the packet. 1031 1031 */ 1032 PJ_STUN_CHECK_PACKET = 2 1032 PJ_STUN_CHECK_PACKET = 2, 1033 1034 /** 1035 * This option current is only valid for #pj_stun_session_on_rx_pkt(). 1036 * When specified, it tells the session NOT to authenticate the 1037 * message. 1038 */ 1039 PJ_STUN_NO_AUTHENTICATE = 4 1033 1040 }; 1034 1041 -
pjproject/trunk/pjnath/src/pjnath/stun_session.c
r1141 r1151 957 957 } 958 958 959 /* Authenticate the message */ 960 status = authenticate_msg(sess, packet, pkt_size, msg, tmp_pool, 961 src_addr, src_addr_len); 962 if (status != PJ_SUCCESS) { 963 goto on_return; 959 /* Authenticate the message, unless PJ_STUN_NO_AUTHENTICATE 960 * is specified in the option. 961 */ 962 if ((options & PJ_STUN_NO_AUTHENTICATE) == 0) { 963 status = authenticate_msg(sess, packet, pkt_size, msg, tmp_pool, 964 src_addr, src_addr_len); 965 if (status != PJ_SUCCESS) { 966 goto on_return; 967 } 964 968 } 965 969 … … 993 997 994 998 999 -
pjproject/trunk/pjnath/src/pjstun-client/client_main.c
r1150 r1151 30 30 #define REQ_IP NULL /* IP address string */ 31 31 32 #define OPTIONS PJ_STUN_NO_AUTHENTICATE 32 33 33 34 static struct global … … 157 158 if (pj_stun_msg_check(buffer, len, PJ_STUN_IS_DATAGRAM)==PJ_SUCCESS) { 158 159 rc = pj_stun_session_on_rx_pkt(g.sess, buffer, len, 159 0,160 OPTIONS, 160 161 NULL, &addr, addrlen); 161 162 if (rc != PJ_SUCCESS)
Note: See TracChangeset
for help on using the changeset viewer.