]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: SSL connection reuse
authorStefan Eissing <stefan@eissing.org>
Fri, 10 Oct 2025 12:33:36 +0000 (14:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 Oct 2025 13:30:12 +0000 (15:30 +0200)
commit6e35eb4879ec2ee97f43da295f52c6841beeafae
treeed138202a9857865547af46bc7fb1de21323ffb7
parentdd7762c309d8e1f6c633825747be7ab812699940
lib: SSL connection reuse

Protocol handlers not flagging PROTOPT_SSL that allow reuse of existing
SSL connections now need to carry the flag PROTOPT_SSL_REUSE.

Add PROTOPT_SSL_REUSE to imap, ldap, pop3, smtp and ftp.

Add tests the http: urls do not reuse https: connections and vice versa.

Reported-by: Sakthi SK
Fixes #19006
Closes #19007
lib/ftp.c
lib/imap.c
lib/ldap.c
lib/openldap.c
lib/pop3.c
lib/smtp.c
lib/url.c
lib/urldata.h
tests/http/test_01_basic.py