~ubuntu-branches/ubuntu/edgy/dovecot/edgy-security

« back to all changes in this revision

Viewing changes to src/auth/mech-plain.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-30 15:13:37 UTC
  • mfrom: (1.10.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630151337-l772crcoe5hfd4hw
Tags: 1.0.rc1-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        safe_memset(pass, 0, strlen(pass));
74
74
}
75
75
 
76
 
static void
77
 
mech_plain_auth_initial(struct auth_request *request,
78
 
                        const unsigned char *data, size_t data_size)
79
 
{
80
 
        if (data_size == 0) {
81
 
                request->callback(request, AUTH_CLIENT_RESULT_CONTINUE,
82
 
                                  NULL, 0);
83
 
        } else {
84
 
                mech_plain_auth_continue(request, data, data_size);
85
 
        }
86
 
}
87
 
 
88
 
static void
89
 
mech_plain_auth_free(struct auth_request *request)
90
 
{
91
 
        pool_unref(request->pool);
92
 
}
93
 
 
94
76
static struct auth_request *mech_plain_auth_new(void)
95
77
{
96
78
        struct auth_request *request;
111
93
        MEMBER(passdb_need_credentials) FALSE,
112
94
 
113
95
        mech_plain_auth_new,
114
 
        mech_plain_auth_initial,
 
96
        mech_generic_auth_initial,
115
97
        mech_plain_auth_continue,
116
 
        mech_plain_auth_free
 
98
        mech_generic_auth_free
117
99
};