Changeset 1877 for pjproject/trunk/pjnath/include/pjnath/stun_msg.h
- Timestamp:
- Mar 19, 2008 11:00:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_msg.h
r1852 r1877 1226 1226 1227 1227 /** 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 */ 1235 PJ_DECL(pj_stun_msg*) pj_stun_msg_clone(pj_pool_t *pool, 1236 const pj_stun_msg *msg); 1237 1238 /** 1228 1239 * Create STUN response message. 1229 1240 * … … 1300 1311 const pj_str_t *key, 1301 1312 unsigned *p_msg_len); 1302 1303 1304 /**1305 * Create authentication key to be used for encoding the message with1306 * MESSAGE-INTEGRITY. If short term credential is used (i.e. the realm1307 * 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 the1309 * 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 credential1314 * 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 1326 1313 1327 1314 /** … … 1418 1405 1419 1406 /** 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 */ 1414 PJ_DECL(pj_stun_attr_hdr*) pj_stun_attr_clone(pj_pool_t *pool, 1415 const pj_stun_attr_hdr *attr); 1416 1417 1418 /** 1420 1419 * Create a generic STUN IP address attribute. The \a addr_len and 1421 1420 * \a addr parameters specify whether the address is IPv4 or IPv4
Note: See TracChangeset
for help on using the changeset viewer.