wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | OpenSSL: OCSP: Be more realistic with update times (!502)


From: @rockdaboot
Subject: Re: wget2 | OpenSSL: OCSP: Be more realistic with update times (!502)
Date: Sun, 02 Jan 2022 13:36:28 +0000



Tim Rühsen commented on a discussion on libwget/ssl_openssl.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/502#note_799346502

>  }
>  
> +static void print_openssl_time(const char *prefix, const 
> ASN1_GENERALIZEDTIME *t)
> +{
> +     int nread;
> +     char buf[128];
> +     BIO *mem = BIO_new(BIO_s_mem());
> +
> +     ASN1_GENERALIZEDTIME_print(mem, t);
> +
> +     nread = BIO_read(mem, buf, sizeof(buf)-1);
> +     if (nread > 0) {
> +             buf[nread] = '\0';
> +             debug_printf("%s%s\n", prefix, buf);
> +     } else {
> +             error_printf("ERROR: print_openssl_time: BIO_read failed\n");

Nice work ! Pushed it manually.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/502#note_799346502
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]