Skip to content

Commit 14ea7d7

Browse files
Patrick Hemmencorecode
authored andcommitted
Changed SECURETRANS to SECURETRANSFER for match conf.c
1 parent 9cdfeb3 commit 14ea7d7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ parse_conf(const char *config_path)
236236
} else if (strcmp(word, "OPPORTUNISTIC_TLS") == 0 && data == NULL)
237237
config.features |= TLS_OPP;
238238
else if (strcmp(word, "SECURETRANSFER") == 0 && data == NULL)
239-
config.features |= SECURETRANS;
239+
config.features |= SECURETRANSFER;
240240
else if (strcmp(word, "DEFER") == 0 && data == NULL)
241241
config.features |= DEFER;
242242
else if (strcmp(word, "INSECURE") == 0 && data == NULL)

crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ smtp_init_crypto(int fd, int feature, struct smtp_features* features)
143143
/*
144144
* If the user wants STARTTLS, we have to send EHLO here
145145
*/
146-
if (((feature & SECURETRANS) != 0) &&
146+
if (((feature & SECURETRANSFER) != 0) &&
147147
(feature & STARTTLS) != 0) {
148148
/* TLS init phase, disable SSL_write */
149149
config.features |= NOSSL;

dma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#define CON_TIMEOUT (5*60) /* Connection timeout per RFC5321 */
6464

6565
#define STARTTLS 0x002 /* StartTLS support */
66-
#define SECURETRANS 0x004 /* SSL/TLS in general */
66+
#define SECURETRANSFER 0x004 /* SSL/TLS in general */
6767
#define NOSSL 0x008 /* Do not use SSL */
6868
#define DEFER 0x010 /* Defer mails */
6969
#define INSECURE 0x020 /* Allow plain login w/o encryption */

net.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ send_remote_command(int fd, const char* fmt, ...)
9595
strcat(cmd, "\r\n");
9696
len = strlen(cmd);
9797

98-
if (((config.features & SECURETRANS) != 0) &&
98+
if (((config.features & SECURETRANSFER) != 0) &&
9999
((config.features & NOSSL) == 0)) {
100100
while ((s = SSL_write(config.ssl, (const char*)cmd, len)) <= 0) {
101101
s = SSL_get_error(config.ssl, s);
@@ -148,7 +148,7 @@ read_remote(int fd, int extbufsize, char *extbuf)
148148
memmove(buff, buff + pos, len - pos);
149149
len -= pos;
150150
pos = 0;
151-
if (((config.features & SECURETRANS) != 0) &&
151+
if (((config.features & SECURETRANSFER) != 0) &&
152152
(config.features & NOSSL) == 0) {
153153
if ((rlen = SSL_read(config.ssl, buff + len, sizeof(buff) - len)) == -1) {
154154
strlcpy(neterr, ssl_errstr(), sizeof(neterr));
@@ -271,7 +271,7 @@ smtp_login(int fd, char *login, char* password, const struct smtp_features* feat
271271
// LOGIN
272272
if (features->auth.login) {
273273
if ((config.features & INSECURE) != 0 ||
274-
(config.features & SECURETRANS) != 0) {
274+
(config.features & SECURETRANSFER) != 0) {
275275
/* Send AUTH command according to RFC 2554 */
276276
send_remote_command(fd, "AUTH LOGIN");
277277
if (read_remote(fd, 0, NULL) != 3) {
@@ -347,7 +347,7 @@ static void
347347
close_connection(int fd)
348348
{
349349
if (config.ssl != NULL) {
350-
if (((config.features & SECURETRANS) != 0) &&
350+
if (((config.features & SECURETRANSFER) != 0) &&
351351
((config.features & NOSSL) == 0))
352352
SSL_shutdown(config.ssl);
353353
SSL_free(config.ssl);
@@ -497,15 +497,15 @@ deliver_to_host(struct qitem *it, struct mx_hostentry *host)
497497
} while (0)
498498

499499
/* Check first reply from remote host */
500-
if ((config.features & SECURETRANS) == 0 ||
500+
if ((config.features & SECURETRANSFER) == 0 ||
501501
(config.features & STARTTLS) != 0) {
502502
config.features |= NOSSL;
503503
READ_REMOTE_CHECK("connect", 2);
504504

505505
config.features &= ~NOSSL;
506506
}
507507

508-
if ((config.features & SECURETRANS) != 0) {
508+
if ((config.features & SECURETRANSFER) != 0) {
509509
error = smtp_init_crypto(fd, config.features, &features);
510510
if (error == 0)
511511
syslog(LOG_DEBUG, "SSL initialization successful");

0 commit comments

Comments
 (0)