Bump version to 0.8

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
java: Relicense the JNI wrapper under BSD-3-clause

In some circumstances, such as an Android app, it is difficult to provide
discrete .class files that comply with section 6(a) of the LGPL, and
dynamic linking under section 6(b) is not feasible.  So we'll keep the
main library (C code) under LGPLv2.1 to ensure that end users can still
replace our .so file with a modified version, but license the Java wrapper
file more permissively.

Fixes #5

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
debian/copyright: Update license for java/*

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
library: Add version check macro

I really should have noticed this in libopenconnect and done the same
in libstoken from the beginning, but alas...

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
library: Add token_version and uses_pin to struct token_info

uses_pin may be needed by some callers to figure out whether to
concatenate a PIN.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Change securid_encode_token() to take a version argument

To prevent surprises, the output token version should be passed in
explicitly, not inferred from the original format.  As a side effect
this prevents clobbering ctx->t->version, which is now reported via
stoken_get_info().

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
library: Add stoken_get_guid_list()

Let library callers retrieve the list of known class GUIDs, i.e. strings
used to bind a seed file to a specific type of device.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
cli: Try to guess the bound device ID from the class GUID list

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
man: Document the --devid option

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>