Reset return code to success if pubkey read from cert.
removed unused reference to sm_iasecc_rsa_generate
don't expect the card to specify the file length in generic tools

if sc_file_t.size == 0 we try to read 1024 bytes by default.
verifying the pin is a valid action
Use reader pin pad if available and allowed
Set output buffer len variable if padding removed.
added getpass implementation for non windows

modifies terminal attributes to emulate _getch
don't require ushort to be present
fixed initialization of structure
Extract public key from cert if no object on card
fixed errors reported by cppcheck: part 1

partially applied the pull request #182 from Frank Morgner -- updated the common frameworks source files
fix LGPL version

https://github.com/OpenSC/OpenSC/commit/f5814595dbd6071f39c7fe099e62c0e7bfd8f510#commitcomment-3971686