[ruby-cvs:62587] rhe:r55423 (trunk): openssl: refactor OpenSSL::OCSP::*#verify

rhe at ruby-lang.org rhe at ruby-lang.org
Thu Jun 16 00:02:46 JST 2016


rhe	2016-06-16 00:02:46 +0900 (Thu, 16 Jun 2016)

  New Revision: 55423

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

  Log:
    openssl: refactor OpenSSL::OCSP::*#verify
    
    * ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify, ossl_ocspbres_verify):
      Use ossl_clear_error() so that they don't print warnings to stderr and
      leak errors in the OpenSSL error queue. Also, check the return value
      of OCSP_*_verify() correctly. They can return -1 on verification
      failure.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_ocsp.c


More information about the ruby-cvs mailing list