1 /* $NetBSD: smtpd_sasl_glue.h,v 1.1.1.2 2013/01/02 18:59:10 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_state_init(SMTPD_STATE *); 17 extern void smtpd_sasl_initialize(void); 18 extern void smtpd_sasl_activate(SMTPD_STATE *, const char *, const char *); 19 extern void smtpd_sasl_deactivate(SMTPD_STATE *); 20 extern int smtpd_sasl_authenticate(SMTPD_STATE *, const char *, const char *); 21 extern void smtpd_sasl_login(SMTPD_STATE *, const char *, const char *); 22 extern void smtpd_sasl_logout(SMTPD_STATE *); 23 extern int permit_sasl_auth(SMTPD_STATE *, int, int); 24 25 #define smtpd_sasl_is_active(s) ((s)->sasl_server != 0) 26 #define smtpd_sasl_set_inactive(s) ((void) ((s)->sasl_server = 0)) 27 28 /* LICENSE 29 /* .ad 30 /* .fi 31 /* The Secure Mailer license must be distributed with this software. 32 /* AUTHOR(S) 33 /* Initial implementation by: 34 /* Till Franke 35 /* SuSE Rhein/Main AG 36 /* 65760 Eschborn, Germany 37 /* 38 /* Adopted by: 39 /* Wietse Venema 40 /* IBM T.J. Watson Research 41 /* P.O. Box 704 42 /* Yorktown Heights, NY 10598, USA 43 /*--*/ 44