Ignore:
Timestamp:
Mar 19, 2008 11:00:30 PM (13 years ago)
Author:
bennylp
Message:

Related to ticket #485: huge changeset to update STUN relating to managing authentication. See the ticket for the details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/stun_msg.h

    r1852 r1877  
    12261226 
    12271227/** 
     1228 * Clone a STUN message with all of its attributes. 
     1229 * 
     1230 * @param pool          Pool to allocate memory for the new message. 
     1231 * @param msg           The message to be cloned. 
     1232 * 
     1233 * @return              The duplicate message. 
     1234 */ 
     1235PJ_DECL(pj_stun_msg*) pj_stun_msg_clone(pj_pool_t *pool, 
     1236                                        const pj_stun_msg *msg); 
     1237 
     1238/** 
    12281239 * Create STUN response message.  
    12291240 * 
     
    13001311                                        const pj_str_t *key, 
    13011312                                        unsigned *p_msg_len); 
    1302  
    1303  
    1304 /** 
    1305  * Create authentication key to be used for encoding the message with 
    1306  * MESSAGE-INTEGRITY. If short term credential is used (i.e. the realm 
    1307  * argument is NULL or empty), the key will be copied from the password. 
    1308  * If long term credential is used, the key will be calculated from the 
    1309  * MD5 hash of the realm, username, and password. 
    1310  * 
    1311  * @param pool          Pool to allocate memory for the key. 
    1312  * @param key           String to receive the key. 
    1313  * @param realm         The realm of the credential, if long term credential 
    1314  *                      is to be used. If short term credential is wanted, 
    1315  *                      application can put NULL or empty string here. 
    1316  * @param username      The username. 
    1317  * @param passwd        The clear text password. 
    1318  */ 
    1319 PJ_DECL(void) pj_stun_create_key(pj_pool_t *pool, 
    1320                                  pj_str_t *key, 
    1321                                  const pj_str_t *realm, 
    1322                                  const pj_str_t *username, 
    1323                                  const pj_str_t *passwd); 
    1324  
    1325  
    13261313 
    13271314/** 
     
    14181405 
    14191406/** 
     1407 * Clone a STUN attribute. 
     1408 * 
     1409 * @param pool          Pool to allocate memory. 
     1410 * @param attr          Attribute to clone. 
     1411 * 
     1412 * @return              Duplicate attribute. 
     1413 */ 
     1414PJ_DECL(pj_stun_attr_hdr*) pj_stun_attr_clone(pj_pool_t *pool, 
     1415                                              const pj_stun_attr_hdr *attr); 
     1416 
     1417 
     1418/** 
    14201419 * Create a generic STUN IP address attribute. The \a addr_len and 
    14211420 * \a addr parameters specify whether the address is IPv4 or IPv4 
Note: See TracChangeset for help on using the changeset viewer.