Werner Koch
3ee314dde1
gpg: Make function mk_datestr public.
...
* g10/keydb.h (MK_DATESTR_SIZE): New.
* g10/keyid.c (mk_datestr): Make public. Add arg bufsize and use
snprintf. Change arg atime to u32.
(datestr_from_pk): Simplify.
(datestr_from_sig): Ditto.
(expirestr_from_pk): Ditto.
(expirestr_from_sig): Ditto.
(revokestr_from_pk): Ditto.
--
Note that this also reduces the size of the static buffers from 16 to
11 which is sufficient for the string. In the past we added the 5
extra bytes to cope for bugs in gmtime which is now handles by
snprintf.
Signed-off-by: Werner Koch <wk@gnupg.org>
2017-07-20 18:13:40 +02:00
..
2017-05-11 18:12:37 +02:00
2017-05-10 11:13:12 +09:00
2017-07-13 18:29:01 +02:00
2017-07-17 15:53:16 +02:00
2017-03-16 14:32:51 +09:00
2017-07-13 18:29:01 +02:00
2016-11-05 12:02:19 +01:00
2017-07-13 18:29:01 +02:00
2016-11-02 12:53:58 +01:00
2017-03-07 20:25:54 +09:00
2017-04-11 13:52:19 +09:00
2017-03-07 20:25:54 +09:00
2017-05-30 14:30:43 +02:00
2017-03-07 20:25:54 +09:00
2017-06-23 12:01:20 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-03-31 20:07:20 +02:00
2016-12-20 10:22:05 +01:00
2017-03-07 20:25:54 +09:00
2017-07-17 15:53:16 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-04-17 09:15:13 +09:00
2017-03-07 20:25:54 +09:00
2017-03-30 16:01:52 +02:00
2017-07-20 17:47:04 +02:00
2015-02-04 09:15:34 +01:00
2017-07-13 18:29:01 +02:00
2017-03-31 21:27:16 +02:00
2015-02-04 09:15:34 +01:00
2017-06-14 09:35:47 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-06-21 15:51:10 +02:00
2017-03-07 20:25:54 +09:00
2017-07-14 11:17:49 +02:00
2017-03-29 12:08:31 +02:00
2017-06-14 09:35:47 +02:00
2017-06-14 09:35:47 +02:00
2017-03-31 20:08:23 +02:00
2017-07-20 18:13:40 +02:00
2017-06-14 09:35:47 +02:00
2017-06-13 15:36:47 +02:00
2017-06-20 10:46:52 +02:00
2017-07-20 18:13:40 +02:00
2017-06-21 15:06:04 +02:00
2017-05-08 14:33:11 +02:00
2017-03-31 20:07:20 +02:00
2017-07-13 18:29:01 +02:00
2017-07-13 18:29:01 +02:00
2017-07-13 18:29:01 +02:00
2017-07-19 13:09:13 +02:00
2017-07-10 18:09:42 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-06-07 16:53:32 +02:00
2017-05-02 18:55:32 +09:00
2017-07-13 18:29:01 +02:00
2017-07-13 18:29:01 +02:00
2017-07-13 18:29:01 +02:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-06-07 16:53:32 +02:00
2017-03-07 20:25:54 +09:00
2016-11-05 12:02:19 +01:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-06-23 12:01:20 +02:00
2017-01-23 19:16:55 +01:00
2017-03-31 20:07:20 +02:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2017-06-19 19:57:11 +02:00
2017-07-17 15:53:16 +02:00
2017-05-22 09:27:36 +09:00
2017-03-30 16:01:52 +02:00
2015-11-17 14:53:03 +01:00
2015-09-02 15:08:57 +02:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-03-08 14:08:49 +01:00
2017-05-10 11:13:03 +09:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2017-03-31 20:07:20 +02:00
2017-03-31 20:07:20 +02:00
2017-04-24 14:14:05 +02:00
2017-03-07 20:25:54 +09:00
2017-07-10 18:09:42 +02:00
2016-12-06 12:16:56 +01:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00