aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorPetrik <petrik@deheus.net>2023-08-31 15:14:18 +0200
committerPetrik <petrik@deheus.net>2023-08-31 15:14:18 +0200
commit89a1c82dd0ddd6ad3210b1fac841930c683c7cf8 (patch)
tree32f8781ae1e4bb5e703da616f560a7bb6cb56391 /ext
parentfcda6cf9d5f69f6dc0c297ca76feff71f9021f00 (diff)
downloadruby-openssl-89a1c82dd0ddd6ad3210b1fac841930c683c7cf8.tar.gz
Fix OCSP documentation
`port` should be called on the `ocsp_uri` URI instead of `ocsp`, which is just a string.
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 82f80d4a..df986bb3 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