[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:23:34 CET 2020




Tim Rühsen started a new discussion on tests/status-request-revoked.c: https://gitlab.com/gnutls/gnutls/merge_requests/1159#note_269034009

> +
> +	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) {

Why is it a success if we see GNUTLS_E_UNSUPPORTED_SIGNATURE_ALGORITHM here ?

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


More information about the Gnutls-devel mailing list