Ignore:
Timestamp:
Feb 26, 2007 2:33:14 AM (17 years ago)
Author:
bennylp
Message:

Added CRC32 code to pjlib-util, and implemented STUN FINGERPRINT and MESSAGE-INTEGRITY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/errno.h

    r992 r1002  
    9494 */ 
    9595#define PJLIB_UTIL_ESTUNSYMMETRIC   (PJLIB_UTIL_ERRNO_START+11) /* 320011 */ 
     96/** 
     97 * @hideinitializer 
     98 * Invalid STUN magic value 
     99 */ 
     100#define PJLIB_UTIL_ESTUNNOTMAGIC    (PJLIB_UTIL_ERRNO_START+12) /* 320012 */ 
     101/** 
     102 * @hideinitializer 
     103 * Invalid STUN fingerprint value 
     104 */ 
     105#define PJLIB_UTIL_ESTUNFINGERPRINT (PJLIB_UTIL_ERRNO_START+13) /* 320013 */ 
    96106 
    97107 
     
    267277/** 
    268278 * @hideinitializer 
    269  * Invalid socket address length. 
     279 * Invalid STUN socket address length. 
    270280 */ 
    271281#define PJLIB_UTIL_ESTUNINADDRLEN   (PJLIB_UTIL_ERRNO_START+113)/* 320113 */ 
    272282/** 
    273283 * @hideinitializer 
    274  * IPv6 attribute not supported 
     284 * STUN IPv6 attribute not supported 
    275285 */ 
    276286#define PJLIB_UTIL_ESTUNIPV6NOTSUPP (PJLIB_UTIL_ERRNO_START+113)/* 320113 */ 
     
    282292/** 
    283293 * @hideinitializer 
    284  * Transaction ID mismatch. 
     294 * STUN transaction ID mismatch. 
    285295 */ 
    286296#define PJLIB_UTIL_ESTUNINVALIDID   (PJLIB_UTIL_ERRNO_START+115)/* 320115 */ 
     
    290300 */ 
    291301#define PJLIB_UTIL_ESTUNNOHANDLER   (PJLIB_UTIL_ERRNO_START+116)/* 320116 */ 
    292  
    293  
    294 #define PJ_STATUS_FROM_STUN_CODE(code)  -1 
     302/** 
     303 * @hideinitializer 
     304 * Invalid STUN MESSAGE-INTEGRITY attribute position in message. 
     305 * STUN MESSAGE-INTEGRITY must be put last in the message, or before 
     306 * FINGERPRINT attribute. 
     307 */ 
     308#define PJLIB_UTIL_ESTUNMSGINT      (PJLIB_UTIL_ERRNO_START+117)/* 320117 */ 
     309/** 
     310 * @hideinitializer 
     311 * Missing STUN USERNAME attribute. 
     312 * When credential is included in the STUN message (MESSAGE-INTEGRITY is 
     313 * present), the USERNAME attribute must be present in the message. 
     314 */ 
     315#define PJLIB_UTIL_ESTUNNOUSERNAME  (PJLIB_UTIL_ERRNO_START+118)/* 320118 */ 
     316 
     317 
     318#define PJ_STATUS_FROM_STUN_CODE(code)  (PJLIB_UTIL_ERRNO_START+code) 
    295319 
    296320 
Note: See TracChangeset for help on using the changeset viewer.