/*
 * (POP3Lite) APOP - 3lite POP3 Daemon (APOP support)
 * Copyright (C) 2000, 2001 Gergely Nagy <8@free.bsd.hu>
 *
 * This file is part of POP3Lite.
 *
 * POP3Lite is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * POP3Lite is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

/*
 * $Id: apop.h,v 1.5 2001/01/12 15:58:59 algernon Exp $
 */

#ifndef __POP3LITE_APOP_H__
#define __POP3LITE_APOP_H__ 1

#include <pop3lite.h>
#include <glib.h>

#ifdef __cplusplus
extern "C" 
{
#endif /* __cplusplus */

/**
 * P3LHook_apop_get_secret: hook to retrieve APOP secret
 * @control: the main control struct
 * @ssize: pointer to a place to put the secret length
 * @user: the username
 *
 * This hooks should retrieve the APOP secret (and its size)
 * corresponding to the specified username
 *
 * Returns: The secret.
 **/
typedef gpointer (*P3LHook_apop_get_secret) ( P3LControl *control,
					      size_t *ssize,
					      const char *user );

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* ! __POP3LITE_APOP_H__ */


syntax highlighted by Code2HTML, v. 0.9.1