aboutsummaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-10-11 21:31:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-10-11 21:31:12 +0200
commit450c994a49c75bc564021c878d6baa7e7b2128c3 (patch)
tree1c19f17cff015673c73270344aa75c347c4eb240 /lib/smtp.c
parent6a43ffa0d58d7e24749286012243d61b1433aba5 (diff)
SMTP: debug output for no known auth mechanisms supported
... and some minor source code whitespace edits
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index c42b7208f..55e03d5a7 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -237,7 +237,8 @@ static int smtp_endofresp(struct pingpong *pp, int *resp)
for (;;) {
while (len &&
- (*line == ' ' || *line == '\t' || *line == '\r' || *line == '\n')) {
+ (*line == ' ' || *line == '\t' ||
+ *line == '\r' || *line == '\n')) {
line++;
len--;
}
@@ -246,7 +247,8 @@ static int smtp_endofresp(struct pingpong *pp, int *resp)
break;
for (wordlen = 0; wordlen < len && line[wordlen] != ' ' &&
- line[wordlen] != '\t' && line[wordlen] != '\r' && line[wordlen] != '\n';)
+ line[wordlen] != '\t' && line[wordlen] != '\r' &&
+ line[wordlen] != '\n';)
wordlen++;
if(wordlen == 5 && !memcmp(line, "LOGIN", 5))
@@ -409,8 +411,10 @@ static CURLcode smtp_authenticate(struct connectdata *conn)
state2 = SMTP_AUTHPASSWD;
l = smtp_auth_login_user(conn, &initresp);
}
- else
+ else {
+ infof(conn->data, "No known auth mechanisms supported!\n");
result = CURLE_LOGIN_DENIED; /* Other mechanisms not supported. */
+ }
if(!result) {
if(!l)