diff options
| author | Zach Scott <ethhics@gmail.com> | 2018-11-14 05:24:07 +0000 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2018-11-14 00:24:07 -0500 |
| commit | de43b1629d008aa6cdf4f6beb2b06e3859616a3e (patch) | |
| tree | 04c29351169bff57664a0d2aad379b7412c34036 /src/cmd/upas/smtp/smtp.c | |
| parent | 9c38253d1d8bae2f821d30fb8216783d2eb76f87 (diff) | |
| download | plan9port-de43b1629d008aa6cdf4f6beb2b06e3859616a3e.tar.gz plan9port-de43b1629d008aa6cdf4f6beb2b06e3859616a3e.zip | |
upas/smtp: fix TLS connections (#163)
Both `upas/nfs` and `upas/smtp` call the currently broken `tlsClient()`
from libsec. This commit copies a fix from upas/nfs into upas/smtp.
In `imapdial()`, upas/nfs replaces a process call for tlsClient with
`stunnel3` when not on Plan 9. upas/smtp calls tlsClient directly
as a function, so imapdial was copied into mxdial.c as `smtpdial()`,
and tlsClient+dial replaced with a call to smtpdial.
Diffstat (limited to 'src/cmd/upas/smtp/smtp.c')
| -rw-r--r-- | src/cmd/upas/smtp/smtp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/upas/smtp/smtp.c b/src/cmd/upas/smtp/smtp.c index 9dd05596..92873723 100644 --- a/src/cmd/upas/smtp/smtp.c +++ b/src/cmd/upas/smtp/smtp.c @@ -467,6 +467,7 @@ hello(char *me, int encrypted) } ehlo = 1; + encrypted = 1; Again: if(ehlo) dBprint("EHLO %s\r\n", me); |
