]> granicus.if.org Git - curl/commit
openssl: Don't add verify locations when verifypeer==0
authorPatrick Schlangen <patrick@schlangen.me>
Mon, 5 Feb 2018 16:17:15 +0000 (17:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Feb 2018 09:48:03 +0000 (10:48 +0100)
commitdc85437736e1fc90e689bb1f6c51c8f1aa9430eb
treea6c372562caab12ba4f830c222b34ffea565b75c
parent05484d48311b47c1fcc9a360266f53723ddf7300
openssl: Don't add verify locations when verifypeer==0

When peer verification is disabled, calling
SSL_CTX_load_verify_locations is not necessary. Only call it when
verification is enabled to save resources and increase performance.

Closes #2290
lib/vtls/openssl.c