[ruby-cvs:62213] rhe:r55050 (trunk): openssl: report errors in OpenSSL error queue when clear it

rhe at ruby-lang.org rhe at ruby-lang.org
Wed May 18 13:07:46 JST 2016


rhe	2016-05-18 13:07:45 +0900 (Wed, 18 May 2016)

  New Revision: 55050

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

  Log:
    openssl: report errors in OpenSSL error queue when clear it
    
    * ext/openssl/ossl.c (ossl_clear_error): Extracted from
      ossl_make_error(). This prints errors in the OpenSSL error queue if
      OpenSSL.debug is true, and clears the queue.
      (ossl_make_error): use ossl_clear_error().
    
    * ext/openssl/ossl.h: add prototype declaration of ossl_make_error().
      (OSSL_BIO_reset) use ossl_clear_error() to clear the queue. Clearing
      silently makes debugging difficult.
    
    * ext/openssl/ossl_engine.c (ossl_engine_s_by_id): ditto.
    
    * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): ditto.
    
    * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_verify): ditto.
    
    * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
    
    * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
      (ossl_ec_group_initialize): ditto.
    
    * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl.c
    trunk/ext/openssl/ossl.h
    trunk/ext/openssl/ossl_engine.c
    trunk/ext/openssl/ossl_ns_spki.c
    trunk/ext/openssl/ossl_pkcs7.c
    trunk/ext/openssl/ossl_pkey_dsa.c
    trunk/ext/openssl/ossl_pkey_ec.c
    trunk/ext/openssl/ossl_ssl.c


More information about the ruby-cvs mailing list