]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-sasl: Reformat mech-oauthbearer.c
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 21 Feb 2025 16:51:35 +0000 (17:51 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 2 Sep 2025 05:25:53 +0000 (05:25 +0000)
src/lib-sasl/mech-oauthbearer.c

index 48d0e9f34732389cdc17faa928f067748d16409f..cf2725ce16402de85ba44fa8ce8ab5e04e841184 100644 (file)
@@ -17,8 +17,8 @@ struct oauthbearer_dsasl_client {
 
 static enum dsasl_client_result
 mech_oauthbearer_input(struct dsasl_client *_client,
-                const unsigned char *input, size_t input_len,
-                const char **error_r)
+                      const unsigned char *input, size_t input_len,
+                      const char **error_r)
 {
        struct oauthbearer_dsasl_client *client =
                (struct oauthbearer_dsasl_client *)_client;
@@ -89,8 +89,8 @@ mech_oauthbearer_input(struct dsasl_client *_client,
 
 static enum dsasl_client_result
 mech_oauthbearer_output(struct dsasl_client *_client,
-                 const unsigned char **output_r, size_t *output_len_r,
-                 const char **error_r)
+                       const unsigned char **output_r, size_t *output_len_r,
+                       const char **error_r)
 {
        struct oauthbearer_dsasl_client *client =
                (struct oauthbearer_dsasl_client *)_client;
@@ -157,6 +157,7 @@ mech_oauthbearer_set_parameter(struct dsasl_client *_client, const char *key,
 {
        struct oauthbearer_dsasl_client *client =
                (struct oauthbearer_dsasl_client *)_client;
+
        if (strcmp(key, "host") == 0) {
                if (value != NULL)
                        client->host = p_strdup(_client->pool, value);
@@ -177,10 +178,12 @@ mech_oauthbearer_set_parameter(struct dsasl_client *_client, const char *key,
 
 static int
 mech_oauthbearer_get_result(struct dsasl_client *_client, const char *key,
-                           const char **value_r, const char **error_r ATTR_UNUSED)
+                           const char **value_r,
+                           const char **error_r ATTR_UNUSED)
 {
        struct oauthbearer_dsasl_client *client =
                (struct oauthbearer_dsasl_client *)_client;
+
        if (strcmp(key, "status") == 0) {
                /* this is set to value after login attempt */
                i_assert(client->status != NULL);