From 68446a09672bbb32172f7bebb0efb3a838a2d827 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 1 Mar 2007 23:39:08 +0000 Subject: More STUN work git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1030 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib-util/include/pjlib-util/errno.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'pjlib-util/include') 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) -- cgit v1.2.3