Skip to content

Commit 65f51dc

Browse files
committed
formatting
Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
1 parent 367abe7 commit 65f51dc

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

include/oauth2/cfg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ oauth2_flag_t
134134
oauth2_cfg_endpoint_get_ssl_verify(const oauth2_cfg_endpoint_t *cfg);
135135
oauth2_uint_t
136136
oauth2_cfg_endpoint_get_http_timeout(const oauth2_cfg_endpoint_t *cfg);
137-
const char *oauth2_cfg_endpoint_get_outgoing_proxy(const oauth2_cfg_endpoint_t *cfg);
137+
const char *
138+
oauth2_cfg_endpoint_get_outgoing_proxy(const oauth2_cfg_endpoint_t *cfg);
138139

139140
/*
140141
* token verify

src/cfg/proto_cfg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ char *oauth2_cfg_set_endpoint(oauth2_log_t *log, oauth2_cfg_endpoint_t *cfg,
146146
value = oauth2_nv_list_get(log, params, key);
147147
if (value) {
148148
rv = oauth2_strdup(oauth2_cfg_set_str_slot(
149-
cfg, offsetof(oauth2_cfg_endpoint_t, outgoing_proxy), value));
149+
cfg, offsetof(oauth2_cfg_endpoint_t, outgoing_proxy),
150+
value));
150151
if (rv)
151152
goto end;
152153
}
@@ -198,7 +199,8 @@ oauth2_cfg_endpoint_get_http_timeout(const oauth2_cfg_endpoint_t *cfg)
198199
return cfg->http_timeout;
199200
}
200201

201-
const char *oauth2_cfg_endpoint_get_outgoing_proxy(const oauth2_cfg_endpoint_t *cfg)
202+
const char *
203+
oauth2_cfg_endpoint_get_outgoing_proxy(const oauth2_cfg_endpoint_t *cfg)
202204
{
203205
return cfg ? cfg->outgoing_proxy : NULL;
204206
}

src/jose.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,8 @@ char *oauth2_jose_resolve_from_uri(oauth2_log_t *log, oauth2_uri_ctx_t *uri_ctx,
20232023
log, ctx,
20242024
oauth2_cfg_endpoint_get_ssl_verify(uri_ctx->endpoint));
20252025
oauth2_http_call_ctx_outgoing_proxy_set(
2026-
log, ctx, oauth2_cfg_endpoint_get_outgoing_proxy(uri_ctx->endpoint));
2026+
log, ctx,
2027+
oauth2_cfg_endpoint_get_outgoing_proxy(uri_ctx->endpoint));
20272028

20282029
rc = oauth2_http_get(
20292030
log, oauth2_cfg_endpoint_get_url(uri_ctx->endpoint), NULL,

src/oauth2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ static bool _oauth2_introspect_verify(oauth2_log_t *log,
320320
oauth2_cfg_endpoint_get_ssl_verify(ctx->endpoint)) == false)
321321
goto end;
322322
oauth2_http_call_ctx_outgoing_proxy_set(
323-
log, http_ctx, oauth2_cfg_endpoint_get_outgoing_proxy(ctx->endpoint));
323+
log, http_ctx,
324+
oauth2_cfg_endpoint_get_outgoing_proxy(ctx->endpoint));
324325

325326
params = oauth2_nv_list_init(log);
326327
if (params == NULL)

src/proto.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,7 @@ bool oauth2_ropc_exec(oauth2_log_t *log, oauth2_cfg_ropc_t *cfg,
469469
goto end;
470470

471471
oauth2_http_call_ctx_ssl_verify_set(
472-
log, ctx,
473-
oauth2_cfg_endpoint_get_ssl_verify(token_endpoint));
472+
log, ctx, oauth2_cfg_endpoint_get_ssl_verify(token_endpoint));
474473
oauth2_http_call_ctx_outgoing_proxy_set(
475474
log, ctx, oauth2_cfg_endpoint_get_outgoing_proxy(token_endpoint));
476475

0 commit comments

Comments
 (0)