From: 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_0.97-1~129 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae5d5015c916d9a7541e3091f3568901f3174ccd;p=yubikey-personalization.old Don't forget to make sure time_t gets properly declared, and actually get the time as well git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@32 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- 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),