common: Guarantee that gnupg_get_time does not return an error.
authorWerner Koch <wk@gnupg.org>
Wed, 24 Aug 2016 16:37:55 +0000 (18:37 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 24 Aug 2016 16:37:55 +0000 (18:37 +0200)
commit5eb2682686b32bd82096924eeabd0c5bd347adfd
tree3183fe3f177ec086456916c8d71d4815c45375ed
parent460568d341851ac79dd100e00e4eafcac1318148
common: Guarantee that gnupg_get_time does not return an error.

* common/gettime.c (gnupg_get_time): Abor if time() failed.
(gnupg_get_isotime): Remove now useless check.
(make_timestamp): Remove check becuase we already checked this modulo
the faked time thing.
--

In reality a call foo = time (NULL) can never fail because the only
defined error is EFAULT, but we don't provide a buffer.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/gettime.c