Debian Codegraph @

src/Microsoft365/common/camel-sasl-xoauth2-microsoft365.c

raw
1 /*
2 * SPDX-FileCopyrightText: (C) 2020 Red Hat (www.redhat.com)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #include "evolution-ews-config.h"
7
8 #include <glib/gi18n-lib.h>
9
10 #include "camel-sasl-xoauth2-microsoft365.h"
11
12 static CamelServiceAuthType sasl_xoauth2_microsoft365_auth_type = {
13 N_("OAuth2 (Microsoft 365)"),
14 N_("This option will use an OAuth 2.0 access token to connect to the Microsoft 365 server"),
15 "Microsoft365",
16 FALSE
17 };
18
19 G_DEFINE_DYNAMIC_TYPE (CamelSaslXOAuth2Microsoft365, camel_sasl_xoauth2_microsoft365, CAMEL_TYPE_SASL_XOAUTH2)
20
21 static void
22 camel_sasl_xoauth2_microsoft365_class_init (CamelSaslXOAuth2Microsoft365Class *klass)
23 {
24 CamelSaslClass *sasl_class;
25
26 sasl_class = CAMEL_SASL_CLASS (klass);
27 sasl_class->auth_type = &sasl_xoauth2_microsoft365_auth_type;
28 }
29
30 static void
31 camel_sasl_xoauth2_microsoft365_class_finalize (CamelSaslXOAuth2Microsoft365Class *klass)
32 {
33 }
34
35 static void
36 camel_sasl_xoauth2_microsoft365_init (CamelSaslXOAuth2Microsoft365 *sasl)
37 {
38 }
39
40 void
41 camel_sasl_xoauth2_microsoft365_type_register (GTypeModule *type_module)
42 {
43 camel_sasl_xoauth2_microsoft365_register_type (type_module);
44 }