aboutsummaryrefslogblamecommitdiffstats
path: root/camel/camel-sasl-kerberos4.h
blob: 806c75866455ce7d893d3e08ab978aa01cce8ad0 (plain) (tree)































                                                                           
                  































                                                                                                                        
/* -*- 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_KERBEROS4_H
#define CAMEL_SASL_KERBEROS4_H

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

#include <camel/camel-sasl.h>
#include <sys/types.h>
#include <netdb.h>

#define CAMEL_SASL_KERBEROS4_TYPE     (camel_sasl_kerberos4_get_type ())
#define CAMEL_SASL_KERBEROS4(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_SASL_KERBEROS4_TYPE, CamelSaslKerberos4))
#define CAMEL_SASL_KERBEROS4_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SASL_KERBEROS4_TYPE, CamelSaslKerberos4Class))
#define CAMEL_IS_SASL_KERBEROS4(o)    (CAMEL_CHECK_TYPE((o), CAMEL_SASL_KERBEROS4_TYPE))

typedef struct _CamelSaslKerberos4 {
    CamelSasl parent_object;
    struct _CamelSaslKerberos4Private *priv;
    
    struct hostent *host;
    char *protocol, *username;
} CamelSaslKerberos4;


typedef struct _CamelSaslKerberos4Class {
    CamelSaslClass parent_class;
    
} CamelSaslKerberos4Class;


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

/* public methods */
CamelSasl * camel_sasl_kerberos4_new (const char *protocol, const char *username, struct hostent *host);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CAMEL_SASL_KERBEROS4_H */