diff options
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 0c2aa249b4..514292a03e 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -115,10 +115,7 @@ | |||
115 | */ | 115 | */ |
116 | #include <stdio.h> | 116 | #include <stdio.h> |
117 | #include <openssl/objects.h> | 117 | #include <openssl/objects.h> |
118 | #ifndef OPENSSL_NO_COMP | ||
119 | #include <openssl/comp.h> | 118 | #include <openssl/comp.h> |
120 | #endif | ||
121 | |||
122 | #include "ssl_locl.h" | 119 | #include "ssl_locl.h" |
123 | 120 | ||
124 | #define SSL_ENC_DES_IDX 0 | 121 | #define SSL_ENC_DES_IDX 0 |
@@ -137,7 +134,7 @@ | |||
137 | 134 | ||
138 | 135 | ||
139 | static const EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX]={ | 136 | static const EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX]={ |
140 | NULL,NULL,NULL,NULL,NULL,NULL, | 137 | NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL |
141 | }; | 138 | }; |
142 | 139 | ||
143 | #define SSL_COMP_NULL_IDX 0 | 140 | #define SSL_COMP_NULL_IDX 0 |
@@ -389,7 +386,7 @@ int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, | |||
389 | break; | 386 | break; |
390 | } | 387 | } |
391 | 388 | ||
392 | if ((i < 0) || (i > SSL_ENC_NUM_IDX)) | 389 | if ((i < 0) || (i >= SSL_ENC_NUM_IDX)) |
393 | *enc=NULL; | 390 | *enc=NULL; |
394 | else | 391 | else |
395 | { | 392 | { |
@@ -411,7 +408,7 @@ int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, | |||
411 | i= -1; | 408 | i= -1; |
412 | break; | 409 | break; |
413 | } | 410 | } |
414 | if ((i < 0) || (i > SSL_MD_NUM_IDX)) | 411 | if ((i < 0) || (i >= SSL_MD_NUM_IDX)) |
415 | *md=NULL; | 412 | *md=NULL; |
416 | else | 413 | else |
417 | *md=ssl_digest_methods[i]; | 414 | *md=ssl_digest_methods[i]; |