From 92d7dbf6cea9dc43bd55e353c9b38315791a6317 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 8 Feb 2002 01:56:45 +0000 Subject: Implementation of NTLM (aka "Secure Password Authentication") auth, taken * camel-sasl-ntlm.c: Implementation of NTLM (aka "Secure Password Authentication") auth, taken from soup. * Makefile.am (libcamel_la_SOURCES, libcamel_la_HEADERS): Add camel-sasl-ntlm. * camel-sasl.c: Add refs to camel-sasl-ntlm. * providers/imap/camel-imap-store.c (try_auth): Use imap_next_word() to skip over the "+ " of the continuation rather than just "resp + 2" since Exchange (incorrectly) returns "+" instead of "+ " for an empty continuation response. svn path=/trunk/; revision=15605 --- camel/camel-sasl-ntlm.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 camel/camel-sasl-ntlm.h (limited to 'camel/camel-sasl-ntlm.h') diff --git a/camel/camel-sasl-ntlm.h b/camel/camel-sasl-ntlm.h new file mode 100644 index 0000000000..3818081c74 --- /dev/null +++ b/camel/camel-sasl-ntlm.h @@ -0,0 +1,57 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Copyright 2002 Ximian, Inc. (www.ximian.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + */ + +#ifndef CAMEL_SASL_NTLM_H +#define CAMEL_SASL_NTLM_H + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus }*/ + +#include + +#define CAMEL_SASL_NTLM_TYPE (camel_sasl_ntlm_get_type ()) +#define CAMEL_SASL_NTLM(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SASL_NTLM_TYPE, CamelSaslNTLM)) +#define CAMEL_SASL_NTLM_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SASL_NTLM_TYPE, CamelSaslNTLMClass)) +#define CAMEL_IS_SASL_NTLM(o) (CAMEL_CHECK_TYPE((o), CAMEL_SASL_NTLM_TYPE)) + +typedef struct _CamelSaslNTLM { + CamelSasl parent_object; + +} CamelSaslNTLM; + + +typedef struct _CamelSaslNTLMClass { + CamelSaslClass parent_class; + +} CamelSaslNTLMClass; + + +/* Standard Camel function */ +CamelType camel_sasl_ntlm_get_type (void); + +extern CamelServiceAuthType camel_sasl_ntlm_authtype; + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* CAMEL_SASL_NTLM_H */ -- cgit