sth
fecf9f5e15
Allow empty key file paths in compute_signature and decipher
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1071 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-25 07:51:05 +00:00
sth
2698dc6cec
Have a compile option to enable PTHREAD locking at the pkcs11 level
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1070 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-24 07:03:48 +00:00
sth
d8ef40512b
Extended caching for single-user Windows OSes (Win98)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1069 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 11:46:07 +00:00
sth
a9692c9c46
Disabled OS thread locking on OSes with PTHREAD due to closing problems with Mozilla
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1067 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 09:52:09 +00:00
sth
870efbf2c0
Added SC_PKCS15_PRKEY_USAGE_NONREPUDIATION as a valid signature usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1066 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 08:47:57 +00:00
sth
189a692012
Fix in case no OpenSSL is present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1065 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 20:43:02 +00:00
aj
c0ea6e9554
remove references to SCIDI
...
sanitize pkcs11 include header references
(now they are installed in rsaref/ subdir,
and pkcs11.h is *not* overwritten).
remove automake 1.5 requirement
(automake 1.4 on debian stable/woody works fine)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1064 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 17:02:28 +00:00
aj
131719b8c6
- add robert to Authors as contributor of bug fixes
...
- configure code finally working.
engine is detected and path to libcrypto.a is also set.
- roberts fix for reader-usbtoken.c
- card-gpk.c migraton to DES_ routines with #define for 0.9.6 openssl.
- man pages: do not ship pkcs15-profile.5 (.in is in the tarfile)
- assuan: replace "strcpy(stpcpy(.., ..), ..)" with
"strcat(strcpy(.., ..), ..)" which looks good, but nobody uses
assuan I guess ?
- declaration of sc_pkcs15init_set_lifecycle kills a warning
- #include <openssl/bn.h> kills a warning (or compile problem?)
- removed unused txt[256]; from p15_eid (kills a warning)
- now "ln -s" the signer plugin to the plugin directory.
- moved key_out direction to the beginning of a function (kills
a warning or compile error)
- changed pkcs11-tool option "quiet" to "verbose" to conform to
other tools.
- made algo argument to wrap_unwrap a "const" (kills several warnings)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1063 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 17:00:38 +00:00
sth
0523e1d1fb
Fixed an OpenSSL issue with MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1061 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 12:26:47 +00:00
sth
a02b233a6c
Correction of the previous insert-remove fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1060 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 07:51:45 +00:00
jey
0aea6fcba5
- applied build fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1058 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 15:01:55 +00:00
jey
1c4370dd3b
- fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1055 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:39:18 +00:00
jey
9ddbeaaf85
- Do not install openscd for now
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1054 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:36:40 +00:00
jey
ed0ffac09b
- fixed add_padding() in the case where padding is request, but input
...
isn't a hash.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1053 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:29:03 +00:00
jey
4ae13b64a4
- fixed CHV changing with a CryptoFlex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1051 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 11:40:51 +00:00
sth
fb417772fb
Allow non-repudation as a signature usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1050 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 15:42:04 +00:00
sth
01896a8f2e
Added some files to ignore, also for Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1049 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 14:57:50 +00:00
sth
b05aadce59
Have a sec delay in C_GetSlotInfo() per reader instead of a global delay
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1048 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 11:58:11 +00:00
sth
a85d6d7aa4
Added code for MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1047 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 11:55:16 +00:00
okir
0f4c706e3b
- added tests for key unwrap
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1046 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:39:44 +00:00
okir
41a22174dc
- bugfix for unwrap
...
- support getattr(CKA_VALUE) for public key objects
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1045 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:38:00 +00:00
sth
b531527169
More robust detection of removal/insertion events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1044 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:35:58 +00:00
okir
c94d72f3ea
- fixed signing and hopefully unwrap for split keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1041 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 13:13:48 +00:00
okir
9fae9999ea
- fix for the previous change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1040 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 13:03:49 +00:00
okir
d2075b2c13
- implemented split-key support for CardOS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1038 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 12:38:08 +00:00
okir
6faee57a95
- fixed compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1037 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 11:04:28 +00:00
okir
93edc07115
- Allow command line --key-usage to be more restrictive than the
...
usage given by the certificate (pkcs12)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1036 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 09:39:09 +00:00
okir
f08a12f108
- when no specific reader is required, just select the first one that
...
holds a card
- when computing RSA signatures, don't assume the card supports raw RSA -
the it the challenge is a sha1 digest instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1035 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 09:37:31 +00:00
okir
98907b68f1
- fixed endianness problem with encoding/deconding of bit fields
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1034 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 20:52:26 +00:00
sth
897e4a87ca
Added debug.obj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1033 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:50:30 +00:00
sth
005590ab8f
Added card-starcos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1032 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:49:50 +00:00
okir
192e140fd3
- merged SSL ENGINE patch from Kevin Stefanik
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1031 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:03:11 +00:00
okir
fcd5ddfa55
- removed SCIDI stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1030 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 17:00:02 +00:00
okir
f1aaa62c2b
- integrate starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1029 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 16:59:34 +00:00
okir
7dd987d6cd
- fixed some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1028 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 16:01:22 +00:00
okir
5abf1b898e
- added SC_SEC_OPERATION_AUTHENTICATE for starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1027 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:58:57 +00:00
okir
f8a7fecf78
- get rid of warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1026 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:56:40 +00:00
okir
095db2b907
- getting CKA_LABEL would not 0-terminate the string
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1025 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:53:44 +00:00
okir
f81929eb16
- moved the lifecycle stuff to libpkcs15init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1024 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:38:35 +00:00
okir
ac1c926cc8
- Added starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1023 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:27:33 +00:00
okir
138346a018
- backed out AM_LDFLAGS change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1022 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:20:40 +00:00
okir
1714b3147c
- improved debugging output of CK_ATTRIBUTE data
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1021 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:18:07 +00:00
okir
c53043a97e
- in getattr(CKA_LABEL), do not include trailing NUL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1020 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:17:02 +00:00
okir
be09dc97f3
- when getting certs from a p12 file, put the subject name into the cert labels
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1019 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:16:08 +00:00
sth
7cb9901113
Correction of the previous patch for MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1018 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 12:01:08 +00:00
okir
aa6e626a79
- import all certs from a pkcs12 file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1017 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 11:50:49 +00:00
okir
90598ef590
- new error code SC_ERROR_CANNOT_LOAD_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1016 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 10:20:22 +00:00
okir
44995d388d
- don't complain about read/write/update binary with a length of 0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1015 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 10:19:20 +00:00
okir
0c173451fc
- dont return error in detect_card_presence if there is no reader
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1014 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 08:33:37 +00:00
okir
e04b90f5b2
- a few more changes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1013 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 20:06:19 +00:00
sth
088a346bdd
First thing written in the debug log will be ==========
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1012 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 17:10:25 +00:00
sth
4545fc2ab6
include for MacOSX added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1011 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 15:59:32 +00:00
sth
92c5e24572
Have allways a label in CK_TOKEN_INFO
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1010 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 17:29:19 +00:00
okir
46ddaa903d
- fix pkcs11 signatures with etoken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1009 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 15:19:53 +00:00
okir
3b36593ada
- added pkcs15 unblock functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1008 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 14:51:42 +00:00
okir
0b333129d9
- explicitly mention we do raw RSA
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1005 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 10:33:07 +00:00
okir
91b7b3c7a6
- suppress "not supported" error messages from sc_card_ctl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1004 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 08:17:53 +00:00
okir
d2b5c08857
- fixed unblock command when puk given in hex notation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1003 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 07:44:27 +00:00
okir
a9a766fafb
- more fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1002 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:29:29 +00:00
sth
91deef3734
Added cardos-info.exe
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1001 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:26:05 +00:00
okir
dc269cea3e
- reverted previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1000 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:48:54 +00:00
okir
99dc52d875
- try to deal more gracefully with hotplug events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@999 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:45 +00:00
okir
f4b866c1ea
- include config.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@998 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:29 +00:00
okir
e052e6956d
- added hotplug errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@997 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:16 +00:00
sth
f801d14ffd
Removed some errors that occured with unsupported cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@996 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:22:52 +00:00
okir
04b52edbb8
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@995 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 13:55:22 +00:00
okir
56e2e70e07
- new tool cardos-info from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@994 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:48:57 +00:00
okir
0eecac13bb
- support for lifecycle cardctl; cardos lifecycle support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@993 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:47:41 +00:00
okir
5ca228f7b8
- usbtoken fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@992 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:46:57 +00:00
okir
87a0cc51a1
- build fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@991 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:46:02 +00:00
okir
9437f109ec
- Added OpenCT reader support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@989 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:41:31 +00:00
okir
1e1eec0d8a
- getopt cleanup from aj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@988 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:28:09 +00:00
okir
632dc7dfc8
- fix for newer flex versions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@987 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:19:04 +00:00
okir
89edb55ead
- Textual representation of PIN encoding instead of "Type: 1"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@986 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:32:50 +00:00
okir
f29ce046e7
- Don't set PIN defaults until after we've parsed _all_ cardinfo blocks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@985 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:32:15 +00:00
okir
4f60d849c6
- fix for 2048 bit keys on cflex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@984 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:31:33 +00:00
okir
c07de5157a
- added SC_PKCS15_PIN_TYPE_* defines for weirdo encodings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@983 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:30:25 +00:00
okir
340aad07a0
- fixes for le=00/lc=00 problems
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@982 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-10 09:16:05 +00:00
sth
b00a91c8af
better fix then the previous for the assertion failed bug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@981 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-09 20:19:42 +00:00
sth
ae700e318b
Fix: assertion failed (lock_count>=0) in sc_pkcs15_bind()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@979 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-04 09:52:39 +00:00
okir
fabb271b6d
- fix sc_transmit_apdu to properly deal with le=00
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@978 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 18:19:22 +00:00
okir
fa2e617cd1
- added sc_reader_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@975 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 13:18:00 +00:00
okir
9ae2b2fa07
- usbtoken fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@974 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:53:32 +00:00
okir
35a5cdd780
- changed description
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@973 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:53:06 +00:00
okir
0ea0ce2ac9
- opensc-tool -f: don't crash on large or record structured files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@972 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:52:41 +00:00
okir
00d2d7ce4c
- minor printf fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@971 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:51:46 +00:00
okir
a7962eeed6
- stubs for "synthetic" pkcs15 tokens
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@970 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:46:26 +00:00
sth
ac4b6dc45f
Fix: card detection in C_GetSlotInfo is done at most once a second
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@969 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-02 06:59:19 +00:00
sth
9d3b5a3941
Added sc_current_time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@968 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-02 06:58:20 +00:00
okir
909b917694
- opensc-tool -f should handle files > 2K gracefully
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@967 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:28:44 +00:00
okir
e0a80576e6
- Remove workaround for t=1 bug in etoken driver.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@966 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:26:55 +00:00
sth
0abafd0e9a
Fix: root certs could be shown more then once
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@965 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 16:08:10 +00:00
okir
da172fd4c5
- added reader driver for usbtoken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@960 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:14:22 +00:00
okir
995bcfa2df
- added missing win32.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@959 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:12:02 +00:00
okir
86d486c602
- top_srcdir/top_builddir fixes (aj)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@958 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:08:27 +00:00
okir
bdb9163a8f
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@957 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:06:53 +00:00
okir
dd8f50465a
- properly set max pin length attr
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@956 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:05:44 +00:00
okir
944a553487
- Merged Andreas' usbtoken code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@955 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:02:55 +00:00
okir
556c216c4b
- make sure all APDU fields are zero when processing -s option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@954 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-25 11:19:49 +00:00
sth
4aef09109b
card remove/insert dection for Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@953 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-20 12:52:39 +00:00
okir
c816a1f461
- use OPENSSL_cleanse instead of memset to zap DES key (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@952 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-12 10:20:46 +00:00
okir
489401a9b3
- changed HAVE_LIBPCSCLITE -> HAVE_PCSCLITE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@950 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-11 11:00:02 +00:00
okir
6717b4224b
- dont install rsaref/{unix.h,win32.h}
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@947 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:35:47 +00:00
okir
aab6ebd1e7
- minor cosmetic change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@946 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:23:08 +00:00
okir
d5d1fb395c
- bump SC_MAX_READERS to 16
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@945 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:22:42 +00:00
okir
faf95af460
- makefile cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@944 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 11:44:16 +00:00
sth
ca6a27e429
remove/insert fix: restore the slot->reader in slot_token_removed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@943 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-07 14:18:55 +00:00
sth
faa73e5827
bug fix in sc_connect_card: only the first ATR in a config file was accepted
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@940 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-04 15:47:05 +00:00
okir
f5ac3cd8ab
- fixed ATR
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@939 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-04 09:38:23 +00:00
sth
c097704149
added error msg SC_ERROR_KEYPAD_TIMEOUT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@938 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-03 21:07:42 +00:00
okir
66a8076baa
- more robust handling of concurrent WaitForSlotEvent vs Finalize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@937 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-03 13:07:28 +00:00
sth
32f532a782
fix: clear the CK_SLOT_INFO flags in slot_token_removed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@936 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-03 13:03:59 +00:00
sth
a2ff6d66b4
take the last 8 bytes of the card as the pkcs11 serialNumber
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@935 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 15:16:56 +00:00
sth
0036545ffa
fix in C_GetSlotInfo that previously cleared the slotDescription and didnt clear the CKF_TOKEN_PRESENT flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@934 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 12:47:32 +00:00
okir
e13720e391
- renamed connect() to open_reader_and_card()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@933 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 11:07:37 +00:00
sth
9fe5baa4b7
added error code CKR_PIN_INVALID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@932 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-26 07:27:42 +00:00
sth
5c1ae16ac8
fixed wrong return value in C_Finalize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@931 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 20:10:24 +00:00
sth
49760f9cfb
fixed some thread dead-lock bugs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@930 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 19:38:50 +00:00
okir
9173c9934e
- new pkcs15 object creation stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@929 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 17:50:33 +00:00
sth
0529d27e3f
buf fix in sc_connect_card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@928 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-22 21:27:35 +00:00
sth
d9e99b0e17
little fix in C_GetInfo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@927 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 15:40:06 +00:00
okir
33133a8d5a
- prevent compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@926 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:47:30 +00:00
sth
b0a8b1a26a
extra check in C_Logout
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@925 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:29:14 +00:00
sth
252cbd51d2
login should return CKR_ARGUMENTS_BAD if wrong pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@924 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:27:24 +00:00
sth
66f7de9378
removed unnecessary debugging
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@923 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:20:08 +00:00
sth
a7a5701e0c
added support for max pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@922 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:19:01 +00:00
sth
a69a309c6e
NULL_PTR check added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@921 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 18:55:35 +00:00
sth
4d4920b661
Let C_FindObjectsInit return correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@920 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 18:54:52 +00:00
sth
213941af28
little fix of the previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@919 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 13:03:15 +00:00
sth
9631ef3636
removed const in sc_card_driver (caused win32 crash)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@918 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 12:51:07 +00:00
sth
b75ea0a0b2
more parameter checks + fix in previous checks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@917 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 21:10:39 +00:00
sth
958658102d
added check for NULL pointers and uninitialized pkcs11 lib
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@916 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 13:44:36 +00:00
sth
57954682fd
added error: unresponsive card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@915 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 13:36:58 +00:00
sth
c05cef9678
correct behaviour of C_GetSlotInfo at empty slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@914 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 16:53:49 +00:00
okir
870d9d9f66
- made card_detect() available to everyone
...
- C_GetSlotInfo now always does card detection, but only for the
reader which which the slot is associated
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@913 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 14:57:51 +00:00
okir
cf6037314f
- Introduce locks around all pkcs11 operations, in case the caller
...
is multithreaded and wants to access us from different threads.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@912 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 14:21:38 +00:00
sth
5265456cab
some cleared messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@911 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 11:09:24 +00:00
okir
4ffba35b5e
- fixed change/unblock pin for GPK
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@910 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-16 20:25:41 +00:00
sth
e1f4108c33
added error code CKR_USER_NOT_LOGGED_IN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@909 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-16 18:09:10 +00:00
sth
58985e51c2
reset first_free_slot during C_Initialize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@908 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-14 16:59:23 +00:00
sth
d944d91714
added the CKR_DEVICE_REMOVED return code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@907 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-12 14:20:53 +00:00
sth
0b9c44172d
get the right error code on card removal
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@906 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-12 14:20:00 +00:00
sth
7dcf350d7b
added p11 error CKR_PIN_LOCKED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@905 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-11 10:38:43 +00:00
okir
23d686576e
- fixed minor compile warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@904 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-10 14:08:54 +00:00
okir
1c66025798
- Each reader now gets a fixed range of slots
...
- Each slot now shows the reader name in the description field
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@903 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-10 14:08:29 +00:00
sth
a2b9838bb1
added locking to sc_pkcs15_decipher and sc_pkcs15_compute_signature
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@902 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-06 14:46:57 +00:00
okir
8160bf64a1
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@901 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 15:43:51 +00:00
okir
d1a122ce3b
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@900 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 15:39:44 +00:00
okir
af6cfb5537
- Support Belgian eID - be less pedantic about the AID listed in EF(DIR)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@899 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 14:45:48 +00:00
sth
0e691fb13e
added support for pin pad readers + change pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@898 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 13:55:22 +00:00
okir
4ff3821a0a
- suppress bogus insertion events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@897 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:32:43 +00:00
okir
f71e2b0c5e
- Added test for WaitForSlotEvent
...
- fixed a bunch of compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@896 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:23:05 +00:00
okir
5276bbb1c4
- merged Stef's WaitForSlotEvent patches
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@895 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:20:54 +00:00
okir
76e7ce90e4
- fixed compiled warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@894 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:20:24 +00:00
okir
542e12deb3
- pubkey asn.1 encoding fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@893 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:17:12 +00:00
sth
0b84c49f9a
now also caching if file->size differs from what sc_read_binary() returns
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@892 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-01 20:26:12 +00:00
sth
e8e738aac4
added signature test for all keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@891 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-31 15:32:27 +00:00
sth
f6a343712e
added: opensc SC_ERROR_KEYPAD_CANCELLED -> pkcs11 CKR_FUNCTION_CANCELED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@890 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-31 12:50:26 +00:00
sth
7dab6baeee
file size fix + removed unnecessary code from previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@889 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-30 09:45:13 +00:00
sth
16dfb55118
the slot's slotDescription is now the reader name
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@888 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:39:47 +00:00
sth
5c1b8d9411
selection between SHA-1 and RIPEMD160 sigs when 35 bytes supplied
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@887 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:37:54 +00:00
sth
20ad65a858
made buf[1024] dynamic (malloc)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@886 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:36:08 +00:00
sth
dfc01ab7ed
typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@885 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:43:06 +00:00
sth
d8871d9a46
some fixes + added cert viewing for -O option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@884 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:33:28 +00:00
sth
a383ed91d5
added return value + fix (needed if hide_empty_slots = true
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@883 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:17:08 +00:00
sth
7d6837321f
Fixes for Windows, who's PC/SC has more events that interfere with insert/removal events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@882 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:01:17 +00:00
okir
3a83fca452
- cflex 32k v4 supports keygen
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@880 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-22 08:34:44 +00:00
okir
b9c3ec2ec4
- fixed two minor issues in p11 test code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@879 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-21 15:29:17 +00:00
okir
733f6d1fb9
- fixed previous %windir% change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@878 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 12:09:30 +00:00
okir
7eef2f81a2
- new ATR for eToken PRO 32k reported by Kevin Stefanik
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@877 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 11:40:38 +00:00
okir
c5f5557367
- sc_pkcs15_read_file: gracefully deal with short reads
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@876 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:22:41 +00:00
okir
501cdbd7e0
- Get opensc.conf from %windir% rather than hard-coded C:\\WINNT (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@875 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:12:28 +00:00
okir
1a994ef760
- a few minor changes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@874 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:02:07 +00:00
okir
7c6896ad73
- link against libscrandom.a, no libscrandom.la
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@873 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:57:23 +00:00
okir
c83a6468ac
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@872 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:56:53 +00:00
okir
a5492a32a8
- slightly more verbose error messages when ASN.1 parsing fails
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@871 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:56:27 +00:00
okir
693c5e6b8b
- do not encode zero length sequences
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@870 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:53:10 +00:00
okir
4867251671
- fix sc_pkcs11_signature_size to return modulus size in bytes, not bits (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@869 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:52:05 +00:00
okir
69f8588f47
- added card_detect_all
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@868 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:50:33 +00:00
okir
5b1eb43b93
- add some support for card removal in pkcs11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@867 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-19 17:47:07 +00:00
okir
a7551e1822
- Patches from Stef implementing PKCS11 RNG related functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@866 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-16 20:10:28 +00:00
okir
98e9561b5c
- added command "random"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@865 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-15 13:20:22 +00:00
okir
e69517941f
- added SC_CARD_CAP_RNG
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@864 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-15 13:20:02 +00:00
aet
b1eff66867
C++ warning fixes (assuan excluded)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@863 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 19:55:45 +00:00
okir
a89e65bfb3
- mask out additional flags in the card type byte when asked for the AAK
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@862 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 16:49:54 +00:00
okir
f2f6c24716
- added ATR for Cryptoflex 32k v4
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@861 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 16:44:34 +00:00
okir
6532461cf3
- win32 fixes for mutex change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@860 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 14:26:23 +00:00
aet
6346fd0fcd
A small warning / compile fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@859 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 13:31:55 +00:00
okir
baf8393a8a
- merged mutex patches from Serge Koganovitsch (Zetes)
...
- created new file portability.c and moved the whole mutex stuff
there (so we don't pollute public header files with #ifdef HAVE_XXX anymore)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@858 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 11:22:33 +00:00
okir
0af2a35b9c
- Another go at the empty slot/empty token issue
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@857 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-13 21:38:43 +00:00
okir
41ee6a61ba
- fix to previous patch: if use_cache is given in both the default and the application conf block, use the latter
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@856 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 12:33:41 +00:00
okir
373de3ed87
- actually honor the use_cache config option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@855 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 12:31:03 +00:00
okir
1aa5e6161c
- PATH_MAX fix for win32 (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@854 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 11:41:04 +00:00
okir
d2d83a47ff
- when caching pkcs15 files, transparently create the cache dir if not there
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@853 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:18:02 +00:00
okir
7be0774cf2
- learn_card: the cache directory is now created by libopensc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@852 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:14:15 +00:00
okir
4a14b41dca
- reordered options for help message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@851 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:09:25 +00:00
okir
e60c9d705e
- fix the help message for --very-long-options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@850 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:09:01 +00:00
okir
0b1b8b14f5
- use "wb" rather than "w" in fopen (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@849 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 08:46:11 +00:00
okir
e13804aa32
- fixed message in --learn-card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@848 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 08:45:27 +00:00
okir
4749a40e5b
- prevent segfault in opensc-explorer create command
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@847 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 07:31:58 +00:00
aet
d13155a9e3
Add pkcs11-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@846 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 23:47:04 +00:00
aet
037dbdfa13
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@845 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 23:46:24 +00:00
aet
12bfb8ba64
Cleanups and logging improvements for non-GCC compilers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@844 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 21:46:46 +00:00
okir
67608feffb
- Win32 fixes in case openssl is not present (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@842 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:52:11 +00:00
okir
144bb23a7c
- fixed minor pin pad bug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@841 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:37:37 +00:00
okir
92651f0595
- sc_pkcs15_change_pin: small pin pad change from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@840 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:36:23 +00:00
okir
9c5782e2b2
- pin pad changes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@839 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:28:48 +00:00
okir
8229351cce
- DEF_APDU_FIX wasn't used unless you install a config file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@838 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 17:45:06 +00:00
aet
4384423879
Add missing case 'w' to handle_option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@837 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 12:06:50 +00:00
okir
608debfc15
- Tools did not work unless -w switch was given
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@836 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 11:03:17 +00:00
aet
8b659eb3d3
Minor cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@835 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 10:53:37 +00:00
aet
e9f97a9f31
Add .cvsignore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@834 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 10:48:37 +00:00
okir
9b330f3408
- vertain platforms need time.h to understand time_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@833 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-05 18:06:35 +00:00
okir
bb7708335b
- fixed comment before sc_wait_for_event
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@832 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-05 17:59:43 +00:00
okir
04c00ef5ef
- fixed problem with infinite tiemout in sc_wait_for_event
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@831 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-05 17:59:24 +00:00
aet
86039021af
canelled -> cancelled
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@830 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-04 13:17:40 +00:00
okir
ad7fb4ee05
- fixed help messages broken by previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@829 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 17:07:56 +00:00
okir
2699670762
- instead of calling sc_connect_card, use new function connect_card from util.c
...
This function will take care of the fine print and optionally wait for
card insertion too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@828 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 17:07:42 +00:00
okir
d1064f4417
- instead of calling sc_connect_card, use new function connect_card from util.c
...
This function will take care of the fine print and optionally wait for
card insertion too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@827 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:58:32 +00:00
okir
65ead88908
- New function connect_card() - this does all the work of connecting
...
to the card, optionally waiting for card insertion using sc_wait_for_event
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@826 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:57:46 +00:00
okir
21fe5ef918
- Patch from Stef to implement sc_wait_for_event, slightly enhanced by
...
yours truly.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@825 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:32:06 +00:00
okir
8d7fd40e80
- new error code (wait_for_event timeout)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@824 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:30:28 +00:00
okir
e01554814b
- Patch from Stef: add support for --pin and --test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@823 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 14:33:17 +00:00
okir
bd96ae9be3
- C_Sign* and C_Digest* now return the proper codes when the output buffer
...
is too small, or when the caller is doing and output buffer size query
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@822 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 14:28:50 +00:00
okir
675ef65073
- default apdu_fix=1 on win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@821 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 13:27:19 +00:00
okir
939d78a72d
- allow hard-coded config options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@820 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 13:26:58 +00:00
okir
3dc71272a5
- added support for parsing a static configuration string
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@819 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:54:02 +00:00
okir
1c22c55655
- Try to fix pkcs11.hide_empty_slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@818 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:40:11 +00:00
okir
0ffa466eab
- sc_pkcs11_slot_t typedef added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@817 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:39:59 +00:00
okir
36930668fb
- Added run-time option pkcs11.cache_pins, default false
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@816 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:09:45 +00:00
okir
8e6dc966b5
- Added run-time option pkcs11.lock_login
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@815 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 10:49:07 +00:00
okir
93c0cab7b9
- win32 fixes from stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@814 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-02 15:31:53 +00:00
okir
8abb5fa801
- Getattr(CKA_MODULUS_BITS) would fail for keys w/o certificate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@813 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-02 15:23:08 +00:00
okir
9acca0e724
- Implemented new PIN verify/change/unblock framework. All PIN operations
...
are routed through sc_pin_cmd(), which builds the APDU and either passes
it to the card directly, or to the card reader along with a request to
read the PIN(s) from the reader's keypad.
Currently, entering PIN in the standard way (i.e. via the application)
should still work - I have verified GPK and eToken; Cryptoflex verify
should work as well. Anything else needs additional testing, and support
for keypad input in particular (I cannot test this at the moment for
lack of a suitable reader).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@811 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-23 18:47:27 +00:00
okir
604e9cd318
- the AC CHANGE condition of the PIN objects we created referenced the
...
PUK, rather than the PIN. This caused the standard sc_change_reference_data
operation to fail.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@810 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-23 18:43:04 +00:00
okir
4419574608
- NUL-terminate strings returned by getattr(CKA_LABEL)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@809 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-23 17:02:05 +00:00
okir
079821b8c4
- Added --hash/-h to hash data (Stef Hoeben)
...
- Added function to translate CKR_* error codes to strings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@808 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 23:16:47 +00:00
okir
8c7bfd1a3d
- define enough reader slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@807 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 20:50:25 +00:00
aet
1ddde4e899
- Add access, mkdir and getpass wrappers into winconfig.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@806 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 14:43:13 +00:00
okir
d1fa35e1d0
- slightly changed previous patch; new flag hide_empty_slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@805 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 11:50:41 +00:00
okir
0babb91194
- Allow the admin to configure how many slots are used per card
...
(opensc.conf; pkcs11.num_slots)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@804 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-21 16:45:37 +00:00
okir
3b7ebc7c02
- clarified use of conf_blocks in process_config_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@803 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-21 14:10:36 +00:00
okir
4c28f0dad8
- prevent buffer overflow
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@802 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-20 14:55:17 +00:00
okir
34d45b2210
- minor signedness issue
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@801 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 21:17:06 +00:00
okir
882c5b9ed3
- implemented unblock command
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@800 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 19:42:51 +00:00
okir
0980825796
- get rid of warnings when calling load_card_driver_options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@799 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 16:16:42 +00:00
okir
a7615abdeb
- attempt to fix DODF encoding/decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@798 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 14:26:54 +00:00
okir
6d324715da
- add missing help message for --module
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@797 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 10:49:28 +00:00
okir
d22d1b13a4
- Another fix to mechanism handling: ripemd160 signatures should work now
...
- Got rid of get_mechanism_{list,info} in framework_ops, as they're not
needed anymore.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@795 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 09:27:08 +00:00
okir
9a472d4e65
- fixed rsa-ripemd160 signatures
...
- Added new option --module
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@794 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 09:24:58 +00:00
okir
fc26b49ee5
- Values of CKA_SIGN and similar attributes now based on the pkcs15
...
usage flags rather than on some hardwired defaults.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@792 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 19:26:18 +00:00
okir
d37c1ff58c
- fixed pkcs1-ripemd160 signature header
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@791 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 12:15:04 +00:00
okir
337674d65a
- Added helpful comment about --use-default-transport-keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@789 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 11:34:35 +00:00
okir
b86d2e994b
- First shot at pkcs15 data objects from Danny De Cock
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@788 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 10:17:01 +00:00
okir
ca82169e63
- removed some dead code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@787 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 09:23:10 +00:00
okir
2e4f640c2d
- More win32 fixes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@785 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:44:48 +00:00
okir
647d4bcdef
- Register only those mechanisms the card actually supports
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@783 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:16:31 +00:00
okir
0c16b3d887
- Added shorthand rsa-ripemd160
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@782 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:15:56 +00:00
okir
5ef34fc7bc
- Added support for SC_ALGORITHM_RSA_HASH_RIPEMD160 in sc_pkcs15_compute_signature
...
- rewrote add_padding
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@781 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:15:32 +00:00
okir
3f584dbb1f
- Added SC_ALGORITHM_RSA_HASH_RIPEMD160
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@780 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:14:41 +00:00
okir
29dd06ba9f
- more win32 fixes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@779 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 16:00:40 +00:00
okir
96c953c5a3
- generate header symlinks for libpkcs11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@778 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 12:37:44 +00:00
okir
d584e80d71
- build pkcs11 before tools, as pkcs11-tool needs libpkcs11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@777 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:51:07 +00:00
okir
ffd4773e20
- New application: pkcs11-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@776 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:50:11 +00:00
okir
21dfabee27
- New mechanism framework
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@775 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:49:12 +00:00
okir
a01b8d0b24
- New mechanism framework
...
- New libpkcs11 utility library
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@774 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:48:54 +00:00
okir
317a0663c9
- New utility library libpkcs11 - supposed to provide easy loading and
...
unloading of modules, and possibly a few other features in the future.
Needed by pkcs11-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@773 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:48:14 +00:00
okir
d997440546
- more Makefile.mak fixes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@772 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-12 10:08:23 +00:00
okir
87fc4815d9
- do not segfault when we fail to parse a pkcs15 DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@771 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-11 08:54:16 +00:00
okir
f984a3fd97
- win32 patch from Stef Hoeben
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@770 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 17:53:58 +00:00
okir
23158d7a96
- win32 patch from Stef Hoeben
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@769 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 17:47:19 +00:00
okir
2e6af762c3
- Added support for CKM_RSA_X_509 (Stef Hoeben)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@768 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 17:47:10 +00:00
jey
9a8c3b2b20
- Added support for separator characters in sc_bin_to_hex()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@767 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 14:44:42 +00:00
okir
dc06b5f702
- When exporting the public key, fall back to the certificate object if
...
there's no public key with the given ID.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@765 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 14:22:26 +00:00
jey
717cb0ccce
- Modified base64 test so it actually tests base64 stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@764 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 14:14:55 +00:00
jey
9b6074b951
- Added openscd and Assuan
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@763 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 13:43:23 +00:00
jey
0b8853a1a6
- Small bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@762 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 13:41:36 +00:00
jey
79b5672edc
- Keep the DER encoding of each PKCS #15 object in memory
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@761 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 13:27:17 +00:00
jey
3bced8aeae
- Changed sc_bin_to_hex() prototype a bit and removed the ':' characters
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@760 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 13:26:31 +00:00
okir
5a568eeb75
- translate SC_ERROR_WRONG_LENGTH to CKR_DATA_RANGE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@759 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-09 13:33:39 +00:00
okir
6217b4adf5
- changed pcsc_detect_card_presence to call refresh_slot_attributes. This
...
eliminates duplicate code, and that we also pick up the new ATR if another
card was inserted in the meanwhil.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@758 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-06 21:40:41 +00:00
okir
868d1d7a20
- added sc_bin_to_hex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@757 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-06 12:49:19 +00:00
okir
59ca2a4b0f
- sc_parse_atr: initialize slot->atr_info.hist_bytes even if the ATR is bad
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@756 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-05 09:34:24 +00:00
okir
4f35b0a753
- we expect an RSA key, so better make sure it _is_ RSA
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@755 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-05 08:58:54 +00:00
okir
c83fa88ca8
- Parsing pkcs11 IDs and paths with an odd number of bytes would scan past
...
the end of the string. Made sc_hex_to_bin more robust and change various
place to use it rather than doing it on their own with scanf(%02x)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@754 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 15:36:33 +00:00
okir
96ba7bf4d3
- pass the --label argument as the token label when creating the pkcs15 app
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@753 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 14:56:50 +00:00
okir
e9c8806c75
- properly set the TokenInfo label from user input
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@752 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 14:56:17 +00:00
okir
22fd834ec4
- added comment on pkcs12 files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@751 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 14:28:08 +00:00
okir
c55b8d8377
- Fixed CKM_SHA1_RSA_PKCS: if OpenSSL is available, use it to hash the supplied
...
data. If OpenSSL is unavailable, CKM_SHA1_RSA_PKCS is not advertised to the
user.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@750 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 13:50:23 +00:00
okir
27c2369cee
- make sure we don't assign the same ID more than once
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@749 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 13:25:31 +00:00
okir
d8a3189026
- Added sc_pkcs15init_get_secret so that the GPK driver can get the
...
MF secure messaging key.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@748 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 13:24:40 +00:00
okir
2c280fe351
- updated pkcs15init error codes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@747 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 12:33:43 +00:00
okir
92adeef9a6
- fixed ATR for Cryptoflex 32K e-gate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@746 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 12:09:07 +00:00
okir
8ba7b370e4
- got rid of default transport keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@745 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 11:57:32 +00:00
okir
946824dfe5
- implement get_key callback
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@744 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 11:56:51 +00:00
okir
eaebdec8b0
- Change the way we handle default transport keys, attempt to reduce the
...
risk of users entering the wrong keys and locking their cards. Here's how
we do it:
- ask the card driver (via cardctl GET_DEFAULT_KEY) for default key
- invoke the front-end's get_key callback. If the card driver gave us
a default key, pass it as default value
- front end is free to use default key as-is, or prompt user
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@743 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 11:56:34 +00:00
okir
555f612166
- implemented SC_CARDCTL_GET_DEFAULT_KEY for the flex driver; will return
...
the default AAKs for Cryptoflex and Cyberflex Access. Hope I got them
right.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@742 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 09:59:33 +00:00
okir
3168c8ea26
- added new cardctl SC_CARDCTL_GET_DEFAULT_KEY to get default transport keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@741 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 09:26:40 +00:00
okir
6df8dbbed3
- fixed asn1_encode_path - include length value if given
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@740 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 09:24:49 +00:00
okir
d635d53771
- support ATR maps in /etc/opensc.conf, e.g.
...
card_driver flex {
atr = 11:22:33:44;
atr = 55:66:77:88;
}
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@738 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-03 15:40:40 +00:00