[ruby-cvs:66413] usa:r59235 (ruby_2_3): * ext/openssl/ossl_x509store.c: clear error queue after calling

usa at ruby-lang.org usa at ruby-lang.org
Fri Jun 30 21:42:32 JST 2017


usa	2017-06-30 21:42:31 +0900 (Fri, 30 Jun 2017)

  New Revision: 59235

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

  Log:
    * ext/openssl/ossl_x509store.c: clear error queue after calling
      X509_LOOKUP_load_file()
    
      X509_LOOKUP_load_file(), which ends up calling
      X509_load_cert_crl_file()
      internally, may leave error entries in the queue even when it returns
      non-zero value (which indicates success).
    
      This will be fixed by OpenSSL 1.1.1, but can be worked around by
      clearing the error queue ourselves.
    
      Fixes: [Backport #11033]

  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/ext/openssl/ossl_x509store.c
    branches/ruby_2_3/test/openssl/test_x509store.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list