From 8f8cab85d642c9e8cef59640e585bb64f04503c2 Mon Sep 17 00:00:00 2001 From: Coretan Kehidupan Date: Fri, 10 Jul 2026 00:57:21 +0700 Subject: [PATCH] crypto/ocsp: clarify ParseRequest multi-request behavior --- ocsp/ocsp.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ocsp/ocsp.go b/ocsp/ocsp.go index e6c645e7ce..ed727258c6 100644 --- a/ocsp/ocsp.go +++ b/ocsp/ocsp.go @@ -417,8 +417,11 @@ func (p ParseError) Error() string { return string(p) } -// ParseRequest parses an OCSP request in DER form. It only supports -// requests for a single certificate. Signed requests are not supported. +// ParseRequest parses an OCSP request in DER form. +// It only supports requests for a single certificate. +// If the request contains multiple requests, ParseRequest will use the first +// request and ignore the rest. +// Signed requests are not supported. // If a request includes a signature, it will result in a ParseError. func ParseRequest(bytes []byte) (*Request, error) { var req ocspRequest