[ruby-cvs:62237] rhe:r55074 (trunk): openssl: register ex_data index for X509_STORE{_CTX, } respectively

rhe at ruby-lang.org rhe at ruby-lang.org
Thu May 19 13:53:05 JST 2016


rhe	2016-05-19 13:53:05 +0900 (Thu, 19 May 2016)

  New Revision: 55074

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55074

  Log:
    openssl: register ex_data index for X509_STORE{_CTX,} respectively
    
    * ext/openssl/ossl.c (Init_openssl): register an ex_data index for
      X509_STORE and X509_STORE_CTX respectively. Since they don't share
      the ex_data index registry, we can't use the same index.
      (ossl_verify_cb): use the the correct index.
    
    * ext/openssl/ossl_ssl.c (ossl_ssl_verify_callback): ditto.
    
    * ext/openssl/ossl_x509store.c (ossl_x509store_set_vfy_cb): ditto.
      (ossl_x509stctx_verify): ditto.
    
    * ext/openssl/ossl.h (void ossl_clear_error): add extern declarations
      of ossl_store_{ctx_,}ex_verify_cb_idx.
    
    * ext/openssl/openssl_missing.c: remove X509_STORE_set_ex_data and
      X509_STORE_get_ex_data.
    
    * ext/openssl/openssl_missing.h: implement X509_STORE_get_ex_data,
      X509_STORE_set_ex_data and X509_STORE_get_ex_new_index as macros.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/openssl_missing.c
    trunk/ext/openssl/openssl_missing.h
    trunk/ext/openssl/ossl.c
    trunk/ext/openssl/ossl.h
    trunk/ext/openssl/ossl_ssl.c
    trunk/ext/openssl/ossl_x509store.c


More information about the ruby-cvs mailing list