Commit Graph

34 Commits

Author SHA1 Message Date
frankmorgner
171bfe8a1a - enable extended length apdu for all cards that have an ef.cardaccess
- set the bit for esign by default (for testing only)


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@337 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-21 12:45:13 +00:00
frankmorgner
aca3559290 added argument checking
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@317 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 12:02:25 +00:00
frankmorgner
a552631872 reviewed files with flawfinder
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@316 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-10-11 11:56:18 +00:00
frankmorgner
5437b3d61a added documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@288 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-29 21:01:24 +00:00
frankmorgner
972575f84a adapted to the latest changes of OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@287 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-29 12:57:16 +00:00
frankmorgner
6f46d10136 corrected indent and title of CHAT and certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@283 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 10:58:33 +00:00
frankmorgner
3d5e8af4f3 added support for printing and transmitting chat
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@282 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 09:04:09 +00:00
frankmorgner
37c27c4afe print certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@281 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 08:35:19 +00:00
frankmorgner
e2f07e6a33 working on support for certificate description
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@280 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-27 05:18:32 +00:00
frankmorgner
f6d92dfece - fixed compiling errors
- adjusted secure messaging to support extended length apdus
- card has to support extended length, this is hardcoded at the moment, but should better be done in the appropriate card driver


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@274 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-23 12:56:34 +00:00
frankmorgner
efd0ad70af adatpted to the latest changes of OpenPACE. EstablishPACEChannel now fully functional
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@272 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-23 09:03:58 +00:00
frankmorgner
8623c7fe6e - some unneded functions are no longer available in header files
- cleaned memory leaks in pace-tool and ccid-emulator


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@264 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-14 20:37:43 +00:00
frankmorgner
ed358e839b added support for unambiguous PACE-channel selection (ID.icc and ID.pcd)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@262 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-09-13 14:11:30 +00:00
frankmorgner
3227331f91 added workaround for current buergerclient to read efcardaccess
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@251 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-08-24 08:31:41 +00:00
frankmorgner
5c70cd3163 - made establishpacechannel output independant from any byte order conversion.
little endian handling is done by the ccid-part.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@215 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 21:27:35 +00:00
frankmorgner
98269eca38 - pace debug output of libccid is shown by default in pcscd's log
- made establishpacechannel input independant from any byte order conversion.
  little endian handling is done by the ccid-part.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@209 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-12 09:58:35 +00:00
frankmorgner
bb1f1d91e6 - added support for IDicc
- fixed parse error of pace output buffer


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@202 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-07 16:38:34 +00:00
frankmorgner
b84e3fbdba - added information how many bytes were actually transmitted via usb
- split general authenticate into multiple functions, one for every step of
  PACE.
- including recent and previous car in output buffer of EstablishPACEChannel
- ccid-emulator initiates EstablishPACEChannel always with a new sm_ctx


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@192 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-04 11:35:17 +00:00
frankmorgner
997fb84d9e added ef.cardaccess and statusbytes to response of establishpacechannel
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@191 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-02 21:03:34 +00:00
frankmorgner
c97f80c8e4 fixed wrong text of prompt for secret
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@190 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-07-02 20:26:29 +00:00
frankmorgner
a2012126cd - Replaced references to sc_get_pin* with its OpenSSL counter parts (untested)
- UI functionality and maybe more is no longer shipped in opensc>=0.12. This
  and the fact that linking against libopensc in general is discouraged might
be a reason to abandon opensc in future releases.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@170 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-25 21:31:36 +00:00
frankmorgner
6921cae6d9 - made debugging of openssl errors human readable
- removed debugging of return values, added human readable messages instead


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@161 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-21 16:17:13 +00:00
frankmorgner
2b8b14f994 - pace-tool: fixed length of input buffer for EstablishPACEChannel
- added debug messages to pace.c


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@157 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-19 18:27:27 +00:00
frankmorgner
97e9cc2091 - added patch to distribution package
- changed debug_sc_result to be a define. this now gets the line of code correct
- added checking for input length to functions that parse the bulkin buffer
- fixed segfault for GetReadersPACECapabilities when no card is inserted
- added length checking of input for EstablishPACEChannel
- ccid-test: fixed pbSendBufferEstablish
- pcsclite_trunk.patch:
  - fixed parsing of lengthCertificateDescription
  - fixed wrong bPINOperation for pace capabilities and execute pace


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@156 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-19 16:19:51 +00:00
frankmorgner
d40f91b505 added PACE features to ccid-emulator (untested)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@152 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-16 21:06:30 +00:00
frankmorgner
c64e9ac527 - implemented passing a CHAT to the card.
- note that the type PACE_CHAT should be integrated into OpenPACE
- added parameters for passing CHAT and certificate description to pace-tool


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@146 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-10 11:14:39 +00:00
frankmorgner
e02e2abdfb - dropped pace_transmit_apdu in favour of a solution with sm_transmit_apdu.
post_transmit and pre_transmit can be used to perform actions before
  encrypting/decrypting a sm apdu (such as incrementing the ssc for pace).
- fixed ssc problems. encrypted communication with more than one apdu (e.g.
  resuming the pin) is now working.
- fixed uninitialized pointer in sm_decrypt


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@131 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-05 14:34:50 +00:00
frankmorgner
ee1a009585 fixed segfault if ef.cardaccess is not readable
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@129 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-06-04 19:05:09 +00:00
frankmorgner
7fd92afc4f removed some messages, when less verbose. fixed little endian problem when parsing input buffer of EstablishPACEChannel.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@111 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-05-26 20:32:29 +00:00
frankmorgner
72e4434fb4 - sm_transmit_apdu doesn't check SWs anymore
- not throwing error for sw=63XX in mse:set at


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@109 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-05-20 18:26:56 +00:00
frankmorgner
894d5be379 - using short apdus for mse:set at and generic authenticate. to make it work with the sm implementation
- added parameter oldpacectx to EstablishPACEChannel to allow a a new PACE connection inside an exitsting PACE connection (the output buffer of the latter connection must be provided since it stores the ef.cardaccess)
- added functionality to ask for the secret in pace_reset_retry_counter
- added macro pace_change_pin
- SWs were stored at the wrong place of the output buffer from EstablishPACEChannel, fixed.
- split up functionality of pace_test into multiple functions
- added new command line option to pace-tool to resume the pin. resuming the pin is not working, yet.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@108 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-05-20 08:17:38 +00:00
oepen
d0a6668f58 Changed EXPLICIT tagging of CHAT and auxiliary authenticated data to IMPLICIT tagging
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@107 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-05-18 11:39:25 +00:00
frankmorgner
c26c4273a9 - Added handling for output buffer of EstablishPACEChannel, but CARs are still missing
- Handed over code for handling of IV and SSC for PACE to OpenPACE


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@106 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-05-16 18:53:05 +00:00
frankmorgner
75b4bda661 added _essential_ missing file
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@95 96b47cad-a561-4643-ad3b-153ac7d7599c
2010-05-07 18:02:25 +00:00