]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls-cli: Use CRLF with --starttls-proto=smtp.
authorAndreas Metzler <ametzler@bebt.de>
Mon, 1 May 2017 17:20:38 +0000 (19:20 +0200)
committerAndreas Metzler <ametzler@bebt.de>
Mon, 1 May 2017 17:34:20 +0000 (19:34 +0200)
Closes https://gitlab.com/gnutls/gnutls/issues/200

src/socket.c

index 223df5177f1ec2787ea492f27e769e4665369fd3..16ed40720f8584de40a14419d3bc3ad91e8acb45 100644 (file)
@@ -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)