diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-01-04 20:30:39 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-01-04 20:30:42 +0100 |
commit | c409379c4698127f917687606720f917b23f0422 (patch) | |
tree | 5b8b2d051f175716068c9685917c37c031410664 /src/socket.c | |
parent | 73b874a7f4c9331322413fe67706e55dbf29abc2 (diff) | |
download | gnutls-c409379c4698127f917687606720f917b23f0422.tar.gz |
gnutls-cli-debug: more precise handling of SMTP protocol
Patch by Andreas Metzler.
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c index a1b8b7b293..7f17eedc47 100644 --- a/src/socket.c +++ b/src/socket.c @@ -180,8 +180,9 @@ socket_starttls(socket_st * socket, const char *app_proto) return; if (strcasecmp(app_proto, "smtp") == 0 || strcasecmp(app_proto, "submission") == 0) { - send_line(socket->fd, "EHLO mail.example.com\n"); wait_for_text(socket->fd, "220 ", 4); + send_line(socket->fd, "EHLO mail.example.com\n"); + wait_for_text(socket->fd, "250 ", 4); send_line(socket->fd, "STARTTLS\n"); wait_for_text(socket->fd, "220 ", 4); } else if (strcasecmp(app_proto, "imap") == 0 || strcasecmp(app_proto, "imap2") == 0) { |