diff options
author | Andreas Metzler <ametzler@bebt.de> | 2017-05-01 19:20:38 +0200 |
---|---|---|
committer | Andreas Metzler <ametzler@bebt.de> | 2017-05-01 19:34:20 +0200 |
commit | 057dbb0ca55de8f835565a7e515eb2a95def6a42 (patch) | |
tree | 10d849b4c9ced394899cf85ac9e5d8177f63e4df /src/socket.c | |
parent | 371090f21490e7d949e676e39aafdf93b6aa3c6a (diff) | |
download | gnutls-057dbb0ca55de8f835565a7e515eb2a95def6a42.tar.gz |
gnutls-cli: Use CRLF with --starttls-proto=smtp.
Closes https://gitlab.com/gnutls/gnutls/issues/200
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c index 223df5177f..16ed40720f 100644 --- a/src/socket.c +++ b/src/socket.c @@ -229,10 +229,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) |