1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) The Exim Maintainers 2019 - 2022 */
6 /* Copyright (c) University of Cambridge 1995 - 2012 */
7 /* See the file NOTICE for conditions of use and distribution. */
8 /* SPDX-License-Identifier: GPL-2.0-only */
10 /* Copyright (c) Twitter Inc 2012 */
12 /* Interface to GNU SASL library for generic authentication. */
14 /* Authenticator-specific options. */
17 uschar *server_service;
18 uschar *server_hostname;
21 uschar *server_password;
24 uschar *server_scram_iter;
25 uschar *server_scram_salt;
27 uschar *client_username;
28 uschar *client_password;
30 uschar *client_spassword;
32 BOOL server_channelbinding;
33 BOOL client_channelbinding;
34 } auth_gsasl_options_block;
36 /* Data for reading the authenticator-specific options. */
38 extern optionlist auth_gsasl_options[];
39 extern int auth_gsasl_options_count;
41 /* Defaults for the authenticator-specific options. */
43 extern auth_gsasl_options_block auth_gsasl_option_defaults;
45 /* The entry points for the mechanism */
47 extern void auth_gsasl_init(auth_instance *);
48 extern int auth_gsasl_server(auth_instance *, uschar *);
49 extern int auth_gsasl_client(auth_instance *, void *,
51 extern gstring * auth_gsasl_version_report(gstring *);
52 extern void auth_gsasl_macros(void);
54 /* End of gsasl_exim.h */