diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-21 20:03:24 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-21 20:03:24 +0000 |
commit | 06ab81f9f7b055a4456798cb9ef3266160438a08 (patch) | |
tree | 880b224a7f2e8224efeb0d4783ebe5e522d91c94 /ssl/ssl_locl.h | |
parent | abf87f79f7ebd7885e443f086a6e1a88b31f9af1 (diff) |
Add support for new TLS export ciphersuites.
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r-- | ssl/ssl_locl.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 1a907514d9..8c39d69712 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -191,14 +191,25 @@ #define SSL_SHA1 0x00040000L #define SSL_SHA (SSL_SHA1) -#define SSL_EXP_MASK 0x00300000L -#define SSL_EXP 0x00100000L -#define SSL_NOT_EXP 0x00200000L -#define SSL_EXPORT SSL_EXP +#define _SSL_EXP_MASK 0x00300000L +#define SSL_EXP40 0x00100000L +#define _SSL_NOT_EXP 0x00200000L +#define SSL_EXP56 0x00300000L +#define SSL_IS_EXPORT(a) ((a)&SSL_EXP40) +#define SSL_IS_EXPORT56(a) (((a)&_SSL_EXP_MASK) == SSL_EXP56) +#define SSL_IS_EXPORT40(a) (((a)&_SSL_EXP_MASK) == SSL_EXP40) +#define SSL_C_IS_EXPORT(c) SSL_IS_EXPORT((c)->algorithms) +#define SSL_C_IS_EXPORT56(c) SSL_IS_EXPORT56((c)->algorithms) +#define SSL_C_IS_EXPORT40(c) SSL_IS_EXPORT40((c)->algorithms) +#define SSL_EXPORT_KEYLENGTH(a) (SSL_IS_EXPORT40(a) ? 5 : 7) +#define SSL_EXPORT_PKEYLENGTH(a) (SSL_IS_EXPORT40(a) ? 512 : 1024) +#define SSL_C_EXPORT_KEYLENGTH(c) SSL_EXPORT_KEYLENGTH((c)->algorithms) +#define SSL_C_EXPORT_PKEYLENGTH(c) SSL_EXPORT_PKEYLENGTH((c)->algorithms) #define SSL_SSL_MASK 0x00c00000L #define SSL_SSLV2 0x00400000L #define SSL_SSLV3 0x00800000L +#define SSL_TLSV1 SSL_SSLV3 /* for now */ #define SSL_STRONG_MASK 0x07000000L #define SSL_LOW 0x01000000L @@ -208,7 +219,7 @@ /* we have used 0fffffff - 4 bits left to go */ #define SSL_ALL 0xffffffffL #define SSL_ALL_CIPHERS (SSL_MKEY_MASK|SSL_AUTH_MASK|SSL_ENC_MASK|\ - SSL_MAC_MASK|SSL_EXP_MASK) + SSL_MAC_MASK|_SSL_EXP_MASK) /* Mostly for SSLv3 */ #define SSL_PKEY_RSA_ENC 0 |