]> git.ipfire.org Git - thirdparty/curl.git/commit
openssl: if verifypeer is not requested, skip the CA loading
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 Oct 2021 10:34:34 +0000 (12:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Oct 2021 14:16:19 +0000 (16:16 +0200)
commit83393b1a3613ec4e99502ff01ac936994841ced9
treecaf3e90d7d4825729a882db75a0ca732961d94e4
parent0c2d3118aa2bc040411203d33ab6034067fd9d62
openssl: if verifypeer is not requested, skip the CA loading

It was previously done mostly to show a match/non-match in the verbose
output even when verification was not asked for. This change skips the
loading of the CA certs unless verifypeer is set to save memory and CPU.

Closes #7892
lib/vtls/openssl.c