ruby/ext/openssl/lib/openssl
Kazuki Yamaguchi 81325db5f8 [ruby/openssl] ssl: initialize verify_mode and verify_hostname with default values
SSLContext's verify_mode expects an SSL_VERIFY_* constant (an integer)
and verify_hostname expects either true or false. However, they are set
to nil after calling OpenSSL::SSL::SSLContext.new, which is surprising.

Set a proper value to them by default: verify_mode is set to
OpenSSL::SSL::VERIFY_NONE and verify_hostname is set to false by
default.

Note that this does not change the default behavior. The certificate
verification was never performed unless verify_mode is set to
OpenSSL::SSL::VERIFY_PEER by a user. The same applies to
verify_hostname.

87d869352c
2021-03-16 19:16:11 +09:00
..
bn.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
buffering.rb Remove trailing spaces [ci skip] 2020-07-20 13:34:16 +09:00
cipher.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
digest.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
hmac.rb [ruby/openssl] hmac: implement base64digest methods 2021-03-16 19:16:11 +09:00
marshal.rb [ruby/openssl] Add Marshal support to PKey objects 2020-05-13 15:47:51 +09:00
pkcs5.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
pkey.rb [ruby/openssl] pkey: reimplement PKey::DH#compute_key and PKey::EC#dh_compute_key 2021-03-16 19:16:11 +09:00
ssl.rb [ruby/openssl] ssl: initialize verify_mode and verify_hostname with default values 2021-03-16 19:16:11 +09:00
version.rb openssl: sync with upstream repository 2020-03-10 17:41:01 +09:00
x509.rb [ruby/openssl] Add Marshal support to PKey objects 2020-05-13 15:47:51 +09:00