Feature #7181
closed
New Methods On OpenSSL::OCSP::CertificateId
Added by reaperhulk (Paul Kehrer) about 12 years ago.
Updated over 8 years ago.
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
Oops, left one extraneous line in a test. Removed in v2.
- Status changed from Open to Assigned
- Target version set to 2.6
Any chance of this landing in a 2.0.0 patchset?
- Target version changed from 2.6 to 2.1.0
- Target version changed from 2.1.0 to 2.2.0
- Assignee changed from MartinBosslet (Martin Bosslet) to 7150
- 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 paul.l.kehrer@gmail.com.
[ruby-core:48062] [Feature #7181]
-
test/openssl/test_ocsp.rb: Test these new methods.
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.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0