Home GnuPG
Diffusion GnuPG 5eb2682686b3

common: Guarantee that gnupg_get_time does not return an error.
5eb2682686b3Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Aug 24 2016, 6:37 PM
Parents
rG460568d34185: wks: Add command --supported to gpg-wks-client.
Branches
Unknown
Tags
Unknown

Event Timeline