mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
Have OpenSSL version check use cpp
This commit is contained in:
parent
f36d4bb460
commit
31d2201519
1 changed files with 2 additions and 2 deletions
|
@ -316,9 +316,9 @@ rb_init_ssl(void)
|
|||
SSL_CTX_set_verify(ssl_server_ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, verify_accept_all_cb);
|
||||
|
||||
/* Set ECDHE on OpenSSL 1.00+ */
|
||||
if (OPENSSL_VERSION_NUMBER >= 0x10000000) {
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10000000)
|
||||
SSL_CTX_set_tmp_ecdh(ssl_server_ctx, EC_KEY_new_by_curve_name(NID_secp384r1));
|
||||
}
|
||||
#endif
|
||||
|
||||
ssl_client_ctx = SSL_CTX_new(TLSv1_client_method());
|
||||
|
||||
|
|
Loading…
Reference in a new issue