passdb-vpopmail.c revision 6420154390295de70cfd90be8766f2b10f07c1a8
/* 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 void
{
const char *crypted_pass;
const char *scheme;
int ret;
return;
}
return;
}
scheme, "vpopmail");
}
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