Project

General

Profile

Actions

Feature #7181

closed

New Methods On OpenSSL::OCSP::CertificateId

Added by reaperhulk (Paul Kehrer) about 12 years ago. Updated over 8 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 12 years ago

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

Updated by mame (Yusuke Endoh) almost 12 years ago

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

Updated by reaperhulk (Paul Kehrer) about 11 years ago

Any chance of this landing in a 2.0.0 patchset?

Updated by nagachika (Tomoyuki Chikanaga) about 11 years ago

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 11 years ago

  • Target version changed from 2.6 to 2.1.0

Updated by hsbt (Hiroshi SHIBATA) almost 11 years ago

  • Target version changed from 2.1.0 to 2.2.0
Actions #7

Updated by zzak (zzak _) about 9 years ago

  • Assignee changed from MartinBosslet (Martin Bosslet) to 7150
Actions #8

Updated by Anonymous over 8 years ago

  • 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 8 years ago

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: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0