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
Merge branch 'master' of github.com:OpenSC/OpenSC
pkcs15-dnie: fix compilation when OpenSSL is not used

If OpenSSL is not used then the functions from card-dnie.c are not
defined and in particular dnie_match_card() is not defined.
In that case we use a fake dnie_match_card() that just returns false.
build: disable Secure Messaging if OpenSSL is not used

If OpenSSL is not present or --disable-openssl then Secure Messaging is
disabled.

The problem was that some Secure Messaging code is missing if OpenSSL is
absent. The build/link failed with some missing symbols.

Fix issue #293
Fix compiler warning

pkcs15-dnie.c:242:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 const char *sc_driver_version()
             ^
Fix compiler warning

p15card-helper.c:23:5: warning: 'ENABLE_OPENSSL' is not defined, evaluates to 0
      [-Wundef]
    ^
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
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
Merge pull request #315 from dengert/privateObjects

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