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