"Fossies" - the Fresh Open Source Software Archive

Member "evolution-mapi-3.46.1/src/camel/camel-mapi-sasl-krb.c" (2 Dec 2022, 1642 Bytes) of package /linux/misc/evolution-mapi-3.46.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "camel-mapi-sasl-krb.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * This program is free software; you can redistribute it and/or
    3  * modify it under the terms of the GNU Lesser General Public
    4  * License as published by the Free Software Foundation; either
    5  * version 2 of the License, or (at your option) version 3.
    6  *
    7  * This program is distributed in the hope that it will be useful,
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   10  * Lesser General Public License for more details.
   11  *
   12  * You should have received a copy of the GNU Lesser General Public
   13  * License along with the program; if not, see <http://www.gnu.org/licenses/>
   14  *
   15  */
   16 
   17 #include "evolution-mapi-config.h"
   18 
   19 #include <string.h>
   20 
   21 #include <glib/gi18n-lib.h>
   22 
   23 #include "camel-mapi-sasl-krb.h"
   24 
   25 static CamelServiceAuthType mapi_sasl_krb_auth_type = {
   26     N_("Kerberos"),
   27 
   28     N_("This option will connect to the server using kerberos key."),
   29 
   30     "MAPIKRB",
   31     FALSE
   32 };
   33 
   34 G_DEFINE_TYPE (CamelMapiSaslKrb, camel_mapi_sasl_krb, CAMEL_TYPE_SASL)
   35 
   36 static GByteArray *
   37 mapi_sasl_krb_challenge_sync (CamelSasl *sasl,
   38                               GByteArray *token,
   39                               GCancellable *cancellable,
   40                               GError **error)
   41 {
   42     camel_sasl_set_authenticated (sasl, TRUE);
   43 
   44     return NULL;
   45 }
   46 
   47 static void
   48 camel_mapi_sasl_krb_class_init (CamelMapiSaslKrbClass *class)
   49 {
   50     CamelSaslClass *sasl_class;
   51 
   52     sasl_class = CAMEL_SASL_CLASS (class);
   53     sasl_class->auth_type = &mapi_sasl_krb_auth_type;
   54     sasl_class->challenge_sync = mapi_sasl_krb_challenge_sync;
   55 }
   56 
   57 static void
   58 camel_mapi_sasl_krb_init (CamelMapiSaslKrb *mapi_sasl_krb)
   59 {
   60 }