xref: /netbsd-src/external/ibm-public/postfix/dist/src/smtpd/smtpd_sasl_glue.h (revision b49cc1491953ef2348eff9c84520ffd0678a5c8d)
1 /*	$NetBSD: smtpd_sasl_glue.h,v 1.1.1.1 2009/06/23 10:08:56 tron Exp $	*/
2 
3 /*++
4 /* NAME
5 /*	smtpd_sasl_glue 3h
6 /* SUMMARY
7 /*	Postfix SMTP server, SASL support interface
8 /* SYNOPSIS
9 /*	#include "smtpd_sasl_glue.h"
10 /* DESCRIPTION
11 /* .nf
12 
13  /*
14   * SASL protocol interface
15   */
16 extern void smtpd_sasl_initialize(void);
17 extern void smtpd_sasl_activate(SMTPD_STATE *, const char *, const char *);
18 extern void smtpd_sasl_deactivate(SMTPD_STATE *);
19 extern int smtpd_sasl_authenticate(SMTPD_STATE *, const char *, const char *);
20 extern void smtpd_sasl_logout(SMTPD_STATE *);
21 extern int permit_sasl_auth(SMTPD_STATE *, int, int);
22 
23 #define smtpd_sasl_is_active(s)		((s)->sasl_server != 0)
24 #define smtpd_sasl_set_inactive(s)	((void) ((s)->sasl_server = 0))
25 
26 /* LICENSE
27 /* .ad
28 /* .fi
29 /*	The Secure Mailer license must be distributed with this software.
30 /* AUTHOR(S)
31 /*	Initial implementation by:
32 /*	Till Franke
33 /*	SuSE Rhein/Main AG
34 /*	65760 Eschborn, Germany
35 /*
36 /*	Adopted by:
37 /*	Wietse Venema
38 /*	IBM T.J. Watson Research
39 /*	P.O. Box 704
40 /*	Yorktown Heights, NY 10598, USA
41 /*--*/
42