~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/tlsproxy/tlsproxy.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*++
 
2
/* NAME
 
3
/*      tlsproxy 3h
 
4
/* SUMMARY
 
5
/*      tlsproxy internal interfaces
 
6
/* SYNOPSIS
 
7
/*      #include <tlsproxy.h>
 
8
/* DESCRIPTION
 
9
/* .nf
 
10
 
 
11
 /*
 
12
  * Utility library.
 
13
  */
 
14
#include <vstream.h>
 
15
#include <nbbio.h>
 
16
 
 
17
 /*
 
18
  * TLS library.
 
19
  */
 
20
#include <tls.h>
 
21
 
 
22
 /*
 
23
  * Internal interface.
 
24
  */
 
25
typedef struct {
 
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 */
 
37
} TLSP_STATE;
 
38
 
 
39
#define TLSP_FLAG_DO_HANDSHAKE  (1<<0)
 
40
 
 
41
extern TLSP_STATE *tlsp_state_create(const char *, VSTREAM *);
 
42
extern void tlsp_state_free(TLSP_STATE *);
 
43
 
 
44
/* LICENSE
 
45
/* .ad
 
46
/* .fi
 
47
/*      The Secure Mailer license must be distributed with this software.
 
48
/* AUTHOR(S)
 
49
/*      Wietse Venema
 
50
/*      IBM T.J. Watson Research
 
51
/*      P.O. Box 704
 
52
/*      Yorktown Heights, NY 10598, USA
 
53
/*--*/