/*
* Copyright (c) 1999-2003, 2006, 2007 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*
*/
#include "libmilter.h"
#include <fcntl.h>
/*
** SMFI_REGISTER -- register a filter description
**
** Parameters:
** smfilter -- description of filter to register
**
** Returns:
*/
int
{
{
return MI_FAILURE;
}
return MI_FAILURE;
/* compare milter version with hard coded version */
{
/* hard failure for now! */
"%s: smfi_register: version mismatch application: %d != milter: %d",
(int) SMFI_VERSION);
/* XXX how about smfi? */
return MI_FAILURE;
}
return MI_SUCCESS;
}
/*
** SMFI_STOP -- stop milter
**
** Parameters:
** none.
**
** Returns:
** success.
*/
int
{
return MI_SUCCESS;
}
/*
** Default values for some variables.
** Most of these can be changed with the functions below.
*/
static int dbg = 0;
/*
** SMFI_OPENSOCKET -- try the socket setup to make sure we'll be
** able to start up
**
** Parameters:
** rmsocket -- if true, instructs libmilter to attempt
** to remove the socket before creating it;
** only applies for "local:" or "unix:" sockets
**
** Return:
*/
int
bool rmsocket;
{
return MI_FAILURE;
}
/*
** SMFI_SETDBG -- set debug level.
**
** Parameters:
** odbg -- new debug level.
**
** Returns:
** MI_SUCCESS
*/
int
int odbg;
{
return MI_SUCCESS;
}
/*
**
** Parameters:
** otimeout -- new timeout.
**
** Returns:
** MI_SUCCESS
*/
int
int otimeout;
{
return MI_SUCCESS;
}
/*
** SMFI_SETCONN -- set connection information (socket description)
**
** Parameters:
** oconn -- new connection information.
**
** Returns:
*/
int
char *oconn;
{
size_t l;
return MI_FAILURE;
return MI_FAILURE;
return MI_FAILURE;
return MI_SUCCESS;
}
/*
** SMFI_SETBACKLOG -- set backlog
**
** Parameters:
** obacklog -- new backlog.
**
** Returns:
*/
int
int obacklog;
{
if (obacklog <= 0)
return MI_FAILURE;
return MI_SUCCESS;
}
/*
** SMFI_MAIN -- setup milter connnection and start listener.
**
** Parameters:
** none.
**
** Returns:
*/
int
{
int r;
{
return MI_FAILURE;
}
(void) atexit(mi_clean_signals);
{
"%s: Couldn't start signal thread",
return MI_FAILURE;
}
r = MI_MONITOR_INIT();
/* Startup the listener */
r = MI_FAILURE;
return r;
}