sfsasl.h revision 64562
164562Sgshapiro/*
264562Sgshapiro * Copyright (c) 1999, 2000 Sendmail, Inc. and its suppliers.
364562Sgshapiro *	All rights reserved.
464562Sgshapiro *
564562Sgshapiro * By using this file, you agree to the terms and conditions set
664562Sgshapiro * forth in the LICENSE file which can be found at the top level of
764562Sgshapiro * the sendmail distribution.
864562Sgshapiro *
964562Sgshapiro *	$Id: sfsasl.h,v 8.13.4.4 2000/07/18 18:44:51 gshapiro Exp $"
1064562Sgshapiro */
1164562Sgshapiro
1264562Sgshapiro#ifndef SFSASL_H
1364562Sgshapiro# define SFSASL_H
1464562Sgshapiro
1564562Sgshapiro# if SFIO
1664562Sgshapiro#  include <sfio.h>
1764562Sgshapiro# endif /* SFIO */
1864562Sgshapiro
1964562Sgshapiro# if SASL
2064562Sgshapiro#  if SFIO
2164562Sgshapiro
2264562Sgshapiro/* sf discipline to add sasl */
2364562Sgshapirotypedef struct _sasldisc
2464562Sgshapiro{
2564562Sgshapiro	Sfdisc_t	disc;
2664562Sgshapiro	sasl_conn_t	*conn;
2764562Sgshapiro} Sasldisc_t;
2864562Sgshapiro
2964562Sgshapiroextern int	sfdcsasl __P((Sfio_t *, Sfio_t *, sasl_conn_t *));
3064562Sgshapiro
3164562Sgshapiro#  endif /* SFIO */
3264562Sgshapiro# endif /* SASL */
3364562Sgshapiro
3464562Sgshapiro# if STARTTLS
3564562Sgshapiro#  if SFIO
3664562Sgshapiro
3764562Sgshapiro/* sf discipline to add tls */
3864562Sgshapirotypedef struct _tlsdisc
3964562Sgshapiro{
4064562Sgshapiro	Sfdisc_t	disc;
4164562Sgshapiro	SSL		*con;
4264562Sgshapiro} Tlsdisc_t;
4364562Sgshapiro
4464562Sgshapiroextern int	sfdctls __P((Sfio_t *, Sfio_t *, SSL *));
4564562Sgshapiro
4664562Sgshapiro#  else /* SFIO */
4764562Sgshapiro#   if _FFR_TLS_TOREK
4864562Sgshapiro
4964562Sgshapirotypedef struct tls_conn
5064562Sgshapiro{
5164562Sgshapiro	FILE		*fp;	/* original FILE * */
5264562Sgshapiro	SSL		*con;	/* SSL context */
5364562Sgshapiro} Tlsdisc_t;
5464562Sgshapiro
5564562Sgshapiroextern int	sfdctls __P((FILE **, FILE **, SSL *));
5664562Sgshapiro
5764562Sgshapiro#   endif /* _FFR_TLS_TOREK */
5864562Sgshapiro#  endif /* SFIO */
5964562Sgshapiro# endif /* STARTTLS */
6064562Sgshapiro#endif /* ! SFSASL_H */
61