From: Klas Lindfors Date: Wed, 25 Apr 2012 10:19:37 +0000 (+0200) Subject: add build_version to config struct X-Git-Tag: v1.7.0~1^2~33 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb90c260b1f44e93cf0a69298e5c8d5c30d0ec90;p=yubikey-personalization add build_version to config struct --- diff --git a/ykpers.c b/ykpers.c index 3ec58c9..92beb0c 100644 --- a/ykpers.c +++ b/ykpers.c @@ -45,6 +45,7 @@ struct ykp_config_t { unsigned int yk_major_version; unsigned int yk_minor_version; + unsigned int yk_build_version; unsigned int command; YK_CONFIG ykcore_config; @@ -85,6 +86,7 @@ YKP_CONFIG *ykp_create_config(void) sizeof(default_config1)); cfg->yk_major_version = 1; cfg->yk_minor_version = 3; + cfg->yk_build_version = 0; cfg->command = SLOT_CONFIG; return cfg; } @@ -114,6 +116,7 @@ void ykp_configure_version(YKP_CONFIG *cfg, YK_STATUS *st) { cfg->yk_major_version = st->versionMajor; cfg->yk_minor_version = st->versionMinor; + cfg->yk_build_version = st->versionBuild; } int ykp_configure_command(YKP_CONFIG *cfg, uint8_t command)