mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
4eb18bd6b7
commit
a9ed19285a
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user