mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): OpenSSL declares these
constants as longs, so we should follow that and use LONG2NUM. http://git.io/vOqxD git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9fefa60637
commit
bcc2641ed8
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Aug 1 06:54:36 2015 Aaron Patterson <tenderlove@ruby-lang.org>
|
||||
|
||||
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): OpenSSL declares these
|
||||
constants as longs, so we should follow that and use LONG2NUM.
|
||||
http://git.io/vOqxD
|
||||
|
||||
Sat Aug 1 04:06:29 2015 Aaron Patterson <tenderlove@ruby-lang.org>
|
||||
|
||||
* ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): change callback
|
||||
|
|
|
@ -2347,7 +2347,7 @@ Init_ossl_ssl(void)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, INT2NUM(SSL_##x))
|
||||
#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, LONG2NUM(SSL_##x))
|
||||
|
||||
ossl_ssl_def_const(VERIFY_NONE);
|
||||
ossl_ssl_def_const(VERIFY_PEER);
|
||||
|
|
Loading…
Reference in a new issue