Issue #12868 has been updated by Usaku NAKAMURA.

Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE to 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE

ruby_2_2 r56727 merged revision(s) 55074.

----------------------------------------
Bug #12868: Please backport r55074 (openssl, fix ex_data index for X509_STORE_CTX)
https://bugs.ruby-lang.org/issues/12868#change-61451

* Author: Kazuki Yamaguchi
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE
----------------------------------------
Please backport r55074 ("openssl: register ex_data index for X509_STORE{_CTX,} respectively").

In Ruby <= 2.3, ext/openssl misused one ex_data index for both X509_STORE and X509_STORE_CTX, and it was working just by chance. This will also fix the symbol conflict which happens when ext/openssl is built with OpenSSL <= 1.0.2 and 1.1.0 is loaded by another dependency (#12830).



-- 
https://bugs.ruby-lang.org/