From: Stephan Bosch Date: Mon, 6 Mar 2023 21:33:49 +0000 (+0100) Subject: auth: sasl-server - Add sasl_server_ prefix to mech_generic_auth_free() X-Git-Tag: 2.4.2~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbe73f2f670064c4c9c261bd7427000db752ed0;p=thirdparty%2Fdovecot%2Fcore.git auth: sasl-server - Add sasl_server_ prefix to mech_generic_auth_free() --- diff --git a/src/auth/auth-sasl-mech-apop.c b/src/auth/auth-sasl-mech-apop.c index d00533ee27..ad74b90582 100644 --- a/src/auth/auth-sasl-mech-apop.c +++ b/src/auth/auth-sasl-mech-apop.c @@ -167,5 +167,5 @@ const struct mech_module mech_apop = { .auth_new = mech_apop_auth_new, .auth_initial = mech_apop_auth_initial, - .auth_free = mech_generic_auth_free + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/auth-sasl-mech-dovecot-token.c b/src/auth/auth-sasl-mech-dovecot-token.c index e48c609f2e..cf6a638e32 100644 --- a/src/auth/auth-sasl-mech-dovecot-token.c +++ b/src/auth/auth-sasl-mech-dovecot-token.c @@ -88,5 +88,5 @@ const struct mech_module mech_dovecot_token = { .auth_new = mech_dovecot_token_auth_new, .auth_initial = mech_generic_auth_initial, .auth_continue = mech_dovecot_token_auth_continue, - .auth_free = mech_generic_auth_free + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech-anonymous.c b/src/auth/sasl-server-mech-anonymous.c index d0a729bb60..cb4c15e763 100644 --- a/src/auth/sasl-server-mech-anonymous.c +++ b/src/auth/sasl-server-mech-anonymous.c @@ -41,5 +41,5 @@ const struct mech_module mech_anonymous = { .auth_new = mech_anonymous_auth_new, .auth_initial = mech_generic_auth_initial, .auth_continue = mech_anonymous_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech-cram-md5.c b/src/auth/sasl-server-mech-cram-md5.c index 32d9ea281b..b479b54a70 100644 --- a/src/auth/sasl-server-mech-cram-md5.c +++ b/src/auth/sasl-server-mech-cram-md5.c @@ -186,5 +186,5 @@ const struct mech_module mech_cram_md5 = { .auth_new = mech_cram_md5_auth_new, .auth_initial = mech_cram_md5_auth_initial, .auth_continue = mech_cram_md5_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech-digest-md5.c b/src/auth/sasl-server-mech-digest-md5.c index 1fe73d42fb..a2b7211c32 100644 --- a/src/auth/sasl-server-mech-digest-md5.c +++ b/src/auth/sasl-server-mech-digest-md5.c @@ -627,7 +627,7 @@ const struct mech_module mech_digest_md5 = { .auth_new = mech_digest_md5_auth_new, .auth_initial = mech_digest_md5_auth_initial, .auth_continue = mech_digest_md5_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; void mech_digest_test_set_nonce(struct auth_request *auth_request, diff --git a/src/auth/sasl-server-mech-external.c b/src/auth/sasl-server-mech-external.c index 3498a46495..10b5f8ba0b 100644 --- a/src/auth/sasl-server-mech-external.c +++ b/src/auth/sasl-server-mech-external.c @@ -60,5 +60,5 @@ const struct mech_module mech_external = { .auth_new = mech_external_auth_new, .auth_initial = mech_generic_auth_initial, .auth_continue = mech_external_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech-login.c b/src/auth/sasl-server-mech-login.c index 2029aab2ad..c6fed2372c 100644 --- a/src/auth/sasl-server-mech-login.c +++ b/src/auth/sasl-server-mech-login.c @@ -71,5 +71,5 @@ const struct mech_module mech_login = { .auth_new = mech_login_auth_new, .auth_initial = mech_login_auth_initial, .auth_continue = mech_login_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech-oauth2.c b/src/auth/sasl-server-mech-oauth2.c index bb5a6451ea..498741b086 100644 --- a/src/auth/sasl-server-mech-oauth2.c +++ b/src/auth/sasl-server-mech-oauth2.c @@ -315,7 +315,7 @@ const struct mech_module mech_oauthbearer = { .auth_new = mech_oauth2_auth_new, .auth_initial = mech_generic_auth_initial, .auth_continue = mech_oauthbearer_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; const struct mech_module mech_xoauth2 = { @@ -327,7 +327,7 @@ const struct mech_module mech_xoauth2 = { .auth_new = mech_oauth2_auth_new, .auth_initial = mech_generic_auth_initial, .auth_continue = mech_xoauth2_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; void mech_oauth2_initialize(void) diff --git a/src/auth/sasl-server-mech-plain.c b/src/auth/sasl-server-mech-plain.c index 47755efa66..29b324539a 100644 --- a/src/auth/sasl-server-mech-plain.c +++ b/src/auth/sasl-server-mech-plain.c @@ -84,5 +84,5 @@ const struct mech_module mech_plain = { .auth_new = mech_plain_auth_new, .auth_initial = mech_generic_auth_initial, .auth_continue = mech_plain_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech-winbind.c b/src/auth/sasl-server-mech-winbind.c index 0b67c38b0e..3327e86fd1 100644 --- a/src/auth/sasl-server-mech-winbind.c +++ b/src/auth/sasl-server-mech-winbind.c @@ -348,7 +348,7 @@ const struct mech_module mech_winbind_ntlm = { .auth_new = mech_winbind_ntlm_auth_new, .auth_initial = mech_winbind_auth_initial, .auth_continue = mech_winbind_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; const struct mech_module mech_winbind_spnego = { @@ -360,5 +360,5 @@ const struct mech_module mech_winbind_spnego = { .auth_new = mech_winbind_spnego_auth_new, .auth_initial = mech_winbind_auth_initial, .auth_continue = mech_winbind_auth_continue, - .auth_free = mech_generic_auth_free, + .auth_free = sasl_server_mech_generic_auth_free, }; diff --git a/src/auth/sasl-server-mech.c b/src/auth/sasl-server-mech.c index d49afd76c7..8939eb0b17 100644 --- a/src/auth/sasl-server-mech.c +++ b/src/auth/sasl-server-mech.c @@ -15,7 +15,7 @@ void mech_generic_auth_initial(struct auth_request *request, } } -void mech_generic_auth_free(struct auth_request *request) +void sasl_server_mech_generic_auth_free(struct auth_request *request) { pool_unref(&request->pool); } diff --git a/src/auth/sasl-server-protected.h b/src/auth/sasl-server-protected.h index 4a78c5f8e6..c273bfff54 100644 --- a/src/auth/sasl-server-protected.h +++ b/src/auth/sasl-server-protected.h @@ -49,7 +49,7 @@ const struct mech_module *mech_module_find(const char *name); void mech_generic_auth_initial(struct auth_request *request, const unsigned char *data, size_t data_size); -void mech_generic_auth_free(struct auth_request *request); +void sasl_server_mech_generic_auth_free(struct auth_request *request); struct mechanisms_register * mech_register_init(const struct auth_settings *set);