]> granicus.if.org Git - icinga2/commit
Fixed return code check in CRL loading
authorSebastian Marsching <sebastian-git-2016@marsching.com>
Mon, 27 Feb 2017 18:26:34 +0000 (19:26 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Tue, 28 Feb 2017 13:08:24 +0000 (14:08 +0100)
commit118d36f384f984fe3341b71bba29b546013e7a38
tree391bc9943e22bda2b99f52886bbd23b012b6f5aa
parent9dfe423c119a4dc05c2ac953bea1867c117d645a
Fixed return code check in CRL loading

The code for loading CRLs was incorrectly assuming that OpenSSL's
X509_LOOKUP_load_file function returns zero on success, but actually it
returns one on success. This commit fixes this return code check so
that a CRL can be loaded.

fixes #5040

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
lib/base/tlsutility.cpp