debian: Update libstoken1.symbols with new internal symbol

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
securid: v3: Clean up BASE64_* constants

Use different constants for allocated string size versus minimum strlen()
size.  Add "URL" to the constant defining the size of the urlencoded
string.  Prefix all v3-related strings with "V3_".

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
library: Fix NULL pointer dereference

This may be seen when calling stoken_import_rcfile() through the library
interface.  It was introduced with the new v3 token support code.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
common: Update copyright year in "stoken --version"

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
securid: v3: Disable has_enc_seed

v3 tokens do have an encrypted seed, but it is part of a larger encrypted
blob so it doesn't fit neatly into the enc_seed[] field.  Since this
flag is only checked by securid_token_info(), we'll disable it for now
so that "stoken show --seed" doesn't show all zeroes for the encrypted
seed.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
cli: Make "stoken issue" work correctly if ~/.stokenrc is absent

It should not be necessary to import a token prior to running
"stoken issue".

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
sdtid: Update documentation on "stoken issue"

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Update help text with "--v3"

I hate to encourage people to use this format, but it isn't cool for
the help text to be out of sync with the man page.

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

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
cli: import: Always write v2 tokens to stokenrc file

We always re-encode the token prior to storing in stokenrc, but if
t->version was 3, the token would be stored in v3 format.  Fix this.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
cli: Don't warn about missing rcfile in "stoken import --rcfile <file>"

In all probability this file doesn't already exist, so we should not
print a warning message.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Import new build-debian.sh from ocproxy

This uses a long date code (YYMMDDHHMMSS) to prevent *orig.tar.gz name
collisions.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
man: Add qrencode example

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
README: Document libxml2 dependency

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
build-debian: Add "-r" option for releases; fix changelog logic

"-r" will build a PPA release ("stoken-0.6-1ppa1") instead of a snapshot
like "stoken-0.6~20140621093411-1ubuntu1".

Also, we will just autogenerate a new changelog instead of pretending
that the existing debian/changelog is up to date.  The real Debian
changelog will live in collab-maint.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
examples: Add new qr-encode.sh script

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

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
release.sh: Work around autotools search path wackiness

When we test our release candidate tarball, we do not want autotools to
pick up any files from the git repo.  So "bury" the build directory a few
levels deeper under tmp.build/.

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