Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5788:bdb16967be64 HEAD
Further const'ification of struct mech_module.
author | Andrey Panin <pazke@donpac.ru> |
---|---|
date | Sun, 10 Jun 2007 12:58:06 +0400 |
parents | 01c94fef3578 |
children | 4f22660ffd33 |
files | src/auth/auth-request-handler.c src/auth/auth-request.c src/auth/auth-request.h src/auth/auth.c src/auth/mech.c src/auth/mech.h |
diffstat | 6 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request-handler.c Wed Jun 20 02:17:55 2007 +0300 +++ b/src/auth/auth-request-handler.c Sun Jun 10 12:58:06 2007 +0400 @@ -245,7 +245,7 @@ bool auth_request_handler_auth_begin(struct auth_request_handler *handler, const char *args) { - struct mech_module *mech; + const struct mech_module *mech; struct auth_request *request; const char *const *list, *name, *arg, *initial_resp; const void *initial_resp_data;
--- a/src/auth/auth-request.c Wed Jun 20 02:17:55 2007 +0300 +++ b/src/auth/auth-request.c Sun Jun 10 12:58:06 2007 +0400 @@ -23,7 +23,7 @@ #include <stdlib.h> struct auth_request * -auth_request_new(struct auth *auth, struct mech_module *mech, +auth_request_new(struct auth *auth, const struct mech_module *mech, mech_callback_t *callback, void *context) { struct auth_request *request;
--- a/src/auth/auth-request.h Wed Jun 20 02:17:55 2007 +0300 +++ b/src/auth/auth-request.h Sun Jun 10 12:58:06 2007 +0400 @@ -46,7 +46,7 @@ are supposed to be stored to auth cache. */ struct auth_stream_reply *extra_cache_fields; - struct mech_module *mech; + const struct mech_module *mech; struct auth *auth; struct auth_passdb *passdb; struct auth_userdb *userdb; @@ -91,7 +91,7 @@ }; struct auth_request * -auth_request_new(struct auth *auth, struct mech_module *mech, +auth_request_new(struct auth *auth, const struct mech_module *mech, mech_callback_t *callback, void *context); struct auth_request *auth_request_new_dummy(struct auth *auth); void auth_request_ref(struct auth_request *request);
--- a/src/auth/auth.c Wed Jun 20 02:17:55 2007 +0300 +++ b/src/auth/auth.c Sun Jun 10 12:58:06 2007 +0400 @@ -94,7 +94,7 @@ return str; } -static void auth_mech_register(struct auth *auth, struct mech_module *mech) +static void auth_mech_register(struct auth *auth, const struct mech_module *mech) { struct mech_module_list *list; @@ -186,7 +186,7 @@ { struct auth_passdb *passdb; struct auth_userdb *userdb; - struct mech_module *mech; + const struct mech_module *mech; const char *const *mechanisms; const char *env;
--- a/src/auth/mech.c Wed Jun 20 02:17:55 2007 +0300 +++ b/src/auth/mech.c Sun Jun 10 12:58:06 2007 +0400 @@ -35,7 +35,7 @@ } } -struct mech_module *mech_module_find(const char *name) +const struct mech_module *mech_module_find(const char *name) { struct mech_module_list *list;
--- a/src/auth/mech.h Wed Jun 20 02:17:55 2007 +0300 +++ b/src/auth/mech.h Sun Jun 10 12:58:06 2007 +0400 @@ -44,7 +44,7 @@ void mech_register_module(const struct mech_module *module); void mech_unregister_module(const struct mech_module *module); -struct mech_module *mech_module_find(const char *name); +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);