summaryrefslogtreecommitdiff
path: root/user/dovecot/time64.patch
diff options
context:
space:
mode:
authorLee Starnes <lee@canned-death.us>2021-03-14 00:08:56 +0000
committerLee Starnes <lee@canned-death.us>2021-03-14 00:08:56 +0000
commitd56819d2f11c5813287d2de9588bd0e9a96b1ad9 (patch)
treeaf0f1fa21b5c4740228f81a0b08ce5a1201da666 /user/dovecot/time64.patch
parent481f7f9e0786aaed149bd4c4020d74e17640560c (diff)
downloadpackages-d56819d2f11c5813287d2de9588bd0e9a96b1ad9.tar.gz
packages-d56819d2f11c5813287d2de9588bd0e9a96b1ad9.tar.bz2
packages-d56819d2f11c5813287d2de9588bd0e9a96b1ad9.tar.xz
packages-d56819d2f11c5813287d2de9588bd0e9a96b1ad9.zip
user/dovecot: bump to 2.3.14
Diffstat (limited to 'user/dovecot/time64.patch')
-rw-r--r--user/dovecot/time64.patch26
1 files changed, 8 insertions, 18 deletions
diff --git a/user/dovecot/time64.patch b/user/dovecot/time64.patch
index c6f8e6261..4cd5c46e1 100644
--- a/user/dovecot/time64.patch
+++ b/user/dovecot/time64.patch
@@ -1,27 +1,17 @@
---- dovecot-2.3.11.3/src/lib-oauth2/oauth2-jwt.c.old 2020-08-12 12:20:41.000000000 +0000
-+++ dovecot-2.3.11.3/src/lib-oauth2/oauth2-jwt.c 2020-09-15 14:21:24.285796733 +0000
-@@ -31,13 +31,13 @@
+--- 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)
-+ long long *value_r)
+ 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;
- if (value == NULL)
- return 0;
-- if ((str_to_long(value, value_r) < 0 &&
-+ if ((str_to_llong(value, value_r) < 0 &&
- !iso8601_date_parse((const unsigned char*)value, strlen(value),
- value_r, &tz_offset)) ||
- *value_r < 0)
-@@ -283,9 +283,9 @@
- const char *sub = get_field(tree, "sub");
-
+@@ -313,7 +313,7 @@
int ret;
-- long t0 = time(NULL);
-+ long long t0 = time(NULL);
+ long t0 = time(NULL);
/* default IAT and NBF to now */
- long iat, nbf, exp;
+ long long iat, nbf, exp;