Skip to content

Commit 69cb333

Browse files
Revert "Reduce auth_header size from 65536 to 4096, since tokens are unlikely to exceed that. (#193)" (#194)
This reverts commit 84ad9ea.
1 parent 84ad9ea commit 69cb333

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/write_gcm.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ int wg_extract_toplevel_json_long_long(const char *json, const char *key,
10151015
//
10161016
// EXAMPLE USAGE
10171017
//
1018-
// char auth_header[4096];
1018+
// char auth_header[65536];
10191019
// if (wg_oauth2_get_auth_header(auth_header, sizeof(auth_header),
10201020
// oauth2_ctx, credential_ctx) != 0) {
10211021
// return -1; // error
@@ -1046,7 +1046,7 @@ static void wg_oauth2_ctx_destroy(oauth2_ctx_t *);
10461046
struct oauth2_ctx_s {
10471047
pthread_mutex_t mutex;
10481048
cdtime_t token_expire_time;
1049-
char auth_header[4096];
1049+
char auth_header[65536];
10501050
};
10511051

10521052
static int wg_oauth2_get_auth_header_nolock(oauth2_ctx_t *ctx,
@@ -3936,7 +3936,7 @@ static int wg_transmit_unique_segment(
39363936
char *response = NULL;
39373937
int result = -1; // Pessimistically assume failure.
39383938

3939-
char auth_header[4096];
3939+
char auth_header[65536];
39403940
if (wg_oauth2_get_auth_header(auth_header, sizeof(auth_header),
39413941
ctx->oauth2_ctx, ctx->cred_ctx) != 0) {
39423942
ERROR("write_gcm: wg_oauth2_get_auth_header failed.");

0 commit comments

Comments
 (0)