summaryrefslogtreecommitdiff
path: root/user/dovecot/time64.patch
blob: 4cd5c46e1170c2800d50d4de66cb2f51343dc80e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- dovecot-2.3.14.orig/src/lib-oauth2/oauth2-jwt.c	2021-03-13 23:56:53.250000000 +0000
+++ dovecot-2.3.14/src/lib-oauth2/oauth2-jwt.c	2021-03-13 23:57:23.640000000 +0000
@@ -31,7 +31,7 @@
 }
 
 static int
-get_time_field(const struct json_tree *tree, const char *key, long *value_r)
+get_time_field(const struct json_tree *tree, const char *key, long long *value_r)
 {
 	const char *value = get_field(tree, key);
 	int tz_offset ATTR_UNUSED;
@@ -313,7 +313,7 @@
 	int ret;
 	long t0 = time(NULL);
 	/* default IAT and NBF to now */
-	long iat, nbf, exp;
+	long long iat, nbf, exp;
 	int tz_offset ATTR_UNUSED;
 
 	if (sub == NULL) {