diff options
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_auth.h | 1 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_auth.h b/pjsip/include/pjsip/sip_auth.h index ce262ef9..ba03f600 100644 --- a/pjsip/include/pjsip/sip_auth.h +++ b/pjsip/include/pjsip/sip_auth.h @@ -166,6 +166,7 @@ typedef struct pjsip_cached_auth /** Standard list member */ PJ_DECL_LIST_MEMBER(struct pjsip_cached_auth); + pj_pool_t *pool; /**< Pool for cached auth */ pj_str_t realm; /**< Realm. */ pj_bool_t is_proxy; /**< Server type (401/407) */ pjsip_auth_qop_type qop_value; /**< qop required by server. */ diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 210c6650..1c974812 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -1122,6 +1122,16 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) # define PJSIP_REGISTER_CLIENT_ADD_XUID_PARAM 0 #endif +/** + * Maximum size of pool allowed for auth client session in pjsip_regc. + * After the size exceeds because of Digest authentication processing, + * the pool is reset. + * + * Default is 20 kB + */ +#ifndef PJSIP_AUTH_CACHED_POOL_MAX_SIZE +# define PJSIP_AUTH_CACHED_POOL_MAX_SIZE (20 * 1024) +#endif /***************************************************************************** * SIP Event framework and presence settings. |