diff options
author | thekuwayama <thekuwayama@gmail.com> | 2019-11-18 22:33:55 +0900 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-11-19 18:11:11 +0900 |
commit | 3183cd701783cf603f96f54bb08cea714b755a23 (patch) | |
tree | b7cd855c1e39a3691b534813dcc87da2c85815e6 /ext | |
parent | dad064cfcebb25f76df0aafeb17ba746a6a6b1a2 (diff) | |
download | ruby-openssl-3183cd701783cf603f96f54bb08cea714b755a23.tar.gz |
add/update document about AuthorityInfoAccess
add ca_issuer_uris and ocsp_uris description to the changelog
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl_ocsp.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c index c0237791..e6659cff 100644 --- a/ext/openssl/ossl_ocsp.c +++ b/ext/openssl/ossl_ocsp.c @@ -1734,18 +1734,11 @@ Init_ossl_ocsp(void) * To submit the request to the CA for verification we need to extract the * OCSP URI from the subject certificate: * - * authority_info_access = subject.extensions.find do |extension| - * extension.oid == 'authorityInfoAccess' - * end - * - * descriptions = authority_info_access.value.split "\n" - * ocsp = descriptions.find do |description| - * description.start_with? 'OCSP' - * end + * ocsp_uris = subject.ocsp_uris * * require 'uri' * - * ocsp_uri = URI ocsp[/URI:(.*)/, 1] + * ocsp_uri = URI ocsp_uris[0] * * To submit the request we'll POST the request to the OCSP URI (per RFC * 2560). Note that we only handle HTTP requests and don't handle any |