/*
 * Copyright (c) 2005 Sendmail, 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.
 *
 *	$Id: greyctl.h,v 1.3 2006/12/01 16:54:55 ca Exp $
 */

#ifndef SM_GREYCTL_H
#define SM_GREYCTL_H 1
#include "sm/generic.h"
#include "sm/types.h"
#include "sm/net.h"
#include "sm/greycnf.h"

typedef struct greyctx_S	greyctx_T, *greyctx_P;

#define SM_GREY_AGAIN   1
#define SM_GREY_FIRST   2
#define SM_GREY_WAIT    3
#define SM_GREY_OK      SM_SUCCESS
#define SM_GREY_WHITE   SM_SUCCESS

sm_ret_T sm_greyctl_crt(greyctx_P *_pgreyctx);
sm_ret_T sm_greyctl_open(greyctx_P _greyctx, greycnf_P _greycnf);

sm_ret_T sm_greyctl_free(greyctx_P _greyctx);
sm_ret_T sm_greyctl(greyctx_P _greyctx, uchar *_key, uint _keylen, time_t _t);

#endif /* SM_GREYCTL_H */


syntax highlighted by Code2HTML, v. 0.9.1