~ubuntu-branches/ubuntu/quantal/postfix/quantal

« back to all changes in this revision

Viewing changes to src/tls/tls.h

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2012-05-29 20:15:26 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20120529201526-kf0ev58ng2j7x1en
Tags: 2.9.3-1
New upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
#include <name_mask.h>
64
64
#include <name_code.h>
65
65
 
66
 
#define TLS_BIO_BUFSIZE 8192
67
 
 
68
66
 /*
69
67
  * Names of valid tlsmgr(8) session caches.
70
68
  */
175
173
#define TLS_PROTOCOL_SSLv2      (1<<0)  /* SSLv2 */
176
174
#define TLS_PROTOCOL_SSLv3      (1<<1)  /* SSLv3 */
177
175
#define TLS_PROTOCOL_TLSv1      (1<<2)  /* TLSv1 */
 
176
#ifdef SSL_TXT_TLSV1_1
 
177
#define TLS_PROTOCOL_TLSv1_1    (1<<3)  /* TLSv1_1 */
 
178
#else
 
179
#define TLS_PROTOCOL_TLSv1_1    0       /* Unknown */
 
180
#undef  SSL_OP_NO_TLSv1_1
 
181
#define SSL_OP_NO_TLSv1_1       0L      /* Noop */
 
182
#endif
 
183
#ifdef SSL_TXT_TLSV1_2
 
184
#define TLS_PROTOCOL_TLSv1_2    (1<<4)  /* TLSv1_2 */
 
185
#else
 
186
#define TLS_PROTOCOL_TLSv1_2    0       /* Unknown */
 
187
#undef  SSL_OP_NO_TLSv1_2
 
188
#define SSL_OP_NO_TLSv1_2       0L      /* Noop */
 
189
#endif
178
190
#define TLS_KNOWN_PROTOCOLS     \
179
 
        ( TLS_PROTOCOL_SSLv2 | TLS_PROTOCOL_SSLv3 | TLS_PROTOCOL_TLSv1 )
 
191
        ( TLS_PROTOCOL_SSLv2 | TLS_PROTOCOL_SSLv3 | TLS_PROTOCOL_TLSv1 \
 
192
           | TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 )
180
193
 
181
194
extern int tls_protocol_mask(const char *);
182
195