martin
6041595895
* Correctly set offsets for PINs for PIN modification operations with pinpads. Thanks to Robert Konklewski.
...
* Only set messages if the reader has display capabilities.
* Detect rejected pinpad commands
* Whitespace fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3679 c6295689-39f2-0310-b995-f0e70906c6a9
2009-04-08 10:31:18 +00:00
martin
16baddcc74
Engine API is not used.
...
Thanks to Robert Konklewski for noticing this.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3678 c6295689-39f2-0310-b995-f0e70906c6a9
2009-04-08 09:40:21 +00:00
alonbl
bfc69348f7
Actually print SCardControl result, thanks to martin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3677 c6295689-39f2-0310-b995-f0e70906c6a9
2009-04-03 19:54:42 +00:00
alonbl
ef4b1e1410
reader-pcsc - minor cleanups in reader features
...
1. Indent fix.
2. Reorder conditions.
3. Do not print error if SCardControl fails.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3676 c6295689-39f2-0310-b995-f0e70906c6a9
2009-04-03 19:17:15 +00:00
aj
0f050d9cec
Document latest change.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3675 c6295689-39f2-0310-b995-f0e70906c6a9
2009-04-02 10:33:16 +00:00
aj
4670238556
Entersafe changes by Weitao Sun:
...
1.Card type FTCOS/PK-01C added. (new)
2.Limit pin length in range [4,16). (bug fix)
3.Can not unblock PIN. (bug fix)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3674 c6295689-39f2-0310-b995-f0e70906c6a9
2009-04-02 10:32:02 +00:00
ludovic.rousseau
117d790aea
Do not use msc_crypt_process (OP_PROCESS). This operation is used to do
...
multipart encryption when, for example, the data is too big to fit in
one APDU. It basically calls the Cipher.update() method until all data
has been processed. However, the Java Card API documentation advises
against using update():
"This method requires temporary storage of intermediate results. In
addition, if the input data length is not block aligned (multiple of
block size) then additional internal storage may be allocated at this
time to store a partial input data block. This may result in additional
resource consumption and/or slow performance. This method should only
be used if all the input data required for the cipher is not available
in one byte array. If all the input data required for the cipher is
located in a single byte array, use of the doFinal() method to process
all of the input data is recommended."
As the card's JVM was returning an internal exception when using
OP_PROCESS, it was decided to implement an msc_crypt_final_object()
function in OpenSC that uses the msc_object_*() functions to read/write
all the data from the card. This way, it is possible to transmit/receive
"arbitrarily" large data chunks to/from the card and use doFinal(). This
is the fallback method when, for example, using 2048 bit keys and the
card doesn't support extended APDUs.
Thanks to Joao Poupino for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011978.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3673 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-25 14:31:21 +00:00
ludovic.rousseau
7f0476ab2a
pcsc_internal_transmit(): do not limit the size of the reception buffer
...
to 258. This check is no more needed now that pcsc-lite can handle
extended APDU.
Thanks to Joao Poupino for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011978.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3672 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-25 14:22:34 +00:00
ludovic.rousseau
04a5c99f77
Detect the eToken 72K and activate RSA 2048 and extended APDU for it.
...
Thanks to Joao Poupino for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011978.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3671 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-25 13:55:25 +00:00
ludovic.rousseau
e0f3545157
Change MSC_MAX_APDU to make some buffers larger to support extended
...
APDUs. The change was only from 256 to 512 bytes since it is more than
enough for 2048 bit keys;
Thanks to Joao Poupino for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011978.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3670 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-25 13:50:41 +00:00
ludovic.rousseau
7b07db6b59
msc_get_challenge(): return SC_SUCCESS instead of dataLength in case of
...
success
Thanks to Joao Poupino for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011978.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3669 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-25 13:47:46 +00:00
ludovic.rousseau
89b2ac778f
msc_get_challenge(): use 0x62 instead of 0x72 for GET CHALLENGE as it is
...
the value used by the Muscle applet (INS_GET_CHALLENGE)
Thanks to João Poupino for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011978.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3668 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-25 13:42:13 +00:00
martin
9862d431e8
Fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3667 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-21 11:17:14 +00:00
martin
9668f0aa33
Add support for LCD detection on pinpad devices.
...
* Update IOCTL definitions to PC/SC part 10 v2.02.05
* Return SC_SUCCESS instead of 0 if returning SC_ codes.
* Detect the presence of a display with FEATURE_IFD_PIN_PROPERTIES
Tested with patched CCID driver on OS X, with SPR532 (no display) and OK3821 (with display)
Known CCID reader with a display:
ATMEL_AT91SO.txt: wLcdLayout: 0x0210
CardMan3821.txt: wLcdLayout: 0x0210
Kobil_EMV_CAP.txt: wLcdLayout: 0x0210
Xiring_XI-SIGN.txt: wLcdLayout: 0x020C
Xiring_XI-SIGN_6000.txt: wLcdLayout: 0x020C
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3666 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-21 11:09:12 +00:00
martin
3b0faecbb1
* Display the default CCID message for PIN verification if the reader has a display
...
* Part 10 -> PC/SC v2
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3665 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-19 17:54:45 +00:00
martin
464a4f6d74
Fix Global Platform PINs with CCID pinpads.
...
Thanks to François Leblanc for the report:
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011947.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3664 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-18 10:18:18 +00:00
ludovic.rousseau
9ef196c2cd
store the generated public key on the token.
...
Thanks to Rickard Bondesson for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-February/011884.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3663 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-12 08:33:37 +00:00
alonbl
cd6adb4e26
Fix Windows PINPAD mingw issue
...
Thanks to François Leblanc
http://www.opensc-project.org/pipermail/opensc-devel/2009-March/011932.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3662 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-07 21:55:40 +00:00
aj
50f9ef865b
check if len or p is 0/NULL and return.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3661 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-06 09:30:54 +00:00
aj
54a35a2f4f
fix typo.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3660 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-06 09:26:41 +00:00
aj
3347ededf6
Improve this function even more.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3659 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-05 18:37:55 +00:00
aj
aadf09d1de
resolve an "undefined code" situation.
...
the old code was undefined, but ok (variables where never used
again in the "goto error" case). but the new code should
be clearer on this.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3658 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-05 15:28:17 +00:00
aj
9dd1407703
change base id so it does not overlap with the next one.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3657 c6295689-39f2-0310-b995-f0e70906c6a9
2009-03-05 15:15:24 +00:00
aj
33d5e392ee
created final release.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3656 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-26 08:58:06 +00:00
ludovic.rousseau
2752c33108
removed unused variable
...
misc.c:317: warning: unused variable 'i'
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3654 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-25 09:13:35 +00:00
ludovic.rousseau
042d47aaeb
iattr_extract(): use sizeof(CK_CERTIFICATE_TYPE) for a
...
CKA_CERTIFICATE_TYPE
thanks to Wan-Teh Chang for the better patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-February/011892.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3653 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-25 09:10:38 +00:00
ludovic.rousseau
4987d22c9a
attr_extract(): use sizeof(CK_ULONG) instead of sizeof(CKA_CERTIFICATE_TYPE)
...
Thanks to Marc Rios Valles for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-February/011890.html
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3652 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-24 17:15:57 +00:00
alonbl
dc3f8f6509
Default PCSC CFLAGS from pkg-config
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3650 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-03 20:11:30 +00:00
aj
abe9112f2b
update NEWS file from 0.11.7 branch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3649 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-01 08:26:30 +00:00
aj
fe195e9b33
trunk code is now working towards 0.11.8
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3647 c6295689-39f2-0310-b995-f0e70906c6a9
2009-02-01 08:19:49 +00:00
martin
1bf7e9c418
typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3645 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-30 11:59:12 +00:00
martin
24d69c655d
hide_empty_tokens should not affect emulated cards (always on)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3644 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-29 11:50:21 +00:00
martin
830ba34b67
Fix native windows build, add iconv support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3643 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-29 11:47:45 +00:00
alonbl
93998e9561
Optionally load SCardControl132 on apple
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3642 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-28 12:43:30 +00:00
martin
aadf4ad037
Fix pinpads on OS X
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3641 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-28 12:28:41 +00:00
alonbl
34a75de5d7
Rutoken updates
...
By Aktiv Co. Aleksey Samsonov
- use PKCS#15 (not builtin PKCS#15 emulator)
- rutoken.profile (add privdata)
- correct using ACL
- correct erase procedure
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3640 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-28 12:10:13 +00:00
alonbl
09a849c906
Set default of hide_empty_tokens to true
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3639 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-23 09:30:42 +00:00
alonbl
e1d49190c1
Typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3638 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-23 09:27:30 +00:00
alonbl
17cf43eeb1
Rename PKCS#11 v2_20_mode option to plug_and_play
...
As it is the only feature it controls.
Also, change the default to true.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3637 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-23 09:14:15 +00:00
alonbl
98841d1e61
Finally remove eval stuff from autoconf
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3636 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-23 09:00:11 +00:00
alonbl
ef38618c34
Remove unused OPENSC_ETC_PATH
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3635 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-22 14:29:25 +00:00
alonbl
a5f32a99db
Move all private factories into private headers, the iso7816 factory is the only one which is actually exposed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3634 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-21 13:19:18 +00:00
alonbl
74f6d41dc6
Add sc_get_iso7816_driver as it is required for external drivers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3633 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-21 13:01:37 +00:00
alonbl
304f227d79
Add SCARD_E_NO_SERVICE to internal-winscard.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3632 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-20 08:45:12 +00:00
alonbl
fbd51c705e
Revert 3630
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3631 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-20 08:42:47 +00:00
alonbl
ce5c5f3ae9
Add SCARD_E_NO_SERVICE to internal-winscard.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3630 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-19 19:43:19 +00:00
alonbl
78ac13a96a
Add PACKAGE_SUFFIX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3629 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-19 13:39:52 +00:00
alonbl
584e0a1b2f
Expose version components into config.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3628 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-19 13:32:29 +00:00
martin
c58bcfab84
Configurable for PKCS#11 v2.20 related changes.
...
- Correctly report Cryptoki version if v2.20 is used.
- Consistently report no version for hardware/software we know no version information about.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3627 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-19 12:06:38 +00:00
martin
4d5c61d90c
Correct PC/SC -> OpenSC error code translation.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3626 c6295689-39f2-0310-b995-f0e70906c6a9
2009-01-19 11:57:20 +00:00