diff options
author | Dan Winship <danw@src.gnome.org> | 2002-02-08 09:56:45 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-02-08 09:56:45 +0800 |
commit | 92d7dbf6cea9dc43bd55e353c9b38315791a6317 (patch) | |
tree | 60118f9982e4b084d7e14ae74cfa76c0f155f962 /camel/camel-sasl-ntlm.h | |
parent | e02a62282c0227dc50938cff9dbe28be8fed1cab (diff) | |
download | gsoc2013-evolution-92d7dbf6cea9dc43bd55e353c9b38315791a6317.tar.gz gsoc2013-evolution-92d7dbf6cea9dc43bd55e353c9b38315791a6317.tar.zst gsoc2013-evolution-92d7dbf6cea9dc43bd55e353c9b38315791a6317.zip |
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
Diffstat (limited to 'camel/camel-sasl-ntlm.h')
-rw-r--r-- | camel/camel-sasl-ntlm.h | 57 |
1 files changed, 57 insertions, 0 deletions
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 <camel/camel-sasl.h> + +#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 */ |