[ruby-cvs:62620] rhe:r55456 (trunk): openssl: allow passing absolute times in OCSP::BasicResponse#add_status

rhe at ruby-lang.org rhe at ruby-lang.org
Sun Jun 19 18:42:30 JST 2016


rhe	2016-06-19 18:42:30 +0900 (Sun, 19 Jun 2016)

  New Revision: 55456

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

  Log:
    openssl: allow passing absolute times in OCSP::BasicResponse#add_status
    
    * ext/openssl/ossl_ocsp.c (ossl_ocspbres_add_status): Allow specifying
      the times (thisUpdate, nextUpdate and revocationTime) with Time
      objects. Currently they accepts only relative seconds from the current
      time. This is inconvenience, especially for revocationTime. When
      Integer is passed, they are still treated as relative times. Since the
      type check is currently done with rb_Integer(), this is a slightly
      incompatible change. Hope no one passes a relative time as String or
      Time object...
      Also, allow passing nil as nextUpdate. It is optional.
    
    * ext/openssl/ruby_missing.h: Define RB_INTEGER_TYPE_P() if not defined.
      openssl gem will be released before Ruby 2.4.0.

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


More information about the ruby-cvs mailing list