Commit a877273d authored by Klas Lindfors's avatar Klas Lindfors

Imported Upstream version 3.0.6

parent 50539c13
YKPersonalization.pro.user
Makefile
src/ui/ui_*.h
build/
deps/
libs/
Copyright (C) 2011-2012 Yubico AB
All rights reserved.
Copyright (C) 2011-2012 Yubico AB. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
......@@ -14,13 +14,12 @@ All rights reserved.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2012-06-07 Klas Lindfors <klas@yubico.com>
* NEWS: NEWS for 3.0.6
2012-06-07 Klas Lindfors <klas@yubico.com>
* .gitignore: ignore deps and libs
2012-06-07 Klas Lindfors <klas@yubico.com>
* README: describe how you get dependencies
2012-06-07 Klas Lindfors <klas@yubico.com>
* do-source-release.sh: no need to remove dlls, removed from repo
now
2012-06-07 Klas Lindfors <klas@yubico.com>
* .gitignore: ignores ignore Makefile ignore src/ui/ui_*.h ignore build/
2012-06-07 Klas Lindfors <klas@yubico.com>
* deps/libusb-1.0/libusb.h, deps/libykpers/.gitignore,
deps/libykpers/.gitmodules, deps/libykpers/AUTHORS,
deps/libykpers/COPYING, deps/libykpers/Makefile.am,
deps/libykpers/NEWS, deps/libykpers/README,
deps/libykpers/configure.ac, deps/libykpers/contrib/README,
deps/libykpers/contrib/programming.sh,
deps/libykpers/libykpers-1.map, deps/libykpers/rfc4634/hmac.c,
deps/libykpers/rfc4634/sha-private.h, deps/libykpers/rfc4634/sha.h,
deps/libykpers/rfc4634/sha1.c, deps/libykpers/rfc4634/sha224-256.c,
deps/libykpers/rfc4634/sha384-512.c, deps/libykpers/rfc4634/usha.c,
deps/libykpers/tests/Makefile.am, deps/libykpers/tests/selftest.c,
deps/libykpers/tests/test_args_to_config.c,
deps/libykpers/tests/test_key_generation.c,
deps/libykpers/ykchalresp.1, deps/libykpers/ykchalresp.c,
deps/libykpers/ykcore/Makefile.am, deps/libykpers/ykcore/ykcore.c,
deps/libykpers/ykcore/ykcore.h,
deps/libykpers/ykcore/ykcore_backend.h,
deps/libykpers/ykcore/ykcore_lcl.h,
deps/libykpers/ykcore/ykcore_libusb-1.0.c,
deps/libykpers/ykcore/ykcore_libusb.c,
deps/libykpers/ykcore/ykcore_osx.c,
deps/libykpers/ykcore/ykcore_stub.c,
deps/libykpers/ykcore/ykcore_win32.c,
deps/libykpers/ykcore/ykcore_windows.c,
deps/libykpers/ykcore/ykdef.h, deps/libykpers/ykcore/ykstatus.c,
deps/libykpers/ykcore/ykstatus.h, deps/libykpers/ykcore/yktsd.h,
deps/libykpers/ykpbkdf2.c, deps/libykpers/ykpbkdf2.h,
deps/libykpers/ykpers-1.pc.in, deps/libykpers/ykpers.c,
deps/libykpers/ykpers.h, deps/libykpers/ykpers4win.mk,
deps/libykpers/ykpersonalize.1, deps/libykpers/ykpersonalize.c,
deps/libyubikey/AUTHORS, deps/libyubikey/COPYING,
deps/libyubikey/ChangeLog, deps/libyubikey/INSTALL,
deps/libyubikey/Makefile.am, deps/libyubikey/Makefile.in,
deps/libyubikey/NEWS, deps/libyubikey/README,
deps/libyubikey/THANKS, deps/libyubikey/aclocal.m4,
deps/libyubikey/config.guess, deps/libyubikey/config.sub,
deps/libyubikey/configure, deps/libyubikey/configure.ac,
deps/libyubikey/depcomp, deps/libyubikey/install-sh,
deps/libyubikey/libyubikey.map, deps/libyubikey/ltmain.sh,
deps/libyubikey/m4/ld-version-script.m4,
deps/libyubikey/m4/libtool.m4, deps/libyubikey/m4/ltoptions.m4,
deps/libyubikey/m4/ltsugar.m4, deps/libyubikey/m4/ltversion.m4,
deps/libyubikey/m4/lt~obsolete.m4, deps/libyubikey/missing,
deps/libyubikey/modhex.c, deps/libyubikey/selftest.c,
deps/libyubikey/simple.mk, deps/libyubikey/ykaes.c,
deps/libyubikey/ykcrc.c, deps/libyubikey/ykgenerate.c,
deps/libyubikey/ykhex.c, deps/libyubikey/ykmodhex.c,
deps/libyubikey/ykparse.c, deps/libyubikey/yktoken.c,
deps/libyubikey/yubikey.h: remove deps and libs, just copies from
elsewhere, see README for how to get them.
2012-06-07 Klas Lindfors <klas@yubico.com>
* .gitignore: ignore YKPersonalization.pro.user
2012-06-05 Simon Josefsson <simon@josefsson.org>
* COPYING, NEWS, src/common.h, src/crandom.cpp, src/crandom.h,
src/main.cpp, src/otpdef.h, src/ui/aboutpage.cpp,
src/ui/aboutpage.h, src/ui/chalresppage.cpp, src/ui/chalresppage.h,
src/ui/confirmbox.cpp, src/ui/confirmbox.h, src/ui/helpbox.cpp,
src/ui/helpbox.h, src/ui/mainwindow.cpp, src/ui/mainwindow.h,
src/ui/oathpage.cpp, src/ui/oathpage.h, src/ui/otppage.cpp,
src/ui/otppage.h, src/ui/scanedit.cpp, src/ui/scanedit.h,
src/ui/settingpage.cpp, src/ui/settingpage.h,
src/ui/staticpage.cpp, src/ui/staticpage.h, src/ui/toolpage.cpp,
src/ui/toolpage.h, src/version.h, src/yubikeyconfig.cpp,
src/yubikeyconfig.h, src/yubikeyfinder.cpp, src/yubikeyfinder.h,
src/yubikeylogger.cpp, src/yubikeylogger.h, src/yubikeyutil.cpp,
src/yubikeyutil.h, src/yubikeywriter.cpp, src/yubikeywriter.h: Bump
copyright years.
2012-06-05 Klas Lindfors <klas@yubico.com>
* NEWS, src/version.h: bump versions post-release
2012-06-05 Klas Lindfors <klas@yubico.com>
* NEWS, src/version.h: prepare version 3.0.5
......
yubikey-personalization-gui NEWS -- History of user-visible changes. -*- outline -*-
* Version 3.0.6 (released 2012-06-07)
** Bump copyright years.
** Drop deps/ and libs/ explaining in README where you get them.
* Version 3.0.5 (released 2012-06-05)
release scripting, fixed NEWS file.
** release scripting, fixed NEWS file.
* Version 3.0.4 (released 2012-06-05)
NEWS file, release scripting, drop libusb dependency.
** NEWS file, release scripting, drop libusb dependency.
* Version 3.0.3 (released 2012-06-04)
Fixes to build system to allow building without bundled dependencies on
linux.
** Fixes to build system to allow building without bundled dependencies on
** linux.
......@@ -54,6 +54,20 @@ appears to not be needed for command-line builds.)
Dependencies
============
When building on Windows you will need binary releases of libykpers
and libyubikey, these can be downloaded from
http://code.google.com/p/yubikey-personalization/, the dlls
libykpers-1-1.dll and libyubikey-0.dll should then be placed in
libs/win32 and libs/win64 respectively.
When building on MAC or Linux you will need sourcecode from yubico-c
and yubikey-personalization. This can be downloaded from
http://code.google.com/p/yubikey-personalization/ and
http://code.google.com/p/yubico-c/ and should be placed unpacked in
deps/libyubikey and deps/libykpers. You also need libusb.h
from http://sourceforge.net/projects/libusb/files/libusb-1.0/
placed in deps/libusb-1.0.
You will need QT Creator and libusb-1.0 development files.
sudo apt-get install libusb-1.0-0-dev qtcreator
......
This diff is collapsed.
Makefile.in
configure
build-aux
m4
autom4te.cache
aclocal.m4
INSTALL
*~
.*~
\#*
ChangeLog
[submodule "doc"]
path = doc
url = git://github.com/Yubico/yubikey-personalization.wiki.git
Main files
----------
Richard Levitte <richard@levitte.org>
Simon Josefsson <simon@yubico.com>
Common files (the common subdirectory)
--------------------------------------
Jakob Ehrensvärd <jakob@yubico.com>
Patches
-------
Lester Hightower, 10East" <lester.hightower@gmail.com>
Added ykp_AES_key_from_hex and ykpersonalize -a parameter.
Christer Kaivo-oja <christer.kaivooja@gmail.com>
Mac OS X port.
Tollef Fog Heen <tfheen@err.no>
Support for libusb-1.0 backend.
Copyright (c) 2008, Yubico AB
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Written by Richard Levitte <richard@levitte.org>.
# Copyright (c) 2008, 2009, 2010, 2011 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Subdirectories
SUBDIRS= ykcore . tests
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I$(srcdir)/ykcore -I$(srcdir)/rfc4634
# The library.
ykpers_includedir=$(includedir)/ykpers-1
ykpers_include_HEADERS = ykpers.h ykcore/ykstatus.h ykcore/ykcore.h ykcore/ykdef.h
lib_LTLIBRARIES = libykpers-1.la
libykpers_1_la_SOURCES = ykpers.c ykpbkdf2.h ykpbkdf2.c
libykpers_1_la_SOURCES += rfc4634/hmac.c rfc4634/usha.c rfc4634/sha.h \
rfc4634/sha1.c rfc4634/sha224-256.c rfc4634/sha384-512.c \
rfc4634/sha-private.h
libykpers_1_la_SOURCES += ykpers-1.pc.in libykpers-1.map
libykpers_1_la_LIBADD = $(LTLIBYUBIKEY) ./ykcore/libykcore.la
libykpers_1_la_LDFLAGS = -no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libykpers_1_la_DEPENDENCIES = libykpers-1.map
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ykpers-1.pc
if HAVE_LD_VERSION_SCRIPT
libykpers_1_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libykpers-1.map
else
libykpers_1_la_LDFLAGS += -export-symbols-regex '^(ykp|yk|ykds)_.*|_yk.*_errno_location'
endif
# The command line tools.
bin_PROGRAMS = ykpersonalize ykchalresp
ykpersonalize_SOURCES = ykpersonalize.c
ykpersonalize_LDADD = ./libykpers-1.la ./ykcore/libykcore.la
ykchalresp_SOURCES = ykchalresp.c
ykchalresp_LDADD = ./libykpers-1.la ./ykcore/libykcore.la
dist_man1_MANS = ykpersonalize.1 ykchalresp.1
# Dist docs from wiki.
EXTRA_DIST = doc/Compatibility.asciidoc doc/Make-Release.asciidoc doc/Read-Me.asciidoc doc/USB-Hid-Issue.asciidoc doc/Windows-Build.asciidoc
# Dist contrib stuff.
EXTRA_DIST += contrib/README contrib/programming.sh
# Release
PROJECT = yubikey-personalization
ChangeLog:
cd $(srcdir) && git2cl > ChangeLog
check-doc-dist:
perl -pe "s,^EXTRA_DIST = .*,EXTRA_DIST = `cd $(srcdir) && ls doc/*.asciidoc | grep -v Todo.ascii | xargs echo`," \
< $(srcdir)/Makefile.am > check-doc-dist.tmp
diff -ur $(srcdir)/Makefile.am check-doc-dist.tmp || \
(rm -f check-doc-dist.tmp; echo 'error: please update $(srcdir)/Makefile.am to include all docs'; exit 1)
rm -f check-doc-dist.tmp
release:
@if test -z "$(USER)" || test -z "$(KEYID)"; then \
echo "Try this instead:"; \
echo " make release USER=[GOOGLEUSERNAME] KEYID=[PGPKEYID]"; \
echo "For example:"; \
echo " make release USER=simon@yubico.com KEYID=B9156397"; \
exit 1; \
fi
@head -3 $(srcdir)/NEWS | grep -q "Version $(VERSION) .released `date -I`" || \
(echo 'error: You need to update date/version in $(srcdir)/NEWS, see doc/MakeRelease.wiki.'; exit 1)
rm -f $(srcdir)/ChangeLog
make check-doc-dist ChangeLog distcheck
gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tar.gz
gpg --verify $(PACKAGE)-$(VERSION).tar.gz.sig
cd $(srcdir) && git push
cd $(srcdir) && git tag -u $(KEYID)! -m $(VERSION) v$(VERSION)
cd $(srcdir) && git push --tags
mkdir -p ../releases/$(PACKAGE)/ && \
cp -v $(PACKAGE)-$(VERSION).tar.gz* ../releases/$(PACKAGE)/
googlecode_upload.py -s "OpenPGP signature for $(PACKAGE) $(VERSION)." \
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz.sig
googlecode_upload.py -s "$(PACKAGE) $(VERSION)" \
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz
upload-ykpers4win:
gpg --detach-sign --default-key $(KEYID) \
$(PACKAGE)-$(VERSION)-win$(BITS).zip
gpg --verify $(PACKAGE)-$(VERSION)-win$(BITS).zip.sig
googlecode_upload.py \
-s "OpenPGP signature for $(PACKAGE)-$(VERSION)-win$(BITS).zip." \
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION)-win$(BITS).zip.sig
googlecode_upload.py \
-s "Windows $(BITS)-bit binaries of $(PACKAGE) $(VERSION)" \
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION)-win$(BITS).zip
upload-ykpers4win32:
make upload-ykpers4win BITS=32
upload-ykpers4win64:
make upload-ykpers4win BITS=64
Yubikey-personalize NEWS -- History of user-visible changes. -*- outline -*-
* Version 1.5.0 (released 2011-03-09)
** An additional binary (ykchalresp) to perform challenge-response was added.
** When generating keys from passphrase, generate 160 bit keys for modes
that support it (OATH-HOTP and HMAC challenge response).
** OATH-HOTP usability improvements.
** Serial number of YubiKey (2.2+) is shown with `ykpersonalize -v'.
** Make `configure' detect FreeBSD 8 libusb implementation.
* Version 1.4.1 (released 2011-01-19)
** Restore OATH-HOTP symbols for LIBYKPERS_1.0.
Accidentally moved to LIBYKPERS_1.4 in 1.4.0.
* Version 1.4.0 (released 2011-01-17)
** Add support for new features in YubiKey 2.2.
Most notably challenge-response, but also serial number retrieval.
** Stricter argument parsing, to help user avoid configuration surprises.
** Bugfixes :
*** Ask kernel to detach USB HID driver with libusb 0.1 too.
*** Properly reject keys (-a) with upper case hex, instead of just ignoring
those bits.
*** Really check Yubikey compatibility when setting options.
*** Pretty-printer did not handle bit overloaded cfgflags.
It is better now, but not perfect.
* Version 1.3.5 (released 2010-11-25)
** Fixes to make it work under Windows.
Only tested with libusb-1.0 from trunk. See doc/WindowsBuild.wiki.
* Version 1.3.4 (released 2010-09-10)
** Fix crash on Mac OS X.
Reported by rosmiitto in Issue #6:
<http://code.google.com/p/yubikey-personalization/issues/detail?id=6>.
** Fix bug that prevented salting during AES key generation
** from passwords from working. Reported by Ben.
** Add contrib/ sub-directory and contrib/programming.sh from David Dindorp.
See contrib/README for more information.
* Version 1.3.3 (released 2010-05-20)
** Don't warn about upcoming YubiKey firmware 2.2.x, it is compatible.
* Version 1.3.2 (released 2010-03-12)
** Don't warn on YubiKey with firmware 0.9.9, they work fine.
** Fix old firmware error message, it was missing a newline.
* Version 1.3.1 (released 2010-01-30)
** Fix build failure in some cases
* Version 1.3 (released 2010-01-30)
** libykpers-1: Give warning on unknown firmwares, but don't stop
** OATH-HOTP support
ykpersonalize now supports the OATH-HOTP flags.
** Updated documentation
The documentation has been updated to explain the flags a bit better
and OATH-HOTP documentation has been added.
* Version 1.2 (released 2010-01-22)
** libykpers-1: Whitelist firmware version 2.1 too.
* Version 1.1 (released 2009-10-03)
** hex and modhex bugfixes
Check of hex and modhex strings perfected.
** Segfaults and improper error codes when asking for help
Contributed by Tollef Fog Heen.
* Version 1.0 (released 2009-09-18)
** Stable release!
* Version 0.999 (released 2009-09-17)
** Fix build warnings.
May fix decoding issues on some platforms (depending on whether
returning a 'void' value is treated as true or false).
* Version 0.99 (released 2009-09-12)
** libykpers: Fix build error related to _ykp_errno_location on non-Linux.
Reported by Patrick Neave <p.neave@gmail.com>.
* Version 0.98 (released 2009-09-08)
** ykpersonalize: Exit with non-0 return code when yubikey is not present.
Reported by Greg Woods <woods@ucar.edu>.
** ykpersonalize.1: Keep in sync with tool.
By Tollef Fog Heen <tfheen@err.no>.
* Version 0.97 (released 2009-09-03)
** libykpers-1: Add linker version script.
If linker scripts are not supported, fall back on Libtool
-export-symbols-regex. Suggested by Tollef Fog Heen <tfheen@err.no>.
** ykpersonalize: Make -h work even if there is no yubikey present.
Suggested by Peter Hultqvist <peter.h@nsf.scout.se>.
** ykpersonalize.1: Link to reference manual for explanation of options.
Suggested by Peter Hultqvist <peter.h@nsf.scout.se>.
** Now requires libyubikey v1.5 or later.
* Version 0.96 (released 2009-08-27)
** Make all input numbers hex by default.
It's still possible to give modhex numbers by preceding them with
`m:'.
** Make it possible to program the second configuration.
Added the two flags -1 and -2 to ykpersonalize. This is to support
the YubiKey II.
** Have ykpersonalize show the new configuration and prompt.
This makes it possible for the user to prevent incorrect configurations.
** Rename installed library to "libykpers-1" and place
** installed header files in sub-directory ykpers-1/.
From now on we promise to retain API and ABI under this name forever.
The shared library will be installed as /usr/lib/libykpers-1.so and
the header files into /usr/include/ykpers-1/. If there is ever an
incompatible API or ABI change in the future, it will be released as a
a new library libykpers-2 with header files in ykpers-2/.
** Add pkg-config script "ykpers-1".
To learn which flags to build the applications that uses the library,
use "pkg-config --cflags --libs ykpers-1".
* Version 0.95 (released 2009-08-17)
** Enable handling of programming access code.
Includes modification of help (-h) text and manual.
* Version 0.94 (released 2009-08-10)
** Improve error handling for libusb-1.0 backend.
Thanks to Tollef Fog Heen.
** Added man page for ykpersonalize.
Thanks to Tollef Fog Heen.
* Version 0.93 (released 2009-08-07)
** Support for libusb-1.0 through --with-backend=libusb-1.0.
Thanks to Tollef Fog Heen.
** Clarify -a parameter.
Thanks to Alphonse R.M. Hoge.
* Version 0.92 (released 2009-05-25)
** Mac OS X build fixes.
* Version 0.91 (released 2009-05-07)
** Added Mac OS X backend.
Contributed by Christer Kaivo-oja <christer.kaivooja@gmail.com>.
** Added --with-backend parameter to chose backend.
* Version 0.9 (released 2009-05-05)
** Initial release candidate.
Documentation is in doc/ and in particular the doc/ReadMe.asciidoc file.
If you've checked out the source tree and the doc/ dir is empty, do
$ git submodule init
$ git submodule update
The documentation is also available online at
http://github.com/Yubico/yubikey-personalization/wiki
# Written by Richard Levitte <richard@levitte.org>.
# Copyright (c) 2008, 2009, 2010, 2011, Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (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.0],
[yubico-devel@googlegroups.com], [ykpers],
[http://code.google.com/p/yubikey-personalization/])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
# Library code modified: REVISION++
# Interfaces changed/added/removed: CURRENT++ REVISION=0
# Interfaces added: AGE++
# Interfaces removed: AGE=0
AC_SUBST(LT_CURRENT, 5)
AC_SUBST(LT_REVISION, 0)
AC_SUBST(LT_AGE, 4)
AM_INIT_AUTOMAKE([-Wall -Werror])
AC_PROG_CC
ACX_PTHREAD
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
AC_CANONICAL_HOST
PKG_PROG_PKG_CONFIG
AC_LIB_HAVE_LINKFLAGS(yubikey,,
[#include <yubikey.h>],
[yubikey_modhex_p("foo")])
if test "$ac_cv_libyubikey" != yes; then
AC_MSG_ERROR([libyubikey v1.5+ not found, see http://code.google.com/p/yubico-c/])
fi
AC_ARG_WITH([backend],
[AS_HELP_STRING([--with-backend=ARG],
[use specific backend; 'libusb-1.0', 'libusb', 'osx' or 'windows'])],
[],
[with_backend=check])
if test "x$with_backend" = xcheck; then
with_backend_orig=check
AC_MSG_CHECKING([for backend])
case "$host" in
*-darwin*) with_backend=osx ;;
*-mingw*) with_backend=windows ;;
*) PKG_CHECK_EXISTS([libusb-1.0],
[with_backend=libusb-1.0],
[with_backend=libusb])
esac
AC_MSG_RESULT([$with_backend])
fi
if test "x$with_backend" = "xlibusb-1.0"; then
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0])
fi
if test x$with_backend = xlibusb; then
freebsd_libusb_found=no
AC_CHECK_LIB(usb, libusb_init, [freebsd_libusb_found=yes])
if test "$freebsd_libusb_found" = yes; then
# FreeBSD 8 has an implementation of the libusb-1.0 API in -lusb,
# interestingly enough together with most of libusb-0 API, so this
# check has to be before the generic libusb-0 check
AC_LIB_HAVE_LINKFLAGS(usb,, [#include <libusb.h>], [libusb_init(NULL)])
with_backend=libusb-1.0
fi
if test "$ac_cv_libusb" != yes; then
AC_LIB_HAVE_LINKFLAGS(usb,, [#include <usb.h>], [usb_init()])
fi
if test "$ac_cv_libusb" != yes; then
if test "$with_backend_orig" = "check"; then
AC_MSG_ERROR([libusb-1.0 or libusb not found, please install one of them])
else
AC_MSG_ERROR([libusb not found, please install usb.h and libusb.so])
fi
fi
fi
if test x$with_backend = xosx; then
LDFLAGS="$LDFLAGS -framework IOKit -framework CoreFoundation"
fi
if test x$with_backend = xwindows; then
LDFLAGS="$LDFLAGS -luuid -lsetupapi -lhid"
fi
AM_CONDITIONAL([BACKEND_LIBUSB], test x$with_backend = xlibusb)
AM_CONDITIONAL([BACKEND_LIBUSB_1_0], test x$with_backend = xlibusb-1.0)
AM_CONDITIONAL([BACKEND_OSX], test x$with_backend = xosx)
AM_CONDITIONAL([BACKEND_WINDOWS], test x$with_backend = xwindows)
gl_LD_VERSION_SCRIPT