Add AzeDIT 3.5 card support

AzeDIT cards are similar to EstEID 3.5 cards but have their own
cold ATR and AID
iso7816: allow extended length APDUs
openpgp-tool: Return EXIT_SUCCESS if no error occurs

exit_status is either set directly or a function return is ORed with it,
in which case EXIT_SUCCESS can never be returned if the initial value is !=
0;
pkcs11-tool sets CKA_DECRYPT=true rather then CKA_DERIVE=true when generating EC keys (#277)

RSA and EC keys have different usage attributes. Appropriate attributes are set
When using --keypairgen the user can use the --usage-sign, --usage-decrypt,
and --usage-derive. to get finer control.

 Changes to be committed:
	modified:   tools/pkcs11-tool.c
iso7816: propagate the length of the computed signature
Merge branch 'master' of github.com:OpenSC/OpenSC
generate bash completion scripts from XML doc files

This generates the scripts that lets bash do completion per specific tool.
It gets the options from the documentation XML files that are also the
source for the man pages and HTML.
Merge branch 'master' of github.com:OpenSC/OpenSC
PKCS#11 hashes for cards without RAW (see #241)

    The framework-pkcs15.c did not add hashes correctly if the card did not support RSA RAW.
    This change fixes that and only adds hashes if the card did not specify a list of hashes.
    It also will not add hashes done in software if ENABLE_OPENSSL is not specified.
    Some error conditions are also tested for EC mechanisms.

    See bug report #241 for more information.
Merge pull request #279 from dengert/master

pkcs11-tool sets CKA_DECRYPT=true rather then CKA_DERIVE=true when gener...
Merge pull request #298 from dengert/pkcs11Hashes

PKCS#11 hashes for cards without RAW (see #241)
Merge pull request #238 from eighthave/master

generate bash completion scripts from XML doc files
macosx: locate the best newest SDK present on the computer.

With recent versions of XCode, PC/SC headers are hidden inside
the SDK folder inside XCode app, and the global path is not
guaranteed to be present. This allows to build easily from source
without depending on a specific XCode/OSX version.
macosx: locate and target the latest SDK to build against.
macosx: update the minimal building instructions.
changed sc_apdu_t.data back to const unsigned char *
fixed type of pkcs15init_initialize

regression from 95b6b4cc
Public certs and pubkeys with an auth_id are treated as private (See #291)

Code to test for an auth_id for certs and pubkeys was removed.
See: PKCS#15 section 4.1.3 Access methods

This is conseritive change and all objects could be treaded the same.
Fix Lc byte in VERIFY PIN block for PC/SC PIN PAD reader
Merge pull request #317 from CardContact/fix-Lc-in-PINblock

sc-hsm: Fix Lc byte in VERIFY PIN block for PC/SC PIN PAD reader