151 |
|
} |
152 |
|
|
153 |
|
#if OPENSSL_VERSION_NUMBER >= 0x009080FFL && !defined(OPENSSL_NO_ECDH) |
154 |
< |
if (ConfigServerInfo.ssl_dh_elliptic_curve != NULL) |
154 |
> |
if (ConfigServerInfo.ssl_dh_elliptic_curve) |
155 |
|
{ |
156 |
|
int nid = 0; |
157 |
|
EC_KEY *key = NULL; |
182 |
|
#endif |
183 |
|
|
184 |
|
if (ConfigServerInfo.ssl_message_digest_algorithm == NULL) |
185 |
– |
{ |
185 |
|
ConfigServerInfo.message_digest_algorithm = EVP_sha256(); |
187 |
– |
} |
186 |
|
else |
187 |
|
{ |
188 |
|
ConfigServerInfo.message_digest_algorithm = EVP_get_digestbyname(ConfigServerInfo.ssl_message_digest_algorithm); |
189 |
+ |
|
190 |
|
if (ConfigServerInfo.message_digest_algorithm == NULL) |
191 |
|
{ |
192 |
|
ConfigServerInfo.message_digest_algorithm = EVP_sha256(); |
215 |
|
tls_isusing(tls_data_t *tls_data) |
216 |
|
{ |
217 |
|
SSL *ssl = *tls_data; |
218 |
< |
return (ssl != NULL); |
218 |
> |
return ssl != NULL; |
219 |
|
} |
220 |
|
|
221 |
|
void |