diff --git a/coreapi/authentication.c b/coreapi/authentication.c index b998c941cfa3ea8335f2a147b2165d49594a458d..9cf6a7a6d74613ca6decaa0f883eaef2a0c8efe7 100644 --- a/coreapi/authentication.c +++ b/coreapi/authentication.c @@ -389,11 +389,6 @@ LinphoneAuthInfo * linphone_core_create_auth_info(LinphoneCore *lc, const char * return linphone_auth_info_new(username, userid, passwd, ha1, realm, domain); } -/** - * Adds authentication information to the LinphoneCore. - * - * This information will be used during all SIP transactions that require authentication. -**/ void linphone_core_add_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info){ LinphoneAuthInfo *ai; bctbx_list_t *elem; @@ -468,9 +463,6 @@ void linphone_core_add_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info) void linphone_core_abort_authentication(LinphoneCore *lc, LinphoneAuthInfo *info){ } -/** - * Removes an authentication information object. -**/ void linphone_core_remove_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info){ LinphoneAuthInfo *r; r=(LinphoneAuthInfo*)linphone_core_find_auth_info(lc,info->realm,info->username,info->domain); @@ -481,11 +473,6 @@ void linphone_core_remove_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *in } } -/** - * Returns an unmodifiable list of currently entered LinphoneAuthInfo. - * @param[in] lc The LinphoneCore object - * @return \bctbx_list{LinphoneAuthInfo} -**/ const bctbx_list_t *linphone_core_get_auth_info_list(const LinphoneCore *lc){ return lc->auth_info; } diff --git a/include/linphone/core.h b/include/linphone/core.h index a9fa880bd7ba332edc4a445a3c1004da5262d04a..b18637d6c1c16a06be724b0525f44fb819b814d5 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -3012,10 +3012,29 @@ LINPHONE_PUBLIC void linphone_core_set_default_proxy_config(LinphoneCore *lc, Li */ LINPHONE_PUBLIC LinphoneAuthInfo * linphone_core_create_auth_info(LinphoneCore *lc, const char *username, const char *userid, const char *passwd, const char *ha1, const char *realm, const char *domain); +/** + * Adds authentication information to the #LinphoneCore. + * That piece of information will be used during all SIP transactions that require authentication. + * @param[in] lc The #LinphoneCore. + * @param[in] info The #LinphoneAuthInfo to add. + * @ingroup authentication + */ LINPHONE_PUBLIC void linphone_core_add_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info); +/** + * Removes an authentication information object. + * @param[in] lc The #LinphoneCore from which the #LinphoneAuthInfo will be removed. + * @param[in] info The #LinphoneAuthInfo to remove. + * @ingroup authentication + */ LINPHONE_PUBLIC void linphone_core_remove_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info); +/** + * Returns an unmodifiable list of currently entered #LinphoneAuthInfo. + * @param[in] lc The LinphoneCore object. + * @return \bctbx_list{LinphoneAuthInfo} + * @ingroup authentication + */ LINPHONE_PUBLIC const bctbx_list_t *linphone_core_get_auth_info_list(const LinphoneCore *lc); /**