From adc152ce43b3be30c25312ca8327e78743b31818 Mon Sep 17 00:00:00 2001 From: ikeyan Date: Mon, 15 Dec 2025 11:47:39 +0900 Subject: [PATCH 1/2] doc: added `requestOCSP` option to `tls.connect` Fixes #61042 --- doc/api/tls.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/tls.md b/doc/api/tls.md index 43fa0c990e19b8..aafbaaac2b9685 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1724,6 +1724,9 @@ changes: verification fails. The method should return `undefined` if the `servername` and `cert` are verified. * `session` {Buffer} A `Buffer` instance, containing TLS session. + * `requestOCSP` {boolean} If `true`, specifies that the OCSP status request + extension will be added to the client hello and an `'OCSPResponse'` event + will be emitted on the socket before establishing a secure communication * `minDHSize` {number} Minimum size of the DH parameter in bits to accept a TLS connection. When a server offers a DH parameter with a size less than `minDHSize`, the TLS connection is destroyed and an error is thrown. From 7d191fbf2c6e54a9b21b1b74424fa4d27a269213 Mon Sep 17 00:00:00 2001 From: ikeyan Date: Tue, 30 Dec 2025 07:49:12 +0900 Subject: [PATCH 2/2] Put a period at the end of the line Co-authored-by: Luigi Pinca --- doc/api/tls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index aafbaaac2b9685..6a3646f1c61b94 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1726,7 +1726,7 @@ changes: * `session` {Buffer} A `Buffer` instance, containing TLS session. * `requestOCSP` {boolean} If `true`, specifies that the OCSP status request extension will be added to the client hello and an `'OCSPResponse'` event - will be emitted on the socket before establishing a secure communication + will be emitted on the socket before establishing a secure communication. * `minDHSize` {number} Minimum size of the DH parameter in bits to accept a TLS connection. When a server offers a DH parameter with a size less than `minDHSize`, the TLS connection is destroyed and an error is thrown.