Import Upstream version 4.92
[hcoop/debian/exim4.git] / src / auths / gsasl_exim.h
CommitLineData
420a0d19
CE
1/*************************************************
2* Exim - an Internet mail transport agent *
3*************************************************/
4
5/* Copyright (c) University of Cambridge 1995 - 2012 */
6/* See the file NOTICE for conditions of use and distribution. */
7
8/* Copyright (c) Twitter Inc 2012 */
9
10/* Interface to GNU SASL library for generic authentication. */
11
12/* Authenticator-specific options. */
13
14typedef struct {
15 uschar *server_service;
16 uschar *server_hostname;
17 uschar *server_realm;
18 uschar *server_mech;
19 uschar *server_password;
20 uschar *server_scram_iter;
21 uschar *server_scram_salt;
22 BOOL server_channelbinding;
23} auth_gsasl_options_block;
24
25/* Data for reading the authenticator-specific options. */
26
27extern optionlist auth_gsasl_options[];
28extern int auth_gsasl_options_count;
29
30/* Defaults for the authenticator-specific options. */
31
32extern auth_gsasl_options_block auth_gsasl_option_defaults;
33
34/* The entry points for the mechanism */
35
36extern void auth_gsasl_init(auth_instance *);
37extern int auth_gsasl_server(auth_instance *, uschar *);
38extern int auth_gsasl_client(auth_instance *, smtp_inblock *,
2ea97746 39 int, uschar *, int);
420a0d19
CE
40extern void auth_gsasl_version_report(FILE *f);
41
42/* End of gsasl_exim.h */