pv: download_first_crl_from_x509: Fix comment

The comment mentions certificate but it's a certificate revocation
list (CRL). In addition, use 1200 bytes as vector capacity as the
comment says 1200.

Signed-off-by: Marc Hartmayer <marc@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2026-07-03 14:36:13 +02:00
committed by Jan Höppner
parent 4eb18bd6b7
commit a9ed19285a
+2 -2
View File
@@ -323,8 +323,8 @@ pub fn download_first_crl_from_x509(cert: &X509Ref) -> Result<Option<Vec<openssl
}
for dist_point in x509_dist_points(cert) {
// A typical certificate is about 1200 bytes long
let mut handle = Easy2::new(Buf(Vec::with_capacity(1500)));
// A typical CRL is about 1200 bytes long
let mut handle = Easy2::new(Buf(Vec::with_capacity(1200)));
handle.url(&dist_point)?;
handle.get(true)?;
handle.follow_location(true)?;