#include <config.h>#include "sbuild-auth.h"#include "sbuild-auth-conv.h"#include "sbuild-auth-conv-tty.h"#include <cassert>#include <cerrno>#include <cstdlib>#include <cstring>#include <iostream>#include <sstream>#include <syslog.h>#include <boost/format.hpp>Include dependency graph for sbuild-auth.cc:

Go to the source code of this file.
Typedefs | |
| typedef std::pair< sbuild::auth::error_code, const char * > | emap |
Functions | |
| int | auth_conv_hook (int num_msg, const struct pam_message **msgm, struct pam_response **response, void *appdata_ptr) |
Variables | |
| emap | init_errors [] |
| This is a list of the supported error codes. | |
typedef std::pair<sbuild::auth::error_code,const char *> emap [static] |
Definition at line 45 of file sbuild-auth.cc.
| int @6::auth_conv_hook | ( | int | num_msg, | |
| const struct pam_message ** | msgm, | |||
| struct pam_response ** | response, | |||
| void * | appdata_ptr | |||
| ) | [static] |
Definition at line 75 of file sbuild-auth.cc.
References _, sbuild::auth_conv::conversation(), sbuild::DEBUG_NOTICE, sbuild::log_debug(), sbuild::log_error(), and sbuild::log_exception_error().
Referenced by sbuild::auth::start().
Here is the call graph for this function:

Here is the caller graph for this function:

emap init_errors[] [static] |
Initial value:
{
emap(auth::HOSTNAME, N_("Failed to get hostname")),
emap(auth::USER, N_("User '%1%' not found")),
emap(auth::AUTHENTICATION, N_("Authentication failed")),
emap(auth::AUTHORISATION, N_("Access not authorised")),
emap(auth::PAM_DOUBLE_INIT, N_("PAM is already initialised")),
emap(auth::PAM, N_("PAM error"))
}
It's used to construct the real error codes map.
Definition at line 51 of file sbuild-auth.cc.
1.5.1