From: Simon Josefsson Date: Wed, 20 Jul 2011 10:21:02 +0000 (+0200) Subject: Fix constness. X-Git-Tag: v1.6.0^0 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c190b7b83fce0751e94e0b61ed306dfc9ecf9395;p=yubikey-personalization Fix constness. --- diff --git a/ykpers.c b/ykpers.c index 42756c1..acb01fb 100644 --- a/ykpers.c +++ b/ykpers.c @@ -330,7 +330,7 @@ int ykp_set_oath_imf(YKP_CONFIG *cfg, unsigned long imf) return 1; } -unsigned long ykp_get_oath_imf(YKP_CONFIG *cfg) +unsigned long ykp_get_oath_imf(const YKP_CONFIG *cfg) { if (!vcheck_v22_or_greater(cfg)) { return 0; diff --git a/ykpers.h b/ykpers.h index 614cdb3..5727a8d 100644 --- a/ykpers.h +++ b/ykpers.h @@ -1,6 +1,6 @@ /* -*- mode:C; c-file-style: "bsd" -*- */ /* - * Copyright (c) 2008, 2009, Yubico AB + * Copyright (c) 2008, 2009, 2010, 2011 Yubico AB * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -55,7 +55,7 @@ int ykp_set_access_code(YKP_CONFIG *cfg, unsigned char *access_code, size_t len) int ykp_set_fixed(YKP_CONFIG *cfg, unsigned char *fixed, size_t len); int ykp_set_uid(YKP_CONFIG *cfg, unsigned char *uid, size_t len); int ykp_set_oath_imf(YKP_CONFIG *cfg, unsigned long imf); -unsigned long ykp_get_oath_imf(YKP_CONFIG *cfg); +unsigned long ykp_get_oath_imf(const YKP_CONFIG *cfg); int ykp_set_tktflag_TAB_FIRST(YKP_CONFIG *cfg, bool state); int ykp_set_tktflag_APPEND_TAB1(YKP_CONFIG *cfg, bool state);