smtp: General tidy up ready for adding NTLM support
authorSteve Holme <steve_holme@hotmail.com>
Sat, 1 Oct 2011 11:35:36 +0000 (12:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Oct 2011 21:28:17 +0000 (23:28 +0200)
commitd54bcebad49b395b183455133e3e1fc8537826d2
tree03019df327a9e9d6f9060752da02fb921312ccce
parent0435800f65ce3eddd11ad6d6877d4d0818bfcaa6
smtp: General tidy up ready for adding NTLM support

Changed the name of variable l, in several functions, which represents
the length of strings being sent to the server, to len which is more
meaningful and consistent with other code in smtp.c and elsewhere.

Reworked smtp_authenticate() to be simpler and easier to follow.
Variables and now initialised in their definitions and if no username
and password are specified the function sets the state to SMTP_STOP and
returns immediately, rather than being part of a huge if statement.
lib/smtp.c