xref: /freebsd/contrib/sendmail/src/sfsasl.h (revision 1b6c2589164a3a7b2f62d4c28c2ffa1be860959e)
1 /*
2  * Copyright (c) 1999, 2000 Sendmail, Inc. and its suppliers.
3  *	All rights reserved.
4  *
5  * By using this file, you agree to the terms and conditions set
6  * forth in the LICENSE file which can be found at the top level of
7  * the sendmail distribution.
8  *
9  *	$Id: sfsasl.h,v 8.13.4.4 2000/07/18 18:44:51 gshapiro Exp $"
10  */
11 
12 #ifndef SFSASL_H
13 # define SFSASL_H
14 
15 # if SFIO
16 #  include <sfio.h>
17 # endif /* SFIO */
18 
19 # if SASL
20 #  if SFIO
21 
22 /* sf discipline to add sasl */
23 typedef struct _sasldisc
24 {
25 	Sfdisc_t	disc;
26 	sasl_conn_t	*conn;
27 } Sasldisc_t;
28 
29 extern int	sfdcsasl __P((Sfio_t *, Sfio_t *, sasl_conn_t *));
30 
31 #  endif /* SFIO */
32 # endif /* SASL */
33 
34 # if STARTTLS
35 #  if SFIO
36 
37 /* sf discipline to add tls */
38 typedef struct _tlsdisc
39 {
40 	Sfdisc_t	disc;
41 	SSL		*con;
42 } Tlsdisc_t;
43 
44 extern int	sfdctls __P((Sfio_t *, Sfio_t *, SSL *));
45 
46 #  else /* SFIO */
47 #   if _FFR_TLS_TOREK
48 
49 typedef struct tls_conn
50 {
51 	FILE		*fp;	/* original FILE * */
52 	SSL		*con;	/* SSL context */
53 } Tlsdisc_t;
54 
55 extern int	sfdctls __P((FILE **, FILE **, SSL *));
56 
57 #   endif /* _FFR_TLS_TOREK */
58 #  endif /* SFIO */
59 # endif /* STARTTLS */
60 #endif /* ! SFSASL_H */
61