Bug #9101 ยป bs_fix_dossl.patch
ext/openssl/ossl.c | ||
---|---|---|
rb_global_variable(&eOSSLError);
|
||
/*
|
||
* Verify callback Proc index for ext-data
|
||
*/
|
||
if ((ossl_verify_cb_idx = X509_STORE_CTX_get_ex_new_index(0, (void *)"ossl_verify_cb_idx", 0, 0, 0)) < 0)
|
||
ossl_raise(eOSSLError, "X509_STORE_CTX_get_ex_new_index");
|
||
/*
|
||
* Init debug core
|
||
*/
|
||
dOSSL = Qfalse;
|
||
... | ... | |
rb_define_module_function(mOSSL, "errors", ossl_get_errors, 0);
|
||
/*
|
||
* Verify callback Proc index for ext-data
|
||
*/
|
||
if ((ossl_verify_cb_idx = X509_STORE_CTX_get_ex_new_index(0, (void *)"ossl_verify_cb_idx", 0, 0, 0)) < 0)
|
||
ossl_raise(eOSSLError, "X509_STORE_CTX_get_ex_new_index");
|
||
/*
|
||
* Get ID of to_der
|
||
*/
|
||
ossl_s_to_der = rb_intern("to_der");
|