TLS: retire obsolete options gnutls_require_{kx,mac,proto)
[exim.git] / src / src / transports / smtp.h
1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
4
5 /* Copyright (c) University of Cambridge 1995 - 2015 */
6 /* See the file NOTICE for conditions of use and distribution. */
7
8 /* Private structure for the private options and other private data. */
9
10 typedef struct {
11 uschar *hosts;
12 uschar *fallback_hosts;
13 host_item *hostlist;
14 host_item *fallback_hostlist;
15 uschar *authenticated_sender;
16 uschar *helo_data;
17 uschar *interface;
18 uschar *port;
19 uschar *protocol;
20 uschar *dscp;
21 uschar *serialize_hosts;
22 uschar *hosts_try_auth;
23 uschar *hosts_require_auth;
24 #ifdef EXPERIMENTAL_DANE
25 uschar *hosts_try_dane;
26 uschar *hosts_require_dane;
27 #endif
28 #ifndef DISABLE_PRDR
29 uschar *hosts_try_prdr;
30 #endif
31 #ifndef DISABLE_OCSP
32 uschar *hosts_request_ocsp;
33 uschar *hosts_require_ocsp;
34 #endif
35 uschar *hosts_require_tls;
36 uschar *hosts_avoid_tls;
37 uschar *hosts_verify_avoid_tls;
38 uschar *hosts_avoid_pipelining;
39 uschar *hosts_avoid_esmtp;
40 uschar *hosts_nopass_tls;
41 int command_timeout;
42 int connect_timeout;
43 int data_timeout;
44 int final_timeout;
45 int size_addition;
46 int hosts_max_try;
47 int hosts_max_try_hardlimit;
48 BOOL address_retry_include_sender;
49 BOOL allow_localhost;
50 BOOL authenticated_sender_force;
51 BOOL gethostbyname;
52 BOOL dns_qualify_single;
53 BOOL dns_search_parents;
54 dnssec_domains dnssec;
55 BOOL delay_after_cutoff;
56 BOOL hosts_override;
57 BOOL hosts_randomize;
58 BOOL keepalive;
59 BOOL lmtp_ignore_quota;
60 uschar *expand_retry_include_ip_address;
61 BOOL retry_include_ip_address;
62 #ifdef SUPPORT_SOCKS
63 uschar *socks_proxy;
64 #endif
65 #ifdef SUPPORT_TLS
66 uschar *tls_certificate;
67 uschar *tls_crl;
68 uschar *tls_privatekey;
69 uschar *tls_require_ciphers;
70 uschar *tls_sni;
71 uschar *tls_verify_certificates;
72 int tls_dh_min_bits;
73 BOOL tls_tempfail_tryclear;
74 uschar *tls_verify_hosts;
75 uschar *tls_try_verify_hosts;
76 uschar *tls_verify_cert_hostnames;
77 #endif
78 #ifndef DISABLE_DKIM
79 uschar *dkim_domain;
80 uschar *dkim_private_key;
81 uschar *dkim_selector;
82 uschar *dkim_canon;
83 uschar *dkim_sign_headers;
84 uschar *dkim_strict;
85 #endif
86 } smtp_transport_options_block;
87
88 /* Data for reading the private options. */
89
90 extern optionlist smtp_transport_options[];
91 extern int smtp_transport_options_count;
92
93 /* Block containing default values. */
94
95 extern smtp_transport_options_block smtp_transport_option_defaults;
96
97 /* The main, init, and closedown entry points for the transport */
98
99 extern BOOL smtp_transport_entry(transport_instance *, address_item *);
100 extern void smtp_transport_init(transport_instance *);
101 extern void smtp_transport_closedown(transport_instance *);
102
103
104
105 extern int smtp_auth(uschar *, unsigned, address_item *, host_item *,
106 smtp_transport_options_block *, BOOL,
107 smtp_inblock *, smtp_outblock *);
108 extern BOOL smtp_mail_auth_str(uschar *, unsigned,
109 address_item *, smtp_transport_options_block *);
110
111 #ifdef SUPPORT_SOCKS
112 extern int socks_sock_connect(host_item *, int, int, uschar *,
113 transport_instance *, int);
114 #endif
115
116 /* End of transports/smtp.h */