pkcs15-tool: initialize 'opt_auth_id' consistently.

All the other option values are initialized to NULL, so do the same to
opt_auth_id.

(Although, as they're all static globals, they should be set to 0 at
runtime anyway, I think...)

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
pkcs15-gemsafeV1.c: Multiple key containers and ATR-specific PIN policies

pkcs15-gemsafeV1.c: Change PIN data structure to make MSVC compiler happy
pkcs15-gemsafeV1.c: Turn constants into macros to make MSVC compiler happy
cardOS: Use information from AlgorithmInfo

In set_security_env, the algorithmInfo structure (from the TokenInfo file of
PKCS#15) is parsed to see, what algorithm IDs are supported for signature
operations.

Using the information from AlgorithmInfo set in set_security_env when
computing signatures.

Fixed incorrect order of code blocks. If neither a reference to rsa_sig nor to
rsa_pure_sig is found in AlogirthmInfo, boths methods are enabled before (and
not after) trying pure_sig
cardOS: compile on Windows

few coding style remarks
pkcs15: regression in e35febe: compute cert length

parse_x509_cert() reviewed.
Now certificate's DER data are allocated and the DER data length is determined in one place.

https://github.com/OpenSC/OpenSC/pull/114
https://github.com/OpenSC/OpenSC/commit/e35febe
pkcs15init: fix spurious gcc overflow warning,

thanks to Milan Broz (mbroz@redhat.com)
As discussed in pull request #115 (https://github.com/OpenSC/OpenSC/pull/115),
'if' test of impossible condition is removed in 'cardos' and 'incypto34' card drivers.
sm: move SM common crypto procedures to the dedicated library

rename 'sm' source directory
opensc-tool: add 'call-SM-handler' command

'open' and 'close' handlers of the card's SM driver can be called
SM: move SM APDU procedures to dedicated source file

new SM errors: 'session-already-opened' and 'invalid-checksum'
declare typed data for DH SM session
libopensc: APDU 'allocate & copy'and 'free' procedures
SM: common SM 'increase-sequence-counter' procedure
Update wiki URL

The wiki migrated from opensc-project.org to github.com
Fixed file-id in myeid.profile
Update src/tools/pkcs11-tool.c

fixed filling key type attr on writing object

pointer refers to local variable from destroyed stack frame
sc-hsm-tool: Added better error handling for non-SmartCard-HSM cards
sc-hsm: Fixed a bug that prevents a newly generated 2048 key to show up at the PKCS#11 interface
sc-hsm-tool: Added support for DKEK password sharing scheme
sc-hsm-tool: Added threshold scheme parameters to manpage
sc-hsm: Fixed problem deleting CA certificates
sc-hsm: Fixed public key format returned when generating ECC keys
Fix to allow exponents other than 65537 for Feitian ePass 2003