1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/openssl
usa c2fdfb05a4 merge 3af2635f11
patched by Kazuki Yamaguchi <k@rhe.jp>

	bio: prevent possible GC issue in ossl_obj2bio()

	Prevent the new object created by StringValue() from being GCed.
	Luckily, as none of the callers of ossl_obj2bio() reads from the
	returned BIO after possible triggering GC, this has not been a real
	problem.

	As a bonus, ossl_protect_obj2bio() function which is no longer used
	anywhere is removed.

	merge f842b0d5c5
	patched by Kazuki Yamaguchi <k@rhe.jp>

	bio: do not use the FILE BIO method in ossl_obj2bio()

	Read everything from an IO object into a String first and use the
	memory buffer BIO method just as we do for String inputs.

	For MSVC builds, the FILE BIO method uses the "UPLINK" interface that
	requires the application to provide OPENSSL_Applink() function. For us,
	the "application" means ruby.exe, in which we can't do anything. As a
	workaround, avoid using the FILE BIO method at all.

	Usually private keys or X.509 certificates aren't that large and the
	temporarily increased memory usage hopefully won't be an issue.

	ext/openssl/ossl_version.h (OpenSSL::VERSION): bump to 1.1.1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-22 03:33:56 +00:00
..
lib merge revision(s) 55100: [Backport #12292] 2016-08-11 17:58:25 +00:00
depend Update dependencies. 2014-12-19 13:34:54 +00:00
deprecation.rb handle ext/ as r53141 2015-12-16 05:31:54 +00:00
extconf.rb merge revision(s) 54258: [Backport #12182] 2016-04-12 05:29:12 +00:00
openssl_missing.c merge revision(s) 55074: [Backport #12868] 2016-11-05 02:48:35 +00:00
openssl_missing.h merge revision(s) 55074: [Backport #12868] 2016-11-05 02:48:35 +00:00
ossl.c merge revision(s) 55074: [Backport #12868] 2016-11-05 02:48:35 +00:00
ossl.h merge revision(s) 55074: [Backport #12868] 2016-11-05 02:48:35 +00:00
ossl_asn1.c asn1: fix out-of-bounds read in decoding constructed objects 2017-09-09 14:06:50 +00:00
ossl_asn1.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_bio.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_bio.h merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_bn.c * ext/bigdecimal/bigdecimal.c (BigDecimal_hash): st_index_t may not be 2017-09-14 04:16:51 +00:00
ossl_bn.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_cipher.c * ext/openssl/ossl_cipher.c: remove the encryption key initialization 2017-07-05 07:06:45 +00:00
ossl_cipher.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_config.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_config.h backport fix memory leak from upstream. 2016-08-26 18:48:55 +00:00
ossl_digest.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_digest.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_engine.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_engine.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_hmac.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_hmac.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_ns_spki.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_ns_spki.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_ocsp.c backport fix memory leak from upstream. 2016-08-26 18:48:55 +00:00
ossl_ocsp.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_pkcs5.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_pkcs5.h
ossl_pkcs7.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_pkcs7.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_pkcs12.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_pkcs12.h * ext/openssl/ossl_pkcs12*: Remove svn commit id macro 2015-09-23 13:23:02 +00:00
ossl_pkey.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_pkey.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_pkey_dh.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_pkey_dsa.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_pkey_ec.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_pkey_rsa.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_rand.c * ext/openssl/ossl_rand.c (ossl_rand_bytes): RAND_bytes could 2015-11-30 20:29:02 +00:00
ossl_rand.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_ssl.c merge revision(s) 55074: [Backport #12868] 2016-11-05 02:48:35 +00:00
ossl_ssl.h ext/openssl/ossl_ssl.c: hide globals 2015-12-01 22:49:05 +00:00
ossl_ssl_session.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_version.h merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_x509.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_x509.h backport fix memory leak from upstream. 2016-08-26 18:48:55 +00:00
ossl_x509attr.c backport fix memory leak from upstream. 2016-08-26 18:48:55 +00:00
ossl_x509cert.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_x509crl.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_x509ext.c backport additional fix memory leak from openssl upstream. 2016-08-29 20:36:38 +00:00
ossl_x509name.c * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00
ossl_x509req.c merge 3af2635f11 2018-03-22 03:33:56 +00:00
ossl_x509revoked.c backport fix memory leak from upstream. 2016-08-26 18:48:55 +00:00
ossl_x509store.c * ext/openssl/ossl_x509store.c: clear error queue after calling 2017-06-30 12:42:31 +00:00
ruby_missing.h * ext/openssl/*: Remove svn commit id macros to make sync easier 2015-09-22 16:12:15 +00:00