char *mail_from;
struct curl_slist *mail_rcpt;
char *mail_auth;
+ bool sasl_ir; /* Enable/disable SASL initial response */
bool proxytunnel;
bool ftp_append; /* APPE on ftp */
bool mute; /* don't show messages, --silent given */
{"$H", "mail-auth", TRUE},
{"$I", "post303", FALSE},
{"$J", "metalink", FALSE},
+ {"$K", "sasl-ir", FALSE},
{"0", "http1.0", FALSE},
{"1", "tlsv1", FALSE},
{"2", "sslv2", FALSE},
#endif
break;
}
+ case 'K': /* --sasl-ir */
+ config->sasl_ir = TRUE;
+ break;
}
break;
case '#': /* --progress-bar */
" --retry-delay SECONDS "
"When retrying, wait this many seconds between each",
" --retry-max-time SECONDS Retry only within this period",
+ " --sasl-ir Enable initial response in SASL authentication"
" -S, --show-error "
"Show error. With -s, make curl show errors when they occur",
" -s, --silent Silent mode. Don't output anything",
if(config->mail_auth)
my_setopt_str(curl, CURLOPT_MAIL_AUTH, config->mail_auth);
+ /* new in 7.30.1 */
+ if(config->sasl_ir)
+ my_setopt(curl, CURLOPT_SASL_IR, (long)TRUE);
+
/* initialize retry vars for loop below */
retry_sleep_default = (config->retry_delay) ?
config->retry_delay*1000L : RETRY_SLEEP_DEFAULT; /* ms */