passdb-vpopmail.c revision 84419d5cd9e8a2f802a97af18b24446f176bed4d
/* Copyright (C) 2002-2005 Timo Sirainen */
/* 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;
}
"crypted password=%s", password);
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;
}
return module;
}
{
vclose();
}
struct passdb_module_interface passdb_vpopmail = {
"vpopmail",
NULL,
};
#endif