5
/* tlsproxy internal interfaces
7
/* #include <tlsproxy.h>
26
int flags; /* see below */
27
int req_flags; /* request flags, see tls_proxy.h */
28
char *service; /* argv[0] */
29
VSTREAM *plaintext_stream; /* local peer: postscreen(8), etc. */
30
NBBIO *plaintext_buf; /* plaintext buffer */
31
int ciphertext_fd; /* remote peer */
32
EVENT_NOTIFY_FN ciphertext_timer; /* kludge */
33
int timeout; /* read/write time limit */
34
char *remote_endpt; /* printable remote endpoint */
35
TLS_SESS_STATE *tls_context; /* llibtls state */
36
int ssl_last_err; /* TLS I/O state */
39
#define TLSP_FLAG_DO_HANDSHAKE (1<<0)
41
extern TLSP_STATE *tlsp_state_create(const char *, VSTREAM *);
42
extern void tlsp_state_free(TLSP_STATE *);
47
/* The Secure Mailer license must be distributed with this software.
50
/* IBM T.J. Watson Research
52
/* Yorktown Heights, NY 10598, USA