passdb-vpopmail.c revision 73f2d3c1ff16136274930bc0bef3f06b5a92f3c2
/* Copyright (c) 2002-2007 Dovecot authors, see the included COPYING file */
/* Thanks to Courier-IMAP for showing how the vpopmail API should be used */
#include "common.h"
#ifdef PASSDB_VPOPMAIL
#include "safe-memset.h"
#include "passdb.h"
#include "password-scheme.h"
#include "userdb-vpopmail.h"
#include <stdlib.h>
#define VPOPMAIL_DEFAULT_PASS_SCHEME "CRYPT"
static char *
enum passdb_result *result_r)
{
char *password;
return NULL;
}
} else {
}
}
return password;
}
{
enum passdb_result result;
char *password;
return;
}
}
static void
{
enum passdb_result result;
char *crypted_pass;
int ret;
if (crypted_pass == NULL) {
return;
}
if (ret <= 0) {
return;
}
/* use putenv() directly rather than env_put() which
would leak memory every time we got here. use a
static buffer for putenv() as SUSv2 requirements
would otherwise corrupt our environment later. */
static char ip_env[256];
"TCPREMOTEIP=%s", host);
}
}
#endif
}
static struct passdb_module *
{
struct passdb_module *module;
args + 10);
}
return module;
}
{
vclose();
}
struct passdb_module_interface passdb_vpopmail = {
"vpopmail",
NULL,
};
#endif