SPDX: Mass-update to GPL-2.0-or-later
[exim.git] / src / src / auths / heimdal_gssapi.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) The Exim Maintainers 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-or-later */
9
10 /* Copyright (c) Twitter Inc 2012
11    Author: Phil Pennock <pdp@exim.org> */
12 /* Copyright (c) Phil Pennock 2012 */
13
14 /* Interface to Heimdal library for GSSAPI authentication. */
15
16 /* Authenticator-specific options. */
17
18 typedef struct {
19   uschar *server_hostname;
20   uschar *server_keytab;
21   uschar *server_service;
22 } auth_heimdal_gssapi_options_block;
23
24 /* Data for reading the authenticator-specific options. */
25
26 extern optionlist auth_heimdal_gssapi_options[];
27 extern int auth_heimdal_gssapi_options_count;
28
29 /* Defaults for the authenticator-specific options. */
30
31 extern auth_heimdal_gssapi_options_block auth_heimdal_gssapi_option_defaults;
32
33 /* The entry points for the mechanism */
34
35 extern void auth_heimdal_gssapi_init(auth_instance *);
36 extern int auth_heimdal_gssapi_server(auth_instance *, uschar *);
37 extern int auth_heimdal_gssapi_client(auth_instance *, void *, int, uschar *, int);
38 extern void auth_heimdal_gssapi_version_report(BOOL);
39
40 /* End of heimdal_gssapi.h */