summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Metzler <ametzler@bebt.de>2017-05-01 19:20:38 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-02 07:43:32 +0200
commit703fd0b85ebd94054375ae6518a089649c1d3b3f (patch)
tree899068b2b5691506b7db7a1eae24ed38da5a6c93 /src
parentc99327c17d2f6587b130f3095e0c67595b49ee5b (diff)
downloadgnutls-703fd0b85ebd94054375ae6518a089649c1d3b3f.tar.gz
gnutls-cli: Use CRLF with --starttls-proto=smtp.
Closes https://gitlab.com/gnutls/gnutls/issues/200
Diffstat (limited to 'src')
-rw-r--r--src/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c
index 626066e0fe..f4b27bb3fa 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -236,10 +236,10 @@ socket_starttls(socket_st * socket)
printf("Negotiating SMTP STARTTLS\n");
wait_for_text(socket, "220 ", 4);
- snprintf(buf, sizeof(buf), "EHLO %s\n", socket->hostname);
+ snprintf(buf, sizeof(buf), "EHLO %s\r\n", socket->hostname);
send_line(socket, buf);
wait_for_text(socket, "250 ", 4);
- send_line(socket, "STARTTLS\n");
+ send_line(socket, "STARTTLS\r\n");
wait_for_text(socket, "220 ", 4);
} else if (strcasecmp(socket->app_proto, "imap") == 0 || strcasecmp(socket->app_proto, "imap2") == 0) {
if (socket->verbose)