[gnutls-devel] GnuTLS | lib/system/certs.c: Add support for SSL_CERT_DIR, SSL_CERT_FILE (!1541)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Feb 23 21:14:36 CET 2022




Ryan Sundberg commented on a discussion on lib/system/certs.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1541#note_853140746

>  #endif
>  
>  #if defined(ENABLE_PKCS11) && defined(DEFAULT_TRUST_STORE_PKCS11)
> -	ret =
> -	    gnutls_x509_trust_list_add_trust_file(list,
> -						  DEFAULT_TRUST_STORE_PKCS11,
> -						  crl_file,
> -						  GNUTLS_X509_FMT_DER,
> -						  tl_flags, tl_vflags);
> -	if (ret > 0)
> -		r += ret;
> +	if (r == 0) {

Should we make this as a configure option `--enable-ssl-env`? Without the flag enabled we can keep the existing behavior with the `if (r == 0)` checks.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1541#note_853140746
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/20220223/494969fa/attachment.html>


More information about the Gnutls-devel mailing list