From: Stephan Bosch Date: Tue, 7 Mar 2023 03:05:18 +0000 (+0100) Subject: auth: sasl-server - Drop sasl_server_mech_generic_auth_free() X-Git-Tag: 2.4.2~250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73eb1489f6ef4895af9888b62aa3bb44c913717d;p=thirdparty%2Fdovecot%2Fcore.git auth: sasl-server - Drop sasl_server_mech_generic_auth_free() --- diff --git a/src/auth/auth-sasl-mech-apop.c b/src/auth/auth-sasl-mech-apop.c index 349341e154..f25359f4c1 100644 --- a/src/auth/auth-sasl-mech-apop.c +++ b/src/auth/auth-sasl-mech-apop.c @@ -163,5 +163,4 @@ const struct sasl_server_mech_def mech_apop = { .auth_new = mech_apop_auth_new, .auth_initial = mech_apop_auth_initial, - .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 a9faf54f68..dcb39107bf 100644 --- a/src/auth/auth-sasl-mech-dovecot-token.c +++ b/src/auth/auth-sasl-mech-dovecot-token.c @@ -86,5 +86,4 @@ const struct sasl_server_mech_def mech_dovecot_token = { .auth_new = mech_dovecot_token_auth_new, .auth_initial = sasl_server_mech_generic_auth_initial, .auth_continue = mech_dovecot_token_auth_continue, - .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 3fede9a725..f357726238 100644 --- a/src/auth/sasl-server-mech-anonymous.c +++ b/src/auth/sasl-server-mech-anonymous.c @@ -37,5 +37,4 @@ const struct sasl_server_mech_def mech_anonymous = { .auth_new = mech_anonymous_auth_new, .auth_initial = sasl_server_mech_generic_auth_initial, .auth_continue = mech_anonymous_auth_continue, - .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 bbfcb23a5f..f4b691bf4d 100644 --- a/src/auth/sasl-server-mech-cram-md5.c +++ b/src/auth/sasl-server-mech-cram-md5.c @@ -182,5 +182,4 @@ const struct sasl_server_mech_def 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 = 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 cef11b9137..3a6a91e7af 100644 --- a/src/auth/sasl-server-mech-digest-md5.c +++ b/src/auth/sasl-server-mech-digest-md5.c @@ -614,7 +614,6 @@ const struct sasl_server_mech_def 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 = 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 53ac82846c..28d7792c31 100644 --- a/src/auth/sasl-server-mech-external.c +++ b/src/auth/sasl-server-mech-external.c @@ -46,5 +46,4 @@ const struct sasl_server_mech_def mech_external = { .auth_new = mech_external_auth_new, .auth_initial = sasl_server_mech_generic_auth_initial, .auth_continue = mech_external_auth_continue, - .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 40770cdd3a..9637387f6a 100644 --- a/src/auth/sasl-server-mech-login.c +++ b/src/auth/sasl-server-mech-login.c @@ -69,5 +69,4 @@ const struct sasl_server_mech_def mech_login = { .auth_new = mech_login_auth_new, .auth_initial = mech_login_auth_initial, .auth_continue = mech_login_auth_continue, - .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 17a3178393..17d34b06ee 100644 --- a/src/auth/sasl-server-mech-oauth2.c +++ b/src/auth/sasl-server-mech-oauth2.c @@ -322,7 +322,6 @@ const struct sasl_server_mech_def mech_oauthbearer = { .auth_new = mech_oauth2_auth_new, .auth_initial = sasl_server_mech_generic_auth_initial, .auth_continue = mech_oauthbearer_auth_continue, - .auth_free = sasl_server_mech_generic_auth_free, }; const struct sasl_server_mech_def mech_xoauth2 = { @@ -334,7 +333,6 @@ const struct sasl_server_mech_def mech_xoauth2 = { .auth_new = mech_oauth2_auth_new, .auth_initial = sasl_server_mech_generic_auth_initial, .auth_continue = mech_xoauth2_auth_continue, - .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 ef002e651d..bb1172d416 100644 --- a/src/auth/sasl-server-mech-plain.c +++ b/src/auth/sasl-server-mech-plain.c @@ -80,5 +80,4 @@ const struct sasl_server_mech_def mech_plain = { .auth_new = mech_plain_auth_new, .auth_initial = sasl_server_mech_generic_auth_initial, .auth_continue = mech_plain_auth_continue, - .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 6eb17202b0..95bc82c27b 100644 --- a/src/auth/sasl-server-mech-winbind.c +++ b/src/auth/sasl-server-mech-winbind.c @@ -349,7 +349,6 @@ const struct sasl_server_mech_def mech_winbind_ntlm = { .auth_new = mech_winbind_ntlm_auth_new, .auth_initial = mech_winbind_auth_initial, .auth_continue = mech_winbind_auth_continue, - .auth_free = sasl_server_mech_generic_auth_free, }; const struct sasl_server_mech_def mech_winbind_spnego = { @@ -361,5 +360,4 @@ const struct sasl_server_mech_def mech_winbind_spnego = { .auth_new = mech_winbind_spnego_auth_new, .auth_initial = mech_winbind_auth_initial, .auth_continue = mech_winbind_auth_continue, - .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 91db9420cb..4f334bc0b0 100644 --- a/src/auth/sasl-server-mech.c +++ b/src/auth/sasl-server-mech.c @@ -17,8 +17,3 @@ void sasl_server_mech_generic_auth_initial( request->mech->auth_continue(mreq, data, data_size); } } - -void sasl_server_mech_generic_auth_free(struct sasl_server_mech_request *mreq) -{ - (void)mreq; -} diff --git a/src/auth/sasl-server-protected.h b/src/auth/sasl-server-protected.h index fb6eedbafc..1022ce5aa4 100644 --- a/src/auth/sasl-server-protected.h +++ b/src/auth/sasl-server-protected.h @@ -77,7 +77,6 @@ const struct sasl_server_mech_def *mech_module_find(const char *name); void sasl_server_mech_generic_auth_initial( struct sasl_server_mech_request *mreq, const unsigned char *data, size_t data_size); -void sasl_server_mech_generic_auth_free(struct sasl_server_mech_request *mreq); struct mechanisms_register * mech_register_init(const struct auth_settings *set);