]> err.no Git - yubikey-personalization.old/commitdiff
Add NEWS entry. Bump version. Fixed shared library version. Fix code style.
authorSimon Josefsson <simon@josefsson.org>
Wed, 20 Jul 2011 10:16:45 +0000 (12:16 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 20 Jul 2011 10:16:45 +0000 (12:16 +0200)
NEWS
configure.ac
libykpers-1.map
ykpers.c

diff --git a/NEWS b/NEWS
index 564ff1e9e336723c63a7c8f81be4b435aabe0c46..2e03eee0e77a19f59bc523715bc702f1b027ec76 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,15 @@
 Yubikey-personalize NEWS -- History of user-visible changes.     -*- outline -*-
 
-* Version 1.5.3 (unreleased)
+* Version 1.6.0 (unreleased)
 
 ** Accept firmware version 2.3.x too.
 
+** ykpersonalize: New parameter -oath-imf for OATH Initial Moving Factor.
+Contributed by Frank Cusack <frank@google.com>.
+
+** libykpers: New apis for setting/getting OATH Initial Moving Factor.
+The APIs are ykp_set_oath_imf and ykp_get_oath_imf.
+
 * Version 1.5.2 (released 2011-05-10)
 
 ** Added an udev file.
index 47491e732d43561cea6cadddf6baddc79437f899..2e4a4606509c789bfe186f9ba937663a4a8b854b 100644 (file)
@@ -26,7 +26,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-AC_INIT([yubikey-personalization], [1.5.3],
+AC_INIT([yubikey-personalization], [1.6.0],
   [yubico-devel@googlegroups.com], [ykpers],
   [http://code.google.com/p/yubikey-personalization/])
 AC_CONFIG_AUX_DIR([build-aux])
@@ -36,9 +36,9 @@ AC_CONFIG_MACRO_DIR([m4])
 # Interfaces changed/added/removed:   CURRENT++       REVISION=0
 # Interfaces added:                             AGE++
 # Interfaces removed:                           AGE=0
-AC_SUBST(LT_CURRENT, 6)
-AC_SUBST(LT_REVISION, 2)
-AC_SUBST(LT_AGE, 5)
+AC_SUBST(LT_CURRENT, 7)
+AC_SUBST(LT_REVISION, 0)
+AC_SUBST(LT_AGE, 6)
 
 AM_INIT_AUTOMAKE([-Wall -Werror])
 AC_PROG_CC
index 582da7ddd865618d0d668802c2bf5a2e60caef2e..caa916ce509a261d17b94dd4dc6df0e0300e9e2d 100644 (file)
@@ -1,5 +1,5 @@
 # Written by Simon Josefsson <simon@yubico.com>.
-# Copyright (c) 2008, 2009 Yubico AB
+# Copyright (c) 2008, 2009, 2011 Yubico AB
 # All rights reserved.
 # 
 # Redistribution and use in source and binary forms, with or without
@@ -116,7 +116,13 @@ LIBYKPERS_1.5 {
   yk_wait_for_key_status;
   yk_read_response_from_key;
   yk_get_serial;
+# Variables:
+} LIBYKPERS_1.4;
+
+LIBYKPERS_1.6 {
+  global:
+# Functions:
   ykp_set_oath_imf;
   ykp_get_oath_imf;
 # Variables:
-} LIBYKPERS_1.4;
+} LIBYKPERS_1.5;
index c833653aa8eabe6ecee6b5109aba58f9096390f8..42756c1b3efeff262d5ad83fd568f2da47e78b87 100644 (file)
--- a/ykpers.c
+++ b/ykpers.c
@@ -313,15 +313,15 @@ int ykp_set_oath_imf(YKP_CONFIG *cfg, unsigned long imf)
 {
        if (!vcheck_v22_or_greater(cfg)) {
                ykp_errno = YKP_EYUBIKEYVER;
-               return 0;               
+               return 0;
        }
        if (imf > 65535*16) {
                ykp_errno = YKP_EINVAL;
-               return 0;               
+               return 0;
        }
        if (imf % 16 != 0) {
                ykp_errno = YKP_EINVAL;
-               return 0;               
+               return 0;
        }
        /* IMF/16 is 16 bits stored big-endian in uid[4] */
        imf /= 16;
@@ -332,11 +332,13 @@ int ykp_set_oath_imf(YKP_CONFIG *cfg, unsigned long imf)
 
 unsigned long ykp_get_oath_imf(YKP_CONFIG *cfg)
 {
-       if (!vcheck_v22_or_greater(cfg))
-               return 0;               
+       if (!vcheck_v22_or_greater(cfg)) {
+               return 0;
+       }
 
        /* we can't do a simple cast due to alignment issues */
-       return ((cfg->ykcore_config.uid[4] << 8) | cfg->ykcore_config.uid[5]) << 4;
+       return ((cfg->ykcore_config.uid[4] << 8)
+               | cfg->ykcore_config.uid[5]) << 4;
 }
 
 #define def_set_charfield(fnname,fieldname,size,extra,vcheck)  \