Project

General

Profile

Actions

Feature #7181

closed

New Methods On OpenSSL::OCSP::CertificateId

Feature #7181: New Methods On OpenSSL::OCSP::CertificateId

Added by reaperhulk (Paul Kehrer) about 13 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:48062]

Description

This patch adds 3 new methods to OpenSSL::OCSP::CertificateId. These methods are useful when building an OCSP responder or doing comparison without repeatedly calling OpenSSL::OCSP::CertificateId#cmp_issuer

#issuer_name_hash
#issuer_key_hash
#signature_algorithm (returns string representation of alg used just like OpenSSL::X509::Certificate#signature_algorithm or OpenSSL::X509::Request#signature_algorithm)

Martin, I assigned this one to you since you helped me with the last OpenSSL patch I submitted, but let me know if it needs to be pointed another direction or what else I might need to do!


Files

certid_methods.patch (3.45 KB) certid_methods.patch reaperhulk (Paul Kehrer), 10/18/2012 12:43 PM
certid_methods_v2.patch (3.37 KB) certid_methods_v2.patch reaperhulk (Paul Kehrer), 10/18/2012 12:51 PM

Updated by reaperhulk (Paul Kehrer) about 13 years ago Actions #1 [ruby-core:48063]

Oops, left one extraneous line in a test. Removed in v2.

Updated by mame (Yusuke Endoh) almost 13 years ago Actions #2 [ruby-core:49920]

  • Status changed from Open to Assigned
  • Target version set to 2.6

Updated by reaperhulk (Paul Kehrer) about 12 years ago Actions #3 [ruby-core:56967]

Any chance of this landing in a 2.0.0 patchset?

Updated by nagachika (Tomoyuki Chikanaga) about 12 years ago Actions #4 [ruby-core:57219]

Hello, reaperhulk.

I'm sorry, it's too late to 2.0.0.
And the feature freeze of 2.1.0 (next minor release) deadline is coming. Please see https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/ReleaseEngineering210 for details.

Martin, could you review the patch?

Updated by naruse (Yui NARUSE) about 12 years ago Actions #5 [ruby-core:57242]

  • Target version changed from 2.6 to 2.1.0

Updated by hsbt (Hiroshi SHIBATA) over 11 years ago Actions #6 [ruby-core:60266]

  • Target version changed from 2.1.0 to 2.2.0

Updated by zzak (zzak _) about 10 years ago Actions #7

  • Assignee changed from MartinBosslet (Martin Bosslet) to 7150

Updated by Anonymous over 9 years ago Actions #8

  • Status changed from Assigned to Closed

Applied in changeset r55411.


openssl: add some accessor methods for OCSP::CertificateId

  • ext/openssl/ossl_ocsp.c (ossl_ocspcid_get_issuer_name_hash,
    ossl_ocspcid_get_issuer_key_hash, ossl_ocspcid_get_hash_algorithm):
    Add accessor methods OCSP::CertificateId#issuer_name_hash,
    #issuer_key_hash, #hash_algorithm.
    Based on a patch provided by Paul Kehrer .
    [ruby-core:48062] [Feature #7181]

  • test/openssl/test_ocsp.rb: Test these new methods.

Updated by rhenium (Kazuki Yamaguchi) over 9 years ago Actions #9 [ruby-core:76024]

Thanks, applied as r55411 with modifications. I made #issuer_{name,key}_hash return lowercase strings to match with the return of Digest#hexdigest and renamed #signature_algorithm to #hash_algorithm because this is not a signature.

Actions

Also available in: PDF Atom