]> git.ipfire.org Git - thirdparty/openssl.git/commit
Allow to continue on UNABLE_TO_VERIFY_LEAF_SIGNATURE
authorAndré Klitzing <aklitzing@gmail.com>
Wed, 18 Mar 2020 15:04:06 +0000 (16:04 +0100)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 8 Oct 2020 14:49:29 +0000 (16:49 +0200)
commit02a2567173a451d8d00c276e6d8c1d1cb171234d
tree3802a34e731cfc1c8b2fba445af34c89a5f999db
parentdf38dcfcd5c3e264e449589ef0b9fce8ce6e428c
Allow to continue on UNABLE_TO_VERIFY_LEAF_SIGNATURE

This unifies the behaviour of a single certificate with
an unknown CA certificate with a self-signed certificate.
The user callback can mask that error to retrieve additional
error information. So the user application can decide to
abort the connection instead to be forced by openssl.

This change in behaviour is backward compatible as user callbacks
who don't want to ignore UNABLE_TO_VERIFY_LEAF_SIGNATURE will
still abort the connection by default.

CLA: trivial
Fixes #11297

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13083)
crypto/x509/x509_vfy.c