diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-03-01 23:39:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-03-01 23:39:08 +0000 |
commit | 68446a09672bbb32172f7bebb0efb3a838a2d827 (patch) | |
tree | 5f054cbde753efdccb08f6ff020c8a1c991de486 /pjlib-util/include | |
parent | 33a38e34d35d880a552a250927dc7430e31f8816 (diff) |
More STUN work
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1030 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/include')
-rw-r--r-- | pjlib-util/include/pjlib-util/errno.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pjlib-util/include/pjlib-util/errno.h b/pjlib-util/include/pjlib-util/errno.h index 3f004ca3..d33ed1a2 100644 --- a/pjlib-util/include/pjlib-util/errno.h +++ b/pjlib-util/include/pjlib-util/errno.h @@ -301,18 +301,24 @@ #define PJLIB_UTIL_ESTUNNOHANDLER (PJLIB_UTIL_ERRNO_START+116)/* 320116 */ /** * @hideinitializer - * Invalid STUN MESSAGE-INTEGRITY attribute position in message. - * STUN MESSAGE-INTEGRITY must be put last in the message, or before - * FINGERPRINT attribute. + * Found non-FINGERPRINT attribute after MESSAGE-INTEGRITY. This is not + * valid since MESSAGE-INTEGRITY MUST be the last attribute or the + * attribute right before FINGERPRINT before the message. */ -#define PJLIB_UTIL_ESTUNMSGINT (PJLIB_UTIL_ERRNO_START+117)/* 320117 */ +#define PJLIB_UTIL_ESTUNMSGINTPOS (PJLIB_UTIL_ERRNO_START+118)/* 320118 */ +/** + * @hideinitializer + * Found attribute after FINGERPRINT. This is not valid since FINGERPRINT + * MUST be the last attribute in the message. + */ +#define PJLIB_UTIL_ESTUNFINGERPOS (PJLIB_UTIL_ERRNO_START+119)/* 320119 */ /** * @hideinitializer * Missing STUN USERNAME attribute. * When credential is included in the STUN message (MESSAGE-INTEGRITY is * present), the USERNAME attribute must be present in the message. */ -#define PJLIB_UTIL_ESTUNNOUSERNAME (PJLIB_UTIL_ERRNO_START+118)/* 320118 */ +#define PJLIB_UTIL_ESTUNNOUSERNAME (PJLIB_UTIL_ERRNO_START+120)/* 320120 */ #define PJ_STATUS_FROM_STUN_CODE(code) (PJLIB_UTIL_ERRNO_START+code) |