[ruby-cvs:62573] rhe:r55409 (trunk): openssl: add missing #to_der to OCSP::{CertificateId, BasicResponse}

rhe at ruby-lang.org rhe at ruby-lang.org
Tue Jun 14 21:40:55 JST 2016


rhe	2016-06-14 21:40:55 +0900 (Tue, 14 Jun 2016)

  New Revision: 55409

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

  Log:
    openssl: add missing #to_der to OCSP::{CertificateId,BasicResponse}
    
    * ext/openssl/ossl_ocsp.c (ossl_ocspbres_to_der, ossl_ocspcid_to_der):
      Implement #to_der methods for OCSP::BasicResponse and
      OCSP::CertificateId.
    
      (ossl_ocspreq_initialize, ossl_ocspres_initialize): Use GetOCSP*()
      instead of raw DATA_PTR().
    
      (ossl_ocspbres_initialize, ossl_ocspcid_initialize): Allow
      initializing from DER string.
    
      (Init_ossl_ocsp): Define new #to_der methods.
    
    * test/openssl/test_ocsp.rb: Test these changes. Also add missing tests
      for OCSP::{Response,Request}#to_der.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_ocsp.c
    trunk/test/openssl/test_ocsp.rb


More information about the ruby-cvs mailing list