From: levitte@gmail.com Date: Mon, 31 Aug 2009 17:38:56 +0000 (+0000) Subject: Fix constness X-Git-Tag: yubikey-personalisation_0.97-1~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9645efc3fc61ea966fc995fe886ce13f8683e4;p=yubikey-personalization.old Fix constness git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@173 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- diff --git a/ykpers.c b/ykpers.c index dd952b0..7e11a3e 100644 --- a/ykpers.c +++ b/ykpers.c @@ -216,15 +216,15 @@ int ykp_AES_key_from_passphrase(YKP_CONFIG *cfg, const char *passphrase, return 0; } -static bool vcheck_all(YKP_CONFIG *cfg) +static bool vcheck_all(const YKP_CONFIG *cfg) { return true; } -static bool vcheck_v1(YKP_CONFIG *cfg) +static bool vcheck_v1(const YKP_CONFIG *cfg) { return cfg->yk_major_version == 1; } -static bool vcheck_no_v1(YKP_CONFIG *cfg) +static bool vcheck_no_v1(const YKP_CONFIG *cfg) { return cfg->yk_major_version > 1; } @@ -326,7 +326,7 @@ const char str_flags_separator[] = "|"; struct map_st { uint8_t flag; const char *flag_text; - bool (*vcheck)(YKP_CONFIG *cfg); + bool (*vcheck)(const YKP_CONFIG *cfg); }; const char str_ticket_flags[] = "ticket_flags";