]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: sasl-server - Drop sasl_server_mech_generic_auth_free()
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 7 Mar 2023 03:05:18 +0000 (04:05 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
12 files changed:
src/auth/auth-sasl-mech-apop.c
src/auth/auth-sasl-mech-dovecot-token.c
src/auth/sasl-server-mech-anonymous.c
src/auth/sasl-server-mech-cram-md5.c
src/auth/sasl-server-mech-digest-md5.c
src/auth/sasl-server-mech-external.c
src/auth/sasl-server-mech-login.c
src/auth/sasl-server-mech-oauth2.c
src/auth/sasl-server-mech-plain.c
src/auth/sasl-server-mech-winbind.c
src/auth/sasl-server-mech.c
src/auth/sasl-server-protected.h

index 349341e15466b696e1166353cf0dffa607a92159..f25359f4c14083b718ec68bbf5cde27eea38f67d 100644 (file)
@@ -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,
 };
index a9faf54f6863e94f14d75e7086b99c45c9e87d8e..dcb39107bf1a114666a6ae92eb885f2168da3a52 100644 (file)
@@ -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,
 };
index 3fede9a7258387bf13aa9927ba28199c0bddcb54..f357726238af22f1e391751381b4e559ff0a6d8d 100644 (file)
@@ -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,
 };
index bbfcb23a5fc980ae266d5a7417d75fc69c301a62..f4b691bf4d0bd9dfee84182125f225d74c05556b 100644 (file)
@@ -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,
 };
index cef11b91379d3cefe46fe653a7b552c6ffd4e0c6..3a6a91e7afff694f1d3aa116d467695a50400643 100644 (file)
@@ -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,
index 53ac82846c17495f969628f9f171b65111288c12..28d7792c31421c98fcaa65d0602b55f6b882386d 100644 (file)
@@ -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,
 };
index 40770cdd3a7d773e1ac172ea8e69fe1106dd539b..9637387f6ad1b53585cbd21ff6cb116c948504f7 100644 (file)
@@ -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,
 };
index 17a317839385818371211fd6a7260d6b685688e2..17d34b06ee4602e228b791c387daf6850522bd58 100644 (file)
@@ -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)
index ef002e651dfbe9c2e2fcb8040614e43d143c7597..bb1172d416d87d28d9e87df90b4631e9ffd31dad 100644 (file)
@@ -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,
 };
index 6eb17202b01e8792967b550b52665bf4fc69c56b..95bc82c27b124375ba07fb4f76bf908c69f19cde 100644 (file)
@@ -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,
 };
index 91db9420cbbb60a772b8133bce4d22864b05dbe3..4f334bc0b0b2520292a7edbadc92c575188b1455 100644 (file)
@@ -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;
-}
index fb6eedbafc049173e1e03876a7682a33baff98d3..1022ce5aa4f952298ce37e0d35364bd8a05f6a2b 100644 (file)
@@ -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);