Lines Matching defs:params
79 struct smtp_params params;
136 smtp_connect(const struct smtp_params *params, void *tag)
144 memmove(&proto->params, params, sizeof(*params));
152 io_set_timeout(proto->io, proto->params.timeout);
154 if (io_connect(proto->io, proto->params.dst, proto->params.src) == -1) {
168 else if (proto->params.tls_verify) {
189 io_connect_tls(proto->io, ctx, proto->params.tls_servname);
282 smtp_client_sendcmd(proto, "EHLO %s", proto->params.helo);
286 smtp_client_sendcmd(proto, "HELO %s", proto->params.helo);
290 smtp_client_sendcmd(proto, "LHLO %s", proto->params.helo);
294 if (proto->params.tls_req == TLS_NO || proto->flags & FLAG_TLS)
298 else if (proto->params.tls_req == TLS_FORCE)
306 if (!proto->params.auth_user)
325 (void)strlcat(ibuf, proto->params.auth_user, sizeof(ibuf));
332 n = strlcat(ibuf, proto->params.auth_pass, sizeof(ibuf));
357 if (base64_encode(proto->params.auth_user,
358 strlen(proto->params.auth_user), obuf,
370 if (base64_encode(proto->params.auth_pass,
371 strlen(proto->params.auth_pass), obuf,
461 else if (proto->params.lmtp)
474 if ((proto->params.tls_req == TLS_FORCE) ||
475 (proto->params.auth_user))
500 if ((proto->params.tls_req == TLS_FORCE) ||
501 (proto->params.auth_user)) {
568 if (proto->params.lmtp) {
616 if (proto->params.tls_req == TLS_SMTPS) {
678 if (io_datalen(proto->io) >= proto->params.linemax)
755 if (!(proto->params.lmtp && proto->state == STATE_EOM)) {
803 if (len > proto->params.ibufmax) {
839 while (total < proto->params.obufmax) {