X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fauth.h;h=df1fb757cc4f9647c747e8e21614108c1088034f;hp=608efc26610b46a26186c017ce0bdbcacb1d2b8a;hb=08fa240d29322ece4c7bceebfae6c6d3fb856f0e;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/imap/auth.h b/imap/auth.h index 608efc2..df1fb75 100644 --- a/imap/auth.h +++ b/imap/auth.h @@ -1,20 +1,11 @@ /* + * Copyright notice from original mutt: * Copyright (C) 2000-1 Brendan Cully - * - * 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 Place - Suite 330, Boston, MA 02111, USA. - */ + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. + */ /* common defs for authenticators. A good place to set up a generic callback * system */ @@ -22,34 +13,33 @@ #ifndef _IMAP_AUTH_H #define _IMAP_AUTH_H 1 -typedef enum -{ +typedef enum { IMAP_AUTH_SUCCESS = 0, IMAP_AUTH_FAILURE, IMAP_AUTH_UNAVAIL } imap_auth_res_t; -typedef struct -{ +typedef struct { /* do authentication, using named method or any available if method is NULL */ - imap_auth_res_t (*authenticate) (IMAP_DATA* idata, const char* method); + imap_auth_res_t (*authenticate) (IMAP_DATA * idata, const char *method); /* name of authentication method supported, NULL means variable. If this * is not null, authenticate may ignore the second parameter. */ - const char* method; + const char *method; } imap_auth_t; /* external authenticator prototypes */ #ifndef USE_SASL -imap_auth_res_t imap_auth_anon (IMAP_DATA* idata, const char* method); -imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata, const char* method); +imap_auth_res_t imap_auth_anon (IMAP_DATA * idata, const char *method); +imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA * idata, const char *method); #endif -imap_auth_res_t imap_auth_login (IMAP_DATA* idata, const char* method); +imap_auth_res_t imap_auth_login (IMAP_DATA * idata, const char *method); + #ifdef USE_GSS -imap_auth_res_t imap_auth_gss (IMAP_DATA* idata, const char* method); +imap_auth_res_t imap_auth_gss (IMAP_DATA * idata, const char *method); #endif #ifdef USE_SASL -imap_auth_res_t imap_auth_sasl (IMAP_DATA* idata, const char* method); +imap_auth_res_t imap_auth_sasl (IMAP_DATA * idata, const char *method); #endif #endif /* _IMAP_AUTH_H */