cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SMTP authentication methods in API [PATCH]

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Mar 2011 00:43:33 -0700

On Tue, Mar 22, 2011 at 08:22:49AM +0100, Patricia Muscalu wrote:
> Thank you for your answers. Here is my attempt to expose SMTP authentication
> methods in API
[...]
> +/* SMTP authentication mechanism flags. */
> +#define CURL_SMTP_AUTH_LOGIN 0x0001
> +#define CURL_SMTP_AUTH_PLAIN 0x0002
> +#define CURL_SMTP_AUTH_CRAM_MD5 0x0004
> +#define CURL_SMTP_AUTH_DIGEST_MD5 0x0008
> +#define CURL_SMTP_AUTH_GSSAPI 0x0010
> +#define CURL_SMTP_AUTH_EXTERNAL 0x0020

Since SMTP uses SASL for authentication, I suggest renaming these to
CURL_SASL_AUTH_x so that they can be used for other protocols in the future.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-22