SASL authentication support. More...
#include <sasl/sasl.h>#include <stdbool.h>
Include dependency graph for sasl.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| bool | sasl_auth_validator (const char *authenticator) |
| Validate an auth method against Cyrus SASL methods. | |
| int | mutt_sasl_client_new (struct Connection *conn, sasl_conn_t **saslconn) |
| Wrapper for sasl_client_new() | |
| void | mutt_sasl_cleanup (void) |
| Invoke when processing is complete. | |
| int | mutt_sasl_interact (sasl_interact_t *interaction) |
| Perform an SASL interaction with the user. | |
| void | mutt_sasl_setup_conn (struct Connection *conn, sasl_conn_t *saslconn) |
| Set up an SASL connection. | |
| int | mutt_sasl_start (void) |
| Initialise SASL library. | |
SASL authentication support.
This program 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, see http://www.gnu.org/licenses/.
Definition in file sasl.h.
| bool sasl_auth_validator | ( | const char * | authenticator | ) |
Validate an auth method against Cyrus SASL methods.
| authenticator | Name of the authenticator to validate |
| true | Argument matches an accepted auth method |
Definition at line 136 of file sasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_sasl_client_new | ( | struct Connection * | conn, |
| sasl_conn_t ** | saslconn ) |
Wrapper for sasl_client_new()
| [in] | conn | Connection to a server |
| [out] | saslconn | SASL connection |
| 0 | Success |
| -1 | Error |
which also sets various security properties. If this turns out to be fine for POP too we can probably stop exporting mutt_sasl_get_callbacks().
Definition at line 606 of file sasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_sasl_cleanup | ( | void | ) |
Invoke when processing is complete.
This is a cleanup function, used to free all memory used by the library. Invoke when processing is complete.
Definition at line 786 of file sasl.c.
Here is the caller graph for this function:| int mutt_sasl_interact | ( | sasl_interact_t * | interaction | ) |
Perform an SASL interaction with the user.
| interaction | Details of interaction |
| num | SASL error code: SASL_OK or SASL_FAIL |
An example interaction might be asking the user for a password.
Definition at line 704 of file sasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_sasl_setup_conn | ( | struct Connection * | conn, |
| sasl_conn_t * | saslconn ) |
Set up an SASL connection.
| conn | Connection to a server |
| saslconn | SASL connection |
Replace connection methods, sockdata with SASL wrappers, for protection layers. Also get ssf, as a fastpath for the read/write methods.
Definition at line 741 of file sasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_sasl_start | ( | void | ) |
Initialise SASL library.
| num | SASL error code, e.g. SASL_OK |
Call before doing an SASL exchange (initialises library if necessary).
Definition at line 277 of file sasl.c.
Here is the call graph for this function:
Here is the caller graph for this function: