From: Richard Levitte Date: Wed, 8 Oct 2008 19:11:22 +0000 (+0000) Subject: Don't forget to make sure time_t gets properly declared, and actually get the time... X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~194 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb1825252683e712de17f01adebf79abd2066ba;p=yubikey-personalization.old Don't forget to make sure time_t gets properly declared, and actually get the time as well --- diff --git a/ykpers.c b/ykpers.c index 095cfae..1e56e15 100644 --- a/ykpers.c +++ b/ykpers.c @@ -34,6 +34,7 @@ #include #include +#include static const CONFIG default_config = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* fixed */ @@ -115,7 +116,7 @@ int ykp_AES_key_from_passphrase(CONFIG *cfg, const char *passphrase, salt from time */ # include - time_t t; + time_t t = time(NULL); uint8_t output[256]; /* 2048 bits is a lot! */ yk_hmac_sha1.prf_fn(passphrase, strlen(passphrase),