summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPetrik <petrik@deheus.net>2023-08-31 15:14:18 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-09-06 19:26:27 +0900
commit9b6128c541386d6e375723bb9eb4161854d72112 (patch)
treefe505695f7883e7dc2d449ed243a09a3548e24c9 /ext
parent60a6de81a823cdb932d21fa5869c93853d3f2795 (diff)
[ruby/openssl] Fix OCSP documentation
`port` should be called on the `ocsp_uri` URI instead of `ocsp`, which is just a string. https://github.com/ruby/openssl/commit/89a1c82dd0
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ocsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c
index 82f80d4a88..df986bb3ee 100644
--- a/ext/openssl/ossl_ocsp.c
+++ b/ext/openssl/ossl_ocsp.c
@@ -1701,7 +1701,7 @@ Init_ossl_ocsp(void)
* require 'net/http'
*
* http_response =
- * Net::HTTP.start ocsp_uri.hostname, ocsp.port do |http|
+ * Net::HTTP.start ocsp_uri.hostname, ocsp_uri.port do |http|
* http.post ocsp_uri.path, request.to_der,
* 'content-type' => 'application/ocsp-request'
* end