From: Richard Levitte Date: Mon, 31 Aug 2009 17:38:56 +0000 (+0000) Subject: Fix constness X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~74 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f5b94984d2bbf0a3e7430d21bb3584f091a84d;p=yubikey-personalization Fix constness --- 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";