aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-sasl.h
blob: 55f2fb9e7c770c12b396a517f026ef0818eb3b12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 *  Authors: Jeffrey Stedfast <fejj@ximian.com>
 *
 *  Copyright 2001 Ximian, Inc. (www.ximian.com)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  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 Street #330, Boston, MA 02111-1307, USA.
 *
 */

#ifndef CAMEL_SASL_H
#define CAMEL_SASL_H

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

#include <glib.h>
#include <camel/camel-object.h>
#include <camel/camel-exception.h>
#include <camel/camel-service.h>

#define CAMEL_SASL_TYPE     (camel_sasl_get_type ())
#define CAMEL_SASL(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_SASL_TYPE, CamelSasl))
#define CAMEL_SASL_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SASL_TYPE, CamelSaslClass))
#define CAMEL_IS_SASL(o)    (CAMEL_CHECK_TYPE((o), CAMEL_SASL_TYPE))

typedef struct _CamelSasl {
    CamelObject parent_object;
    
    char *service_name;
    CamelService *service;
    gboolean authenticated;
} CamelSasl;


typedef struct _CamelSaslClass {
    CamelObjectClass parent_class;
    
    GByteArray *    (*challenge)   (CamelSasl *sasl, GByteArray *token, CamelException *ex);

} CamelSaslClass;


/* Standard Camel function */
CamelType  camel_sasl_get_type (void);

/* public methods */
GByteArray *camel_sasl_challenge        (CamelSasl *sasl, GByteArray *token, CamelException *ex);
char       *camel_sasl_challenge_base64 (CamelSasl *sasl, const char *token, CamelException *ex);

gboolean    camel_sasl_authenticated    (CamelSasl *sasl);

/* utility functions */
CamelSasl  *camel_sasl_new              (const char *service_name, const char *mechanism, CamelService *service);

GList                *camel_sasl_authtype_list (gboolean include_plain);
CamelServiceAuthType *camel_sasl_authtype      (const char *mechanism);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CAMEL_SASL_H */
it/?id=5feeb8673007ab5b9d7383205603f36fbaacee07'>Reset maintainer at his request. This port is now available for adoption.linimon2005-04-091-1/+1 * - Update to 0.8.1.59pav2005-04-094-8/+6 * . When linprocfs is not mounted the Linux JDK will output a warning message,glewis2005-04-092-0/+34 * - Update to 0.0.20050220pav2005-04-093-15/+22 * - Update to 200504.r1pav2005-04-092-4/+4 * - Update mail/getmail to 4.3.6leeym2005-04-092-3/+3 * Ports should be using 'ARCH', not 'MACHINE_ARCH'.obrien2005-04-091-3/+3 * Update to DAT 4465jeh2005-04-092-3/+3 * Remove empty file.lofi2005-04-094-0/+0 * Use pre-su-install instead of pre-install.jmz2005-04-091-1/+1 * Upgrade modules: file-1.190-4, ipfw-1.190-3.olgeni2005-04-082-0/+7 * . Bump PORTREVISION, forgotten when doing the fixes prior to the portsglewis2005-04-082-6/+8 * update to full versionvs2005-04-084-23/+16 * Backing out part of last commit, that was breaking the version string.lth2005-04-086-18/+18 * Update to 2.030skv2005-04-082-3/+3 * Update to 0.21mat2005-04-082-4/+3 * * add missed TestHarnessPHP.pmskv2005-04-082-0/+4 * Update to 2.9006skv2005-04-082-4/+4 * p5-Shell-Parser --> ports/devel/p5-Shell-Parserskv2005-04-081-0/+1 * Add p5-Shell-Parser 0.03, simple shell script parser.skv2005-04-085-0/+33 * Remove deprecated and expired devel/p5-Server-FastPL,tobez2005-04-081-5/+0 * Remove deprecated and expired devel/p5-Server-FastPL,tobez2005-04-0824-214/+5 * Update to 2005.04.07.nork2005-04-082-3/+3 * Remove misc/nwritevs2005-04-081-1/+0 * Update to version 3.0.1markus2005-04-083-4/+12 * Remove port: Project no longer existsvs2005-04-086-80/+1 * Update to 2.1.3.novel2005-04-082-3/+3 * - Install docsnovel2005-04-082-3/+135 * - Mark the port deprecated, as BitMover are discontinuing support forvs2005-04-081-1/+2 * Use SUB_{FILES,LIST} to make rc.subr-script PREFIX-awarevs2005-04-084-8/+12 * Fix fetch.kwm2005-04-081-1/+1 * - Remove zero sized patch filepav2005-04-081-0/+0 * Add missing `@' before ${CAT}.danfe2005-04-081-1/+1 * Fix the case when ports tree is read-only (CDROM and similar media).danfe2005-04-081-1/+4 * Make LDAP support an option.joerg2005-04-083-3/+16 * taxipilot-0.9.1 < taxipilot-0.9.01_2, therefor PORTEPOCH bumpededwin2005-04-081-0/+1 * - Fix privilege during pre-installlth2005-04-086-54/+54 * Mark as BROKEN on sparc64/CURRENTvs2005-04-081-0/+4 * Unbreak: Our patch got integrated into upstreamvs2005-04-083-15/+3 * - Update to 0.9.3sem2005-04-0810-468/+568 * At maintainer's request, reassign to ports@FreeBSD.org. This port islinimon2005-04-081-1/+3 * Port screem to the dbus-0.3x API.marcus2005-04-082-0/+86 * - Reset maintainerahze2005-04-081-1/+1 * - Add extra dir in pkg-plistsem2005-04-081-1/+1 * - We don't install .la file anymoresem2005-04-081-6/+0 * - Update to 0.5.2ahze2005-04-082-6/+6 * Update maintainer's email address.linimon2005-04-087-7/+7 * Update to m91maho2005-04-08204-3852/+3420 * \*kde\* matches too many ports, kde\* \*kde-i18n\* should be safer.lofi2005-04-081-1/+1 * Fix INDEX: x11-toolkits/libsx -> x11/libsx in BUILD_DEPENDShq2005-04-081-1/+1 * Change MASTER_SITES.lofi2005-04-081-1/+1 * Slighty change the UPDATING instructions so that i18n ports arelofi2005-04-081-1/+1 * Back out rev 1.2 -- it was not approved by the maintainer.obrien2005-04-082-0/+0 * grads -> ports/graphics/gradsglewis2005-04-081-0/+1 * . Add a port of GrADS:glewis2005-04-0811-0/+574 * Reset bouncing maintainer address:linimon2005-04-081-1/+1 * - Add missing man pageahze2005-04-081-0/+2 * - Fix build on 4.x by commenting out a line that should be ignored by gcc2.95ahze2005-04-081-0/+15 * . Fix the build on FreeBSD 4.x by using <inttypes.h> rather than <stdint.h>glewis2005-04-086-0/+92 * - Add USE_GNOME=gnomehier to remove gnome directories.ahze2005-04-083-3/+3 * Remove myself from maintainerache2005-04-081-1/+1 * Due to various objections, remove the DEPRECATED line. Although thelinimon2005-04-081-2/+0 * - Mark BROKEN until new version compatible with latest libosip2 is releasedpav2005-04-081-0/+2 * - Add missed gettext dependencypav2005-04-081-0/+1 * Reset bouncing maintainer address. Reset all mastersites (they havelinimon2005-04-081-4/+5 * make it fetchable again by changing MASTER_SITES.ume2005-04-0841-41/+41 * remove etc/sylpheed-mime.typesoliver2005-04-084-4/+0 * Reset maintainer due to email bounce. Maintainer has not been activelinimon2005-04-081-1/+1 * List missing directories in plistvs2005-04-082-0/+4 * Correct the PLIST_FILES variable name (dunno what I'd beenadamw2005-04-081-2/+3 * - update to 0.07leeym2005-04-082-3/+3 * . Add a patch to fix the build on FreeBSD 4.x, forgotten in the previousglewis2005-04-081-0/+14 * + update port: ftp/pear-Net_FTP to 1.3.1novel2005-04-082-5/+4 * . Simplify how DISTFILES is constructed, which also makes portlint happyglewis2005-04-081-8/+6 * Fix segfault when there is no swap.novel2005-04-082-4/+14 * fix packaging on 4oliver2005-04-081-1/+1 * - update to 1.4clsung2005-04-082-3/+3 * Update to DAT 4464jeh2005-04-082-3/+3 * Fix build WITH_QT.lofi2005-04-072-1/+6 * Upgrade to 0.9.0.vanilla2005-04-0714-76/+44 * Remove net/linux-edonkey-gui-gtkvs2005-04-071-1/+0 * Remove port: No longer available; a native version exists in net/edonkey-gui-...vs2005-04-075-73/+1 * Remove references to dead homepagevs2005-04-072-4/+1 * Add mirrorvs2005-04-072-2/+6 * - Unbreak licq-osd: Update to 1.3.0 from main licq-distributionvs2005-04-078-42/+54 * Remove audio/reblervs2005-04-071-1/+0 * Remove audio/rebler:vs2005-04-076-116/+1 * Drop maintainership.lofi2005-04-071-1/+1 * Replace "%" in patch filenames with "_".tobez2005-04-076-0/+0 * Fix plist, dump portrevision.kwm2005-04-072-0/+4 * Add missed load_rc_config, othervise it's impossible to override any of thesobomax2005-04-078-4/+12 * Update to 0.9.1arved2005-04-073-13/+114 * - update to p5-News-Article-NoCeM-0.06leeym2005-04-072-3/+3 * Unbreak the port for 5.x (and above). The wondersome makefilejoerg2005-04-074-8/+25 * Update to 0.10mat2005-04-073-9/+24 * Reformat Makefile header and pkg-descr to be more canonical way.danfe2005-04-072-8/+8 * Update to 0.25mat2005-04-072-5/+4 * p5-Catalyst --> ports/www/p5-Catalystijliao2005-04-071-0/+1 * add p5-Catalyst 4.34ijliao2005-04-075-0/+99 * - update to 2.6.9clsung2005-04-072-6/+6 * - Update to 1.7.6ahze2005-04-073-63/+23 * Updated manpage and pkg-descr. Changed the 'stop' command to callerwin2005-04-073-12/+13 * Add mising dirrm'serwin2005-04-071-0/+7 * - Fix dependency on PostgreSQL.flz2005-04-07