Yubikey-personalize NEWS -- History of user-visible changes. -*- outline -*-
+* Version 1.7.0 (unreleased)
+
+** Add support for new features in YubiKey 2.3:
+ALLOW_UPDATE flag that allows updating of configuration in slots.
+Update command (-u) to do update of existing config.
+Swap command (-x) to swap contents of two updatable slots
+DORMANT flag that's settable/removable if ALLOW_UPDATE is set
+USE_NUMERIC_KEYPAD flag for sending the OATH OTP using keypad scan codes instead
+FAST_TRIG flag for faster triggering of slot one if slot two is empty
+
+** Change the library around some to make the 2.3 features available.
+Use ykp_alloc() instead of ykp_create_config().
+Use ykp_configure_version() instead of ykp_configure_for() to set the version.
+Use ykp_configure_command() instead of ykp_configure_for() to set slot.
+Use yk_write_command() instead of yk_write_config().
+
+The new commands doesn't set any default configuration at all.
+
+** Add library support for the YubiKey NEO beta
+ykp_construct_ndef_uri() for preparing a URI to write.
+ykp_construct_ndef_text() for preparing a text to write.
+yk_write_ndef() to write the constructed NDEF.
+
+** Add support for the YubiKey NEO beta
+Writing NDEF URI with -n http://example.com/foo/
+Writing NDEF Text record with -t example
+
+ * Version 1.6.4 (released 2012-05-24)
+
+ ** Implement option -ooath-id to easily set OATH token identifier.
+
+ ** Fix numerous compiler warnings from clang. Thanks to
+ Clemens Lang <neverpanic@gmail.com>.
+
* Version 1.6.3 (released 2011-12-15)
** No real change for regular users. Fix a bug in a test case for
# Interfaces changed/added/removed: CURRENT++ REVISION=0
# Interfaces added: AGE++
# Interfaces removed: AGE=0
- AC_SUBST(LT_CURRENT, 8)
- AC_SUBST(LT_REVISION, 0)
- AC_SUBST(LT_AGE, 7)
-AC_SUBST(LT_CURRENT, 7)
-AC_SUBST(LT_REVISION, 3)
-AC_SUBST(LT_AGE, 6)
AM_INIT_AUTOMAKE([-Wall -Werror])
AM_SILENT_RULES([yes])
optind = 0; /* getopt reinit */
/* copy version number from st into cfg */
- assert(ykp_configure_for(cfg, 1, st) == 1);
+ ykp_configure_version(cfg, st);
+ //assert(ykp_configure_for(cfg, 1, st) == 1);
- /* call args_to_config from ykpersonalize.c with a fake set of program arguments */
- rc = args_to_config(argc, argv, cfg,
+ /* call args_to_config from ykpers-args.c with a fake set of program arguments */
+ rc = args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&autocommit, salt,
st, &verbose,
#include <yubikey.h> /* To get yubikey_modhex_encode and yubikey_hex_encode */
#include <ykdef.h>
+ #define YUBICO_OATH_VENDOR_ID_HEX 0xe1 /* UB as hex */
+ #define YUBICO_HOTP_EVENT_TOKEN_TYPE 0x63 /* HE as hex */
+
const char *usage =
"Usage: ykpersonalize [options]\n"
+"-u update configuration without overwriting. This is only available\n"
+" in YubiKey 2.3 and later. EXTFLAG_ALLOW_UPDATE will be set by\n"
+" default\n"
"-1 change the first configuration. This is the default and\n"
" is normally used for true OTP generation.\n"
" In this configuration, TKTFLAG_APPEND_CR is set by default.\n"
}
}
- if (!ykp_configure_for(cfg, 1, st))
- goto err;
-
/* Parse all arguments in a testable way */
- if (! args_to_config(argc, argv, cfg,
+ if (! args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&autocommit, salt,
st, &verbose,