[gnutls-devel] GnuTLS | ocsp: set GNUTLS_CERT_INVALID if OCSP response indicates revocation (!1159)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Jan 9 10:51:37 CET 2020




Daiki Ueno commented on a discussion on tests/status-request-revoked.c: https://gitlab.com/gnutls/gnutls/merge_requests/1159#note_269051999

> +
> +	gnutls_certificate_set_verify_function(x509_cred,
> +					       cert_verify_callback);
> +
> +	gnutls_certificate_set_x509_trust_mem(x509_cred, &ca_cert, GNUTLS_X509_FMT_PEM);
> +
> +	gnutls_transport_set_int(session, fd);
> +
> +	/* Perform the TLS handshake
> +	 */
> +	do {
> +		ret = gnutls_handshake(session);
> +	}
> +	while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
> +
> +	if (ret == GNUTLS_E_UNSUPPORTED_SIGNATURE_ALGORITHM) {

Good point, removed the check.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1159#note_269051999
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/20200109/f9ad688c/attachment-0001.html>


More information about the Gnutls-devel mailing list