diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-21 13:45:24 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-21 23:30:16 +0200 |
commit | 6434a73984b2527194d6409021693c7032d17570 (patch) | |
tree | 0e13b44283e01d45f2889dd8565e0ea25d4dfcd1 /lib/smtp.c | |
parent | 2e645e21de1b3faef108569a8819778b6755c2f0 (diff) | |
download | curl-6434a73984b2527194d6409021693c7032d17570.tar.gz |
Curl_handler: add 'family' to each protocol
Makes get_protocol_family() faster and it moves the knowledge about the
"families" to each protocol handler, where it belongs.
Closes #5986
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index aea41bb4e..c2d632322 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -133,6 +133,7 @@ const struct Curl_handler Curl_handler_smtp = { ZERO_NULL, /* connection_check */ PORT_SMTP, /* defport */ CURLPROTO_SMTP, /* protocol */ + CURLPROTO_SMTP, /* family */ PROTOPT_CLOSEACTION | PROTOPT_NOURLQUERY | /* flags */ PROTOPT_URLOPTIONS }; @@ -160,6 +161,7 @@ const struct Curl_handler Curl_handler_smtps = { ZERO_NULL, /* connection_check */ PORT_SMTPS, /* defport */ CURLPROTO_SMTPS, /* protocol */ + CURLPROTO_SMTP, /* family */ PROTOPT_CLOSEACTION | PROTOPT_SSL | PROTOPT_NOURLQUERY | PROTOPT_URLOPTIONS /* flags */ }; |