]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Do not look for key in extra files if already in pem
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 7 Jun 2022 14:29:44 +0000 (16:29 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 22 Jun 2022 08:45:47 +0000 (10:45 +0200)
commit1bad7db4a146e91cc2e9db72a92935ce9df5d24a
treef0793498211c85ec498771cf903897b9930c202c
parentd543ae0e684d1d045570096549e1f6461292e32f
BUG/MINOR: ssl: Do not look for key in extra files if already in pem

A bug was introduced by commit 9bf3a1f67eb3bc6f02abcabf8ab141840c7a1db2
"BUG/MINOR: ssl: Fix crash when no private key is found in pem".
If a private key is already contained in a pem file, we will still look
for a .key file and load its private key if it exists when we should
not.

This patch should be backported to all branches where the original fix
was backported (all the way to 2.2).
src/ssl_ckch.c