From ae5d5015c916d9a7541e3091f3568901f3174ccd Mon Sep 17 00:00:00 2001 From: levitte Date: Wed, 8 Oct 2008 19:11:22 +0000 Subject: [PATCH] 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 --- ykpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), -- 2.39.5