1 /** 2 * @file 3 * SASL authentication support 4 * 5 * @authors 6 * Copyright (C) 2000-2005,2008 Brendan Cully <brendan@kublai.com> 7 * 8 * @copyright 9 * This program is free software: you can redistribute it and/or modify it under 10 * the terms of the GNU General Public License as published by the Free Software 11 * Foundation, either version 2 of the License, or (at your option) any later 12 * version. 13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 * details. 18 * 19 * You should have received a copy of the GNU General Public License along with 20 * this program. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 23 /* common SASL helper routines */ 24 25 #ifndef MUTT_CONN_SASL_H 26 #define MUTT_CONN_SASL_H 27 28 #include <sasl/sasl.h> 29 #include <stdbool.h> 30 31 struct Connection; 32 33 bool sasl_auth_validator(const char *authenticator); 34 35 int mutt_sasl_client_new(struct Connection *conn, sasl_conn_t **saslconn); 36 void mutt_sasl_done (void); 37 int mutt_sasl_interact (sasl_interact_t *interaction); 38 void mutt_sasl_setup_conn(struct Connection *conn, sasl_conn_t *saslconn); 39 40 #endif /* MUTT_CONN_SASL_H */ 41