aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/to.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2018-06-15 20:22:58 +0200
committerGilles Chehade <gilles@poolp.org>2018-06-15 20:22:58 +0200
commit28598156d06cf259f81413376a651d9ae2225f55 (patch)
treecd8ef327229f9973e8961f003f78acf1ea627a48 /smtpd/to.c
parentMerge pull request #862 from bsdsx/fix_build_log (diff)
parentsync with openbsd (diff)
downloadOpenSMTPD-28598156d06cf259f81413376a651d9ae2225f55.tar.xz
OpenSMTPD-28598156d06cf259f81413376a651d9ae2225f55.zip
Merge branch 'master' into portable
Diffstat (limited to 'smtpd/to.c')
-rw-r--r--smtpd/to.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/smtpd/to.c b/smtpd/to.c
index cd83b8ef..d5597c9d 100644
--- a/smtpd/to.c
+++ b/smtpd/to.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: to.c,v 1.30 2018/05/29 21:05:52 eric Exp $ */
+/* $OpenBSD: to.c,v 1.31 2018/06/07 11:31:51 eric Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -332,14 +332,14 @@ text_to_relayhost(struct relayhost *relay, const char *s)
* schema index needs to be updated later in this function.
*/
{ "smtp://", 0 },
- { "lmtp://", F_LMTP },
- { "smtp+tls://", F_TLS_OPTIONAL },
- { "smtps://", F_SMTPS },
- { "tls://", F_STARTTLS },
- { "smtps+auth://", F_SMTPS|F_AUTH },
- { "tls+auth://", F_STARTTLS|F_AUTH },
- { "secure://", F_SMTPS|F_STARTTLS },
- { "secure+auth://", F_SMTPS|F_STARTTLS|F_AUTH }
+ { "lmtp://", RELAY_LMTP },
+ { "smtp+tls://", RELAY_TLS_OPTIONAL },
+ { "smtps://", RELAY_SMTPS },
+ { "tls://", RELAY_STARTTLS },
+ { "smtps+auth://", RELAY_SMTPS|RELAY_AUTH },
+ { "tls+auth://", RELAY_STARTTLS|RELAY_AUTH },
+ { "secure://", RELAY_SMTPS|RELAY_STARTTLS },
+ { "secure+auth://", RELAY_SMTPS|RELAY_STARTTLS|RELAY_AUTH }
};
const char *errstr = NULL;
char *p, *q;
@@ -372,7 +372,7 @@ text_to_relayhost(struct relayhost *relay, const char *s)
relay->flags = schemas[i].flags;
/* need to specify an explicit port for LMTP */
- if (relay->flags & F_LMTP)
+ if (relay->flags & RELAY_LMTP)
relay->port = 0;
/* first, we extract the label if any */
@@ -416,11 +416,11 @@ text_to_relayhost(struct relayhost *relay, const char *s)
if (!valid_domainpart(relay->hostname))
return 0;
- if ((relay->flags & F_LMTP) && (relay->port == 0))
+ if ((relay->flags & RELAY_LMTP) && (relay->port == 0))
return 0;
- if (relay->authlabel[0] == '\0' && relay->flags & F_AUTH)
+ if (relay->authlabel[0] == '\0' && relay->flags & RELAY_AUTH)
return 0;
- if (relay->authlabel[0] != '\0' && !(relay->flags & F_AUTH))
+ if (relay->authlabel[0] != '\0' && !(relay->flags & RELAY_AUTH))
return 0;
return 1;
}