mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
Cleanup ciphernum
This commit is contained in:
parent
d95bc8d2d8
commit
8680c13c5f
1 changed files with 3 additions and 4 deletions
|
|
@ -140,8 +140,6 @@ typedef struct {
|
|||
int enabled; /* Enabled by default? */
|
||||
} cipher_properties;
|
||||
|
||||
#define ciphernum 18
|
||||
|
||||
/* cipher attributes */
|
||||
#define SSL_kRSA 0x00000001L
|
||||
#define SSL_aRSA 0x00000002L
|
||||
|
|
@ -172,8 +170,7 @@ typedef struct {
|
|||
#define TLS1 SSL3
|
||||
|
||||
/* Cipher translation */
|
||||
#define ciphernum 18
|
||||
static cipher_properties ciphers_def[ciphernum] = {
|
||||
static cipher_properties ciphers_def[] = {
|
||||
/* SSL 2 ciphers */
|
||||
{"DES-CBC3-MD5", SSL_EN_DES_192_EDE3_CBC_WITH_MD5, SSL_kRSA|SSL_aRSA|SSL_3DES|SSL_MD5, SSL2, 168, 168, SSL_HIGH, SSL_ALLOWED},
|
||||
{"RC2-CBC-MD5", SSL_EN_RC2_128_CBC_WITH_MD5, SSL_kRSA|SSL_aRSA|SSL_RC2|SSL_MD5, SSL2, 128, 128, SSL_MEDIUM, SSL_ALLOWED},
|
||||
|
|
@ -199,6 +196,8 @@ static cipher_properties ciphers_def[ciphernum] = {
|
|||
{"AES256-SHA", TLS_RSA_WITH_AES_256_CBC_SHA, SSL_kRSA|SSL_aRSA|SSL_AES|SSL_SHA, TLS1, 256, 256, SSL_HIGH, SSL_NOT_ALLOWED},
|
||||
};
|
||||
|
||||
#define ciphernum (sizeof(ciphers_def)/sizeof(cipher_properties))
|
||||
|
||||
/* given err which is the current errno, calls PR_SetError with
|
||||
the corresponding NSPR error code */
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue