From c2d366f11b537de549e431a294cf0cb65f6572d6 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 9 Sep 2006 13:23:09 +0000 Subject: Fix compilation error when PJSIP_AUTH_HEADER_CACHING and PJSIP_AUTH_AUTO_SEND_NEXT is disabled, and set the default for both to disabled. Also fixed the error message in pjsua when invalid arguments are specified. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@695 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsip/sip_auth.h | 2 -- pjsip/include/pjsip/sip_config.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'pjsip/include') diff --git a/pjsip/include/pjsip/sip_auth.h b/pjsip/include/pjsip/sip_auth.h index 3028f840..28e1c828 100644 --- a/pjsip/include/pjsip/sip_auth.h +++ b/pjsip/include/pjsip/sip_auth.h @@ -117,9 +117,7 @@ typedef struct pjsip_cached_auth pj_uint32_t nc; /**< Nonce count. */ pj_str_t cnonce; /**< Cnonce value. */ #endif -#if PJSIP_AUTH_AUTO_SEND_NEXT pjsip_www_authenticate_hdr *last_chal; /**< Last challenge seen. */ -#endif #if PJSIP_AUTH_HEADER_CACHING pjsip_cached_auth_hdr cached_hdr;/**< List of cached header for each method. */ diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index f023d10a..e4b402fb 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -289,7 +289,7 @@ * Default: 1 */ #if !defined(PJSIP_AUTH_HEADER_CACHING) -# define PJSIP_AUTH_HEADER_CACHING 1 +# define PJSIP_AUTH_HEADER_CACHING 0 #endif /** @@ -310,7 +310,7 @@ * Default: 1 */ #if !defined(PJSIP_AUTH_AUTO_SEND_NEXT) -# define PJSIP_AUTH_AUTO_SEND_NEXT 1 +# define PJSIP_AUTH_AUTO_SEND_NEXT 0 #endif /** -- cgit v1.2.3