[gnutls-devel] GnuTLS | WIP: Add option to store all stapled OCSP responses to gnutls-cli (!1189)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Feb 9 11:18:25 CET 2020




Airtower commented on a discussion on src/cli.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1189#note_284864779

>  
>  		if (type == GNUTLS_X509_FMT_DER) {
> -			fwrite(oresp.data, oresp.size, 1, fp);
> +			/* on success the return value is equal to the
> +			 * number of items (third parameter) */
> +			if (fwrite(oresp.data, oresp.size, 1, fp) != 1) {
> +				fprintf(stderr, "writing to %s failed\n", path);
> +				exit(1);
> +			}
>  			continue;
>  		}
>  
>  		gnutls_datum_t t;
> -		ret = gnutls_pem_base64_encode_alloc("OCSP RESPONSE", &oresp, &t);
> +		ret = gnutls_pem_base64_encode_alloc("OCSP RESPONSE",
> +						     &oresp, &t);

Fixed.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1189#note_284864779
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200209/bd8d692c/attachment.html>


More information about the Gnutls-devel mailing list