Mercurial > dovecot > core-2.2
view src/auth/db-checkpassword.h @ 14629:c93ca5e46a8a
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 24 Jun 2012 00:52:57 +0300 |
parents | cb80c575b00c |
children |
line wrap: on
line source
#ifndef CHECKPASSWORD_COMMON_H #define CHECKPASSWORD_COMMON_H #include "auth-request.h" enum db_checkpassword_status { DB_CHECKPASSWORD_STATUS_INTERNAL_FAILURE = -1, /* auth unsuccessful / user not found */ DB_CHECKPASSWORD_STATUS_FAILURE = 0, DB_CHECKPASSWORD_STATUS_OK = 1 }; typedef void db_checkpassword_callback_t(struct auth_request *request, enum db_checkpassword_status status, const char *const *extra_fields, void (*request_callback)()); struct db_checkpassword * db_checkpassword_init(const char *checkpassword_path, const char *checkpassword_reply_path); void db_checkpassword_deinit(struct db_checkpassword **db); void db_checkpassword_call(struct db_checkpassword *db, struct auth_request *request, const char *auth_password, db_checkpassword_callback_t *callback, void (*request_callback)()) ATTR_NULL(3); #endif