diff options
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_auth.h | 12 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_auth.h b/pjsip/include/pjsip/sip_auth.h index b1b28f54..eb835d27 100644 --- a/pjsip/include/pjsip/sip_auth.h +++ b/pjsip/include/pjsip/sip_auth.h @@ -234,6 +234,18 @@ PJ_DECL(void) pjsip_cred_info_dup(pj_pool_t *pool, const pjsip_cred_info *src); /** + * Compare two credential infos. + * + * @param cred1 The credential info to compare. + * @param cred2 The credential info to compare. + * + * @return 0 if both credentials are equal. + */ +PJ_DECL(int) pjsip_cred_info_cmp(const pjsip_cred_info *cred1, + const pjsip_cred_info *cred2); + + +/** * Type of function to lookup credential for the specified name. * * @param pool Pool to initialize the credential info. diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index 647adc06..877e6b8e 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -141,6 +141,8 @@ typedef struct pjsua_acc unsigned ka_target_len; /**< Length of ka_target. */ pjsip_route_hdr route_set; /**< Complete route set inc. outbnd.*/ + pj_uint32_t global_route_crc; /** CRC of global route setting. */ + pj_uint32_t local_route_crc; /** CRC of account route setting.*/ unsigned cred_cnt; /**< Number of credentials. */ pjsip_cred_info cred[PJSUA_ACC_MAX_PROXIES]; /**< Complete creds. */ |