okir
64c62eb0db
- patch for synthetic p15 cards by Nils Larsch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1268 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-16 15:17:57 +00:00
sth
f563ee6a9e
Moved padding from pkcs15-sec.c to padding.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1266 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-16 11:52:28 +00:00
okir
95e2d8b78a
- Change padding functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1264 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-15 10:49:28 +00:00
sth
0a05d8340c
Have process_fci() as a card operation instead of being called internally by iso7816_select_file(). This way card drivers can implement a select_file() and process_fci() independently
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1263 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 17:39:19 +00:00
okir
29add3c3c9
- added SC_ERROR_WRONG_PADDING
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1260 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 16:56:38 +00:00
okir
82c3efb4bb
- added missing error messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1259 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 16:56:15 +00:00
okir
c2e40211be
- try to deal with RSA_SIG keys (first try RSA_PURE_SIG, then RSA_SIG)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1258 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 16:55:54 +00:00
sth
901a2d90e3
Added 'Global Platform' PIN encoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1257 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 13:20:49 +00:00
sth
df89427bfb
Bug fix: let sc_transmit_apdu() returns a negative number or 0 (no positive number)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1248 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 09:40:49 +00:00
aj
473a701c80
Forgot to init slot[0].flags to SC_CARD_PRESENT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1247 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 22:31:14 +00:00
sth
4737789ede
Implemented the get_response card operation, is now explicitely called by sc_transmit_apdu()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1246 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 11:38:02 +00:00
aj
44dbbffc70
disable usbtoken by default.
...
put usbtokens readers behind openct readers.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1240 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-01 17:34:58 +00:00
aj
694715e85a
Xander Soldaat <lists@b-yes-d.net> reported this ATR,
...
the card works for him "like a charm."
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1239 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-30 18:25:34 +00:00
sth
3669fa86e7
Increased the pkcs15 ID size from 16 to 255
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1238 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-28 07:02:26 +00:00
aj
4f979cf880
attached is patch for card-starcos.c This patch generalizes
...
the handling of the driver internal extra data (for example this will
be usefull to supply the card driver with the necessary information
to create MF/DF/EF). I also added a workaround for certain
profiles which require that the pin is only verified once (i.e.
the state doesn't change after a signature verification).
And finally I changed the order of some starcos function
(at first the init/free function and then the rest).
If nobody has objections it would be nice if someone could
commit this patch to the CVS.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1237 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 23:01:10 +00:00
okir
127f94ad37
- added pinpad support for OpenCT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1215 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-23 12:56:36 +00:00
sth
79a5456b24
Changed strcat to strncat
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1211 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-17 11:31:48 +00:00
okir
7021fcb5a5
- iso7816_logout now invalidates the path cache
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1204 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-15 12:56:07 +00:00
sth
aecd987286
Add support for non-optional ASN.1 object that are empty
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1195 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-12 21:14:04 +00:00
okir
d86e7fbd52
- starcos fixes from Nils
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1193 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-11 10:56:18 +00:00
okir
0cfd6319bf
- New public function sc_add_padding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1192 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-11 10:56:04 +00:00
okir
6575a4adbf
- iso7816_logout should call driver specific select_file function, not the iso7816 generic version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1186 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-10 06:31:48 +00:00
okir
7fe0ba8749
- fixed typodef in sc_pkcs15_*_info_t (spotted by Nils)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1178 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 09:54:14 +00:00
okir
2abc504051
- remove signedness warnings printed by new gcc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1176 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 08:54:42 +00:00
okir
48a61e95c0
- added card name to struct sc_card to allow upper level apps to identify
...
card type more precisely
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1173 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 20:52:33 +00:00
aj
9da55fc262
configure now accepts a path with --with-openct,
...
and that directory is searched, and variables
OPENCT_CFLAGS, LIBS, LDFLAGS are set (and used in src/libopensc/Makefile).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1163 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-24 19:31:12 +00:00
okir
484fca5308
- in pin_cmd, dont assume the caller has properly initialized max_length and encoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1160 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-23 10:05:12 +00:00
okir
795915e146
- added cryptoflex RSA key generation (not yet functional)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1158 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 20:53:15 +00:00
okir
e6864b5897
- less verbose debug messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1157 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 20:51:45 +00:00
okir
f4d1147224
- change debug level for sc_lock/unlock
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1156 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 19:34:45 +00:00
okir
296a9cc54b
- fixed the hang with logout()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1155 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 13:59:25 +00:00
sth
fc31b65a88
added sc_logout() functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1153 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-20 08:30:46 +00:00
aj
f75ffc57d9
egate cryptoflex 32 card can generate key. updated the flags.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1140 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 15:30:42 +00:00
okir
67747f45e1
- select file: do not interpret INVALIDATE/REHAB AC bits for DFs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1136 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:15:36 +00:00
okir
30c094395a
- it seems the upper limit for r/w binary is 244
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1130 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:42:45 +00:00
okir
b68cb1e0b3
- added sc_free_apps to undo sc_enum_apps
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1122 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:32:17 +00:00
okir
e85ebc6a9d
- fixed card_ctl error message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1121 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:41:43 +00:00
okir
27e105540e
- added sc_pkcs15_find_pin_by_reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1114 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:27:38 +00:00
okir
8a3992a4db
- bumped buffer sizes for EF(TokenInfo) labels
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1110 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 16:29:47 +00:00
okir
877423b7ec
- restrict max read/write size to 128
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1106 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 12:25:13 +00:00
okir
3ed0c2f5b1
- do not mess with Case 4 APDUs unless we're doing T=0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1105 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 12:00:57 +00:00
sth
9c198d7b95
Some typos fixed and fixed the algos for use in OpenSSH (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1104 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 08:47:04 +00:00
okir
41a9e6ff2f
- sc_pkcs15_compute_signature(RSA_RAW): zero pad input if shorter than modulus length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1103 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 20:24:24 +00:00
aj
1bfe075ccd
OpenSC header files are included as
...
#include <opensc/opensc.h>
Thus it has to be -I/path/to/opensc/include
and not -I/path/to/opensc/include/opensc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1102 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 14:29:59 +00:00
aj
7cbe523cc4
At least the rainbow ikey 3000 need bigger labels.
...
Label size should be 255, as per pkcs15.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1100 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 13:43:09 +00:00
sth
2fae230794
Make sc_pkcs15_read_file() work if the pkcs15 files contain only FIDs instead of file paths (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1099 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 07:06:29 +00:00
sth
20fa07c022
Added decryption functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1095 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-12 11:51:22 +00:00
sth
55e8c31b12
Fixed: support for X.509 V1 certs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1094 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-11 07:22:27 +00:00
sth
e9e7db89c7
Fix of the previous Win32 patch related to the assumed absence of OPENSSL_cleanse(): this function does is present on OpenSSL 0.9.7 but not on the beta4 version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1093 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-08 10:42:36 +00:00
aj
dd81cea093
- indent (maybe not such a good idea?)
...
- improved some error messages
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1088 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 15:00:34 +00:00
sth
782f5d39e6
Fix for Win32 where there's no OPENSSL_cleanse()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1086 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 14:33:02 +00:00
jey
a70954d2c2
- Yet another test commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1081 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-29 11:37:11 +00:00
sth
9213f6c5cc
Removed some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1079 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-29 09:27:36 +00:00
jey
b0d4f06703
- Renamed card->chopsize to max_le, which is more descriptive
...
- Changed a few checks to asserts
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1078 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 16:34:38 +00:00
aj
a6e7fa3af9
Nils fixed asn1 code to detect two byte "file name" versus
...
longer real paths.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1077 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 16:29:57 +00:00
aj
f5bed52c76
Comment fixed by Nils: should be 0x80 or 128, but not "80 bytes".
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1076 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 16:29:13 +00:00
aj
c6efa1e9a1
create card->chopsize, init it with SC_APDU_CHOP_SIZE,
...
allow cards to change that value, and add code to
starcos_init to set chopsize to 80.
chopsize is used with read_binary and friends to chop
the data into small requests, read/write them, and reassemble.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1074 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-27 19:08:23 +00:00
aj
1c121b1430
Only look at first byte for end of data detection.
...
That way not only 0,0 and ff,ff is recognized
and 0,ff,ff,ff... will not cause trouble.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1073 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-27 15:05:03 +00:00
aj
07668a30ff
Nils Larsch:
...
here is a patch to remove a bug in card-starcos.c and two warnings:
card-starcos.c: fix apdu.le value
pkcs15-pin.c: remove unused labels => avoid compiler warnings
pkcs11-tool.c : remove memory leak (a RSA_free() was missing)
and simplify code (+ remove warning).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1072 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-25 10:03:09 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
okir
f44247070f
- added Cryptoflex 32k e-gate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@736 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-03 12:27:29 +00:00
okir
021ea9c0c3
- added length value to sc_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@734 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:42:03 +00:00
okir
3f16e04a8f
- sc_pkcs15_read_certificate now uses sc_pkcs15_read_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@733 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:39:36 +00:00
okir
d3c6bfd10f
sc_pkcs15_read{,_cached}_file now honor the index/length parameters from Path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@732 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:38:50 +00:00
okir
fcfbeb1845
- When decoding Path, decode "length" value as well (if present)
...
- a few int -> size_t changes to suppress gcc3 warnings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@731 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:38:09 +00:00
okir
51d8983b99
- Fix from Stef Hoeben to get the eid-cache stuff working on win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@723 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-27 14:27:53 +00:00
aet
4e61af2b57
Duh, revert previous patch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@718 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-18 09:05:06 +00:00
aet
df6dd39e2b
Add usage of __FILE__, __LINE__ and __FUNCTION__ macros
...
for non-GCC compilers too, where available.
(Based on patch by Stef Hoeben)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@716 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-17 20:23:35 +00:00
fabled
3837299e1e
Updated win32 port for recent updates.
...
Noticed by Stef Hoeben.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@708 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-11 08:22:11 +00:00
okir
78d2160f46
- added SC_ALGORITHM_NEED_USAGE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@707 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 14:14:42 +00:00
okir
a10fe0876a
- set SC_ALGORITHM_NEED_USAGE flag in algo info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@705 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 14:14:05 +00:00
okir
45892e686f
- detect when a GPK card is already personalized
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@704 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 13:50:33 +00:00
okir
b3852705d4
- make sc_get_driver static
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@702 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 13:04:00 +00:00
okir
ac43fede31
- GemSafe cards have a directory 0200 with an AIDF file in it, and
...
will return a 0x6F file info block when selecting this DF. Try
to parse it, as far as we understand it.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@701 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 12:10:55 +00:00
aet
148f4051f6
Various build fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@697 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-19 16:51:37 +00:00
aet
1d2c9e4c48
Cleanups for initial win32 port, untested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@696 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-19 14:04:52 +00:00
okir
fe27ed651e
- fixed deciphering (apdu.le was not set)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@692 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-02 10:49:07 +00:00
jey
f0d73785fb
- Also removed the ref variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@689 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:34:29 +00:00
jey
2569daf431
- Removed the last goof I made
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@688 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:34:08 +00:00
jey
d38851b9e4
- Fixed prototype for sc_pkcs15_card_new()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@687 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:22:48 +00:00
jey
4c36cb9641
- Used cert->key instead of key in parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@686 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:22:13 +00:00
jey
25931fe3e5
- Set bit 8 in key reference, if PIN_FLAG_LOCAL is set
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@685 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:20:30 +00:00
jey
00a2a0defd
- Brown paper-bag fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@684 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:16:42 +00:00
jey
0810ccf4af
- Removed error list
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@683 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:15:58 +00:00
jey
df4b9620e3
- Added card-mcrd.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@682 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:14:37 +00:00
jey
8bbcb933a4
- Added driver for MICARDO 2 cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@681 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:13:28 +00:00
jey
82fabceeae
- Added some new error codes to sc_iso7816_check_sw()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@680 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:06:59 +00:00
jey
21a82c17b8
- Renamed read_tag to sc_asn1_read_tag and made it a
...
non-static function
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@679 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:02:55 +00:00
okir
a14aaedef7
- Merged GPK patches from Steve Henson (signing fixes)
...
and Joe Phillips (GPK16K ATR matching code).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@678 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-20 08:59:58 +00:00
okir
97119f75e8
- GPK16K: wildcard RSA exponent is 0 not -1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@676 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-20 08:28:47 +00:00
okir
b18d893764
- certificate version is optional (v1)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@673 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-06 13:51:08 +00:00
jey
e0aa31a913
- Added ATR for GPK16000
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@672 c6295689-39f2-0310-b995-f0e70906c6a9
2002-07-28 18:22:37 +00:00
fabled
e4540f826a
- Win32 build fixes. Should work now.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@669 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-20 12:14:18 +00:00
okir
eeac475aa3
- error message fixup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@665 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-18 15:17:15 +00:00
okir
0573ae7d30
- fixed compute_signature for gpk8000
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@664 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-18 12:20:26 +00:00
okir
d26637455e
- added cardctl SC_CARDCTL_GPK_VARIANT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@662 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 15:24:21 +00:00
okir
aad6a7fe1d
- more eToken fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@658 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 10:55:58 +00:00
okir
10c5a041be
- RSA padding header for sha1 was still broken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@657 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 10:54:10 +00:00
jey
5d70c9090a
- Renamed sc_transceive_t0 to sc_transceive to avoid confusion =)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@656 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-16 21:19:37 +00:00
jey
32ec1978d4
- sc_pkcs15_compute_signature() and sc_pkcs15_decipher() now select
...
the whole path specified in a private key object
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@655 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-16 21:18:05 +00:00
fabled
7635468ed9
- Initial support for win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@654 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:52:56 +00:00
jey
523b680f32
- Fix apdu->le in sc_compute_signature()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@653 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:29:19 +00:00
jey
0694da56e1
- Reverted Olaf's patch in sc_compute_signature(). It breaks
...
government issued (e.g. FINEID) cards.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@652 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:18:28 +00:00
jey
a94d1b26fb
- Fix for last commit. It now compiles, at least.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@650 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 11:43:22 +00:00
jey
ed19095c71
- Preliminary fix for Case 4 APDU sending on Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@649 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 11:33:20 +00:00
okir
657bfa74e0
- added comment/question
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@648 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-13 11:20:11 +00:00
okir
85aeed256f
- changed APDU base from 3 to 4 on sign/decipher
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@647 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-13 11:18:31 +00:00
okir
1a5c6d7faa
- support for security environment create/restore/set
...
- support for signature computation (non functional yet)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@643 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:14:25 +00:00
okir
6f611fdb9f
- added support for PUT_SECI
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@642 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:13:48 +00:00
okir
e877f1e27e
- experimental: support for cards such as eToken that store keys in "objects" below the DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@641 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:13:23 +00:00
okir
04499ddb48
- properly identify supported algorithms
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@639 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-07 20:28:11 +00:00
okir
8535127ba8
- started to implement eToken key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@635 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-06 09:17:52 +00:00
okir
c6a5018a4f
- pin verification works now
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@624 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 19:42:17 +00:00
okir
03559c47d0
- added eToken specific cardctls
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@621 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 08:50:39 +00:00
okir
f973a3d942
- fixed some minor glitches (potential buffer overflow in read_dir;
...
missing SW check)
- added card_ctl for put_data_fci
- added some debug output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@620 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 08:50:17 +00:00
aet
2846d6ce3b
Preliminary MacOS X build support, untested so far.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@617 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-03 15:18:47 +00:00
jey
28b4a1b9f8
- iso7816_set_security_env now has correct values for P1
...
- Improved detection of SetCOS cards
- Changed the default CLA byte in card-setcos.c to 0x80
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@616 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-03 15:05:58 +00:00
okir
f49e681c92
- do our own chunking in read/write binary
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@614 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-02 21:39:07 +00:00
aet
2b433941dd
Build fix for previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@610 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-27 06:41:21 +00:00
jey
7c94d7d8d3
- Several patches to fix behaviour on 64-bit architectures (by
...
Jochen Friedrich)
- Fixed one bug in sc_copy_asn1_entry(), one in
sc_pkcs15init_add_object() and one in pkcs15-crypt
(patches also by Jochen)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@609 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-26 12:31:23 +00:00
aet
25cf9756ed
Minor GCC warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@606 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-20 09:19:41 +00:00
aet
e681dc4165
Warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@602 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-13 12:23:21 +00:00
jey
d9a788350d
- Applied a patch by Werner Koch that brings the TCOS driver
...
up-to-speed
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@601 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-09 10:34:18 +00:00
jey
03d58e7956
- Applied a patch by Matthias Bruestle <m@mbsks.franken.de>:
...
- Changed the case of GET RESPONSE in card-default.c to 2 short
- Added ATRs to Flex, GPK and TCOS drivers
- Changed value of maximum Lc in card.c to be 255
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@600 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-09 10:22:42 +00:00
okir
7f6453d715
- sc_pkcs15_decipher now takes a flags argument, so we know when to
...
strip off any pkcs#1 padding.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@585 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-23 08:17:06 +00:00
jey
f618b754a2
- Applied a patch to card-etoken.c that gives
...
ACL support; patch by Markus Frield
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@584 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 23:01:57 +00:00
okir
b9b0a1f2ef
- fixed pkcs1 padding for rsa-md5 signatures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@582 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 18:03:50 +00:00
aet
f7fcaee513
Extract certificate crlDistributionPoints and store it in sc_pkcs15_cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@580 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-21 18:54:10 +00:00
jey
9c39ca7e61
- Added 'force_card_driver' option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@579 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 20:07:56 +00:00
jey
728928401a
- Some fixes to the MioCOS driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@576 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 17:02:49 +00:00
aet
3dccd63989
- C++ support. Compiles with gcc/g++ for Linux, otherwise
...
completely untested.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@574 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 14:23:31 +00:00
jey
546f920fc1
- PKCS #15 objects and DFs are now stored with linked lists
...
in struct sc_pkcs15_card; this way we can have 'floating'
objects that don't belong in any DF, for e.g. generating
public key objects from certificates
- Removed some unused function prototypes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@572 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 09:22:44 +00:00
jey
9a6b3452a2
- sc_pkcs15_find_prkey_by_id and sc_pkcs15_find_cert_by_id now
...
return all private keys and certificates instead of only RSA keys
and X.509 certificates
- Removed some obsolete PKCS #15 initialization code
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@571 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 15:01:02 +00:00
jey
b4af9ab16e
- Added a missing SC_ASN1_CTX flag to DSA key ASN.1 entries
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@570 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 14:59:12 +00:00
okir
7cd061c91a
- added a bunch of prototypes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@567 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:59:35 +00:00
okir
3cdde95848
- sc_pkcs15_find_pubkey_by_id
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@566 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:59:13 +00:00
okir
c9aba0d1ca
- fixed bug with DSA pubkey de/encoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@565 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:58:48 +00:00
okir
939efa48a0
- small fix for reading the private key file
...
- added sc_pkcs15_{erase,free}_prkey
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@564 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:58:11 +00:00
okir
94cb1e0219
- encryptedContent didn't have proper ASN.1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@560 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:11:18 +00:00
okir
6d8fe463a4
- properly encode/decode DSA public keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@559 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:10:54 +00:00
okir
2b9ae3613b
- fix algorithm_id decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@558 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:10:33 +00:00
okir
2b65c73cfb
- missing prototypes for {de,en}code_prkey
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@555 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:45:15 +00:00
okir
f23480d491
- return objects when searching for a generic type (e.g. all PRKEY objects)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@554 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:44:54 +00:00
okir
9c502889d4
- correctly initialize PKCDF2 params
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@553 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:44:25 +00:00
okir
736d250c34
- fixes for PrKDF encoding/decoding for indirect-protected
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@552 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:44:06 +00:00
okir
79d0902155
- fix for decoding CHOICE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@551 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:43:12 +00:00
okir
b7a22e2df6
- new error code SC_ERROR_INCOMPATIBLE_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@550 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:42:54 +00:00
okir
fcbbb6c3e5
- eliminated RSA specific code to support generic pubkeys instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@548 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 18:33:27 +00:00
okir
95a7fafe31
- use SC_ASN1_ALGORITHM_ID when decoding x509 certs
...
- handle certificates with non-RSA keys as well
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@547 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 18:32:06 +00:00
okir
5d8b1000ca
- eToken patches from Markus Friedl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@546 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 13:36:35 +00:00
okir
f87bbcee4c
- some fixes to the ASN.1 we generate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@545 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 13:34:40 +00:00
aet
0e24215b1f
Minor warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@544 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 13:13:44 +00:00
okir
a5dd0dbb99
- support NULL tag for encoding/decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@542 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 12:19:57 +00:00
okir
228b6645c8
- correctly encode AlgorithmIdentifier w/o params as OID+NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@541 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 12:19:43 +00:00
okir
1424c83854
- minor bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@540 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 10:33:26 +00:00
okir
b05cc1e557
- error out for non-native keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@539 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:06:55 +00:00
okir
19132bea59
- new error code SC_ERROR_EXTRACTABLE_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@538 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:06:42 +00:00
okir
8ef6b71bb6
- added new files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@537 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:01:54 +00:00
okir
56191b8d20
- functions for file content protection
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@536 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:01:49 +00:00
okir
0a458d66b9
- new file path type SC_PATH_TYPE_PATH_PROT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@535 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:01:11 +00:00
okir
af262521e7
- new generic function sc_pkcs15_read_file
...
- structs and functions for data wrap/unwrap
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@534 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:00:52 +00:00
okir
29c7639bbd
- new generic function sc_pkcs15_read_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@533 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:00:16 +00:00
okir
996f5b7f2e
- renamed sc_pkcs15_parse_pubkey_rsa -> sc_pkcs15_decode_pubkey_rsa
...
- added sc_pkcs15_decode_pubkey_dsa
- sc_pkcs15_read_pubkey now uses sc_pkcs15_read_file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@532 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:59:52 +00:00
okir
d248263d36
- initial support for non-native keys
...
- implemented generic functions sc_pkcs15_{encode,decode,read}_prkey
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@531 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:58:57 +00:00
okir
b63cfcf70d
- renamed sc_pkcs15_parse_pubkey_rsa -> sc_pkcs15_decode_pubkey_rsa
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@530 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:57:29 +00:00
okir
b4d224b5a1
- added SC_ALGORITHM_{MD5,SHA1,PBKDF2,PBES2} and corresponding
...
AlgorithmIdentifier parameter structs
- added params pointer to struct sc_algorithm_id
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@529 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:56:58 +00:00
okir
5eb1921a64
- new error code SC_ERROR_PASSPHRASE_REQUIRED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@528 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:55:39 +00:00
okir
77a2db5f5e
- Moved ASN.1 handling of AlgorithmIdentifier to separate file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@527 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:55:06 +00:00
okir
f49cb6b0f1
- implemented encoding of OBJECT IDENTIFIER
...
- enhanced support for encoding/decoding of CHOICE
- moved encoding/decoding of AlgorithmIdentifier to separate file,
and added encoding/decoding of algorithm parameters
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@526 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:54:36 +00:00
okir
596220e821
- pkcs15-init does not require openssl anymore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@523 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-15 13:42:10 +00:00
jey
43ecd78941
- Fixed ACL handling in MioCOS driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@521 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-14 12:43:47 +00:00
okir
b6119fc92e
- avoid unchecked memcpy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@515 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:13:09 +00:00
okir
34a3912fdf
- in set_security_env, select the PK file prior to read_record
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@514 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:12:41 +00:00
jey
3ec97d9815
- Added a missing file from a previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@512 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 23:10:47 +00:00
jey
87e27b00a4
- Changed an error code as per Andreas' suggestion
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@511 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 23:00:38 +00:00
jey
52c433a7ae
- Added support for Aladdin eToken PRO; patch by
...
Andreas Jellinghaus <aj@dungeon.inka.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@510 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 22:25:44 +00:00
okir
2d47103692
- implemented sc_pkcs15_find_so_pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@496 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:45:28 +00:00
okir
01e506e5ed
- When the application selected the EF, then the container DF, all
...
PIN info would be lost.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@495 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:45:13 +00:00
okir
517395b2eb
- pin flags were not encoded correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@488 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:23:17 +00:00
aet
2936e46e12
Warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@484 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-07 10:21:00 +00:00
jey
5259182d3e
- Changed CLA byte to 0xA0 in miocos_delete_file()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@483 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 15:04:14 +00:00
jey
6e0b7dea2c
- Divided errors into different groups, added new ones
...
and renamed some
- Moved sc_strerror() to errors.c
- Added a 'sensitive' flag to struct sc_apdu
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@479 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 12:02:28 +00:00
aet
f781a14ae4
Fix some typos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@478 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 08:21:40 +00:00
aet
6efa88796f
Add errors.h and types.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@477 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 08:02:58 +00:00
aet
11c937991b
Change calling convention for sc_module_close()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@474 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:10:17 +00:00
jey
0875849c61
- Started to split opensc.h into smaller parts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@472 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:06:33 +00:00
jey
22636c2df9
- Added SC_ERROR_FILE_ALREADY_EXISTS
...
- Changed call convention for reader finish()
- CT-API driver now frees its resources correctly
- Added year 2002 to some of the copyright statements
- sc_pkcs15_decipher() and sc_pkcs15_compute_signature()
now select only the parent DF of the private key file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@463 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:46:44 +00:00
aet
076a26bbac
Rework the header structure
...
Currently fails to compile, unless you symlink
all the necessary headers to src/include/opensc
by yourself.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@459 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 13:48:00 +00:00
aet
d81d10ba90
Upgrade sources to use new headers, part #1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@458 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:44:51 +00:00
aet
97faef3c6f
Obsolete.
...
opensc-emv.h, opensc-pkcs15.h --> emv.h, pkcs15.h
sc-asn1.h, sc-internal.h, sc-log.h --> asn1.h, internal.h, log.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@457 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:37:29 +00:00
aet
fbf86e6728
Install headers to ${prefix}/include/opensc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@456 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:25:14 +00:00
jey
e172e6678d
- Cleaned up MioCOS driver and added PIN code creation
...
- Added an error message in case ODF parsing fails
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@449 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:40:40 +00:00
jey
2b49129311
- DER decoder now treats 0xFF tags the same way as 0x00 tags
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@448 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:38:09 +00:00
aet
1ef47d245b
Workaround for a compiler problem (Sun WorkShop 6 update 2 C 5.3 Patch 111679-05 2002/02/07)
...
Still lots of bogus warnings, but at least everything compiles
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@444 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 15:02:08 +00:00
aet
6f197a035d
Fix minor compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@441 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 12:44:57 +00:00
aet
7d055a17a3
Update TODO and Changelog
...
'make dist' fixes
Add missing README for OpenSC-Signer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@440 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 11:14:07 +00:00
jey
d232bf29dd
- ctapi_release() now calls CT_close(), as it should
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@437 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 09:20:44 +00:00
jey
0fe85e6563
- Added typedefs for the most common structs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@436 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 09:20:19 +00:00
jey
28fc4bc0cd
- fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@435 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 14:16:19 +00:00
aet
fef2ac364c
Minor warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@433 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 12:59:53 +00:00
okir
0683b3463f
- added two new error codes for pkcs15init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@426 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 11:51:07 +00:00
jey
369889ace5
- fixed a small bug regarding prop_attr in the SetCOS driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@425 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 21:26:42 +00:00
okir
4c48335672
- sc_pkcs15_get_objects() now lets you search for generic types
...
(e.g. SC_PKCS15_TYPE_PRKEY) too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@414 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 12:58:09 +00:00
okir
7a87a5c156
- added SC_AC_SYMBOLIC for pkcs15init support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@413 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 12:57:17 +00:00
aet
5a824f3fab
Add maintainer-clean patch by Andreas Jellinghaus <aj@dungeon.inka.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@411 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 09:38:06 +00:00
aet
2fbf01e87d
Remove #include "config.h", sc-internal.h already does that
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@409 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-31 16:32:07 +00:00
aet
b308cabd5f
- Upgrade scldap to use scconf_parse_entries();
...
- Fix compiler warnings for ct-api driver, untested.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@407 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-31 15:26:25 +00:00
jey
7ddcb3d692
- sec_attr and prop_attr are now dynamically allocated in
...
struct sc_file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@404 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-28 14:13:36 +00:00
aet
88530c8dba
- Added sanity check for sc_establish_context.
...
If no readers are found, fail and return
SC_ERROR_NO_READERS_FOUND.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@403 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-28 13:34:51 +00:00
aet
e589a94aac
Add missing @LIBDL@ to libopensc linking
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@402 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-28 13:10:53 +00:00
aet
8f6ffee6a9
- Minor cleanups to build process
...
- Add header check for dlfcn.h
- Add internal functions sc_module_{open,close,get_address}
- Use environ instead __environ for scldap_search, should be
more portable.
- Fix compiler warnings noticed by Tru64 / AIX cc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@401 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-27 13:13:54 +00:00
aet
19f7f1073a
Rename scconf_init to scconf_new
...
Rename scconf_deinit to scconf_free
Add initial comments to scldap.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@398 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-26 20:56:13 +00:00
jey
59d4e9b7be
- Added support for CT-API
...
- Improved config file loading
- Implemented ATR parsing
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@396 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-26 11:38:40 +00:00
aet
b2d2bc77ae
Rename scconf_find_value to scconf_find_list
...
Rename scconf_find_value_first to scconf_get_str
Add functions scconf_get_int and scconf_get_bool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@395 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 22:39:22 +00:00
aet
c69d1b59df
Always allocate scconf_list for block structure
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@394 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 21:23:32 +00:00
aet
aa5ec6bae1
Add sanity checks and more comments
...
Add new parameter for scconf_find_blocks
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@393 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 20:10:44 +00:00
jey
c730a4dab7
- fixed some memory leaks in sc_establish_context
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@388 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 22:54:41 +00:00
jey
cd4e3650a4
- Moved functions from sc.c to ctx.c
...
- Card and reader drivers are now configurable
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@387 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 22:47:35 +00:00
aet
7d27225e0c
Oops, scconf_parse was called twice. Fixed.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@382 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 17:09:47 +00:00
aet
21aae9c4d0
- Fix a potential segfault for the new sc_establish_context
...
- Keep the variable names in opensc.conf the same as they
are in code structs.
Always try to parse app default { } first, then upgrade
the settings with the application specific configuration block.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@381 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 16:57:39 +00:00
aet
0cad904c86
Move opensc/src/scldap/etc to opensc/etc
...
SCLDAP_CONFIG -> SCLDAP_CONF_PATH
Upgrade the rest of the programs to use new core API
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@380 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 15:41:33 +00:00
jey
f21926af00
- Started to add configuration file support to
...
libopensc
- Added typedefs for some basic structs (e.g.
struct sc_card --> sc_card_t)
- Added a second argument to sc_establish_context()
to identify the calling application
- Renamed sc_destroy_context() to sc_release_context()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@378 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 14:12:38 +00:00
jey
ffe0282a93
- fixed a typo in one ATR string
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@377 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 14:06:40 +00:00
aet
6e3a09fa7b
Remove bogus "len = len;" statement from pkcs15-cert
...
Other minor cleanups
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@368 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-21 23:45:03 +00:00
okir
5006b0d151
- added some #include string.h statements for RH 7.2
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@357 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-21 09:36:38 +00:00
okir
8f07d6706d
- now extracting issuer from certificate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@346 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 13:08:09 +00:00
jey
3fa7a056f1
- Fixed a couple of memory leaks
...
- Fixed a bug in decoding EF(TokenInfo)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@344 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-19 10:04:11 +00:00
okir
7d6cf8fa81
- extract certificate issuer and store it in sc_pkcs15_cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@338 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 15:19:34 +00:00
jey
a3b521a704
- started adding support for DSA private keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@337 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 12:48:06 +00:00
jey
67ffdfa213
- Added support for big serial numbers in certificates
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@332 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 10:10:33 +00:00
okir
41cd4c4d2c
- implemented sc_pkcs15_free_pubkey
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@330 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 10:01:25 +00:00
okir
7ec8498962
- removed SC_CARDCTL_GET_PK_ALGORITHMS card_ctl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@329 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 09:43:31 +00:00
okir
ccb6bb1b1c
- implemented decipher() operation
...
- removed SC_CARDCTL_GET_PK_ALGORITHMS card_ctl
- minor signing fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@328 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 09:43:10 +00:00
okir
6ca0cb108c
- moved sc_decipher implementation to iso7816.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@326 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 09:42:07 +00:00
aet
3161964a4b
Add missing static for parse_tokeninfo();
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@322 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-14 11:50:48 +00:00
okir
bf5f0f6fe1
- fixed a typo that caused bad auth_id's
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@321 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-14 11:50:09 +00:00
okir
f3b7c99e1a
- if the offset shift is 2 in update binary et al, make sure the
...
application provided offset is a multiple of 4.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@319 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 20:25:37 +00:00
okir
ca2f725f05
- make sure SC_APDU_CHOP_SIZE is a multiple of 4 (otherwise, update binary
...
et al of large files will fail on the GPK)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@318 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 20:24:31 +00:00
jey
23e956cf9b
- Fixed PKCS #15 structure generation on Cryptoflex cards
...
and implemented a default profile
- Cryptoflex now reports its supported PK algorithms
correctly
- Various pkcs15-init fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@295 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 13:00:57 +00:00
okir
cf795aa7b8
- exporting sc_update_dir to applications
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@292 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 14:12:46 +00:00
okir
f84f5e5825
- we cache just the DF portion of the currently selected file path,
...
excluding the EF's FID
- when sending the hash to the card (as part of compute_signature),
revert the sequence of hashed bytes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@291 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 12:41:18 +00:00
jey
52dac164ba
*** empty log message ***
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@289 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 11:40:30 +00:00
jey
ae306cf06f
- GPK now reports it's PK abilities correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@286 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-10 11:48:57 +00:00
aet
2a4afb8319
Include stdlib.h where needed
...
Warning fixes for various OS's
mcheck.h is not portable, so remove it
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@285 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-09 17:54:16 +00:00
jey
7d2171c1d2
- Improved support for MioCOS cards
...
- Removed PKCS #15 creation from cryptoflex-tool
- Added PIN pad character option to profile.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@282 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-09 15:11:46 +00:00
okir
c94fb9a1d5
- added sc_pkcs15_read_pubkey to retrieve public key from a public key file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@281 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-08 19:47:26 +00:00
okir
4fcf38e98e
- specify sc_algorithm_info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@280 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-08 19:46:33 +00:00
jey
3416461c4b
- Added X.509 algorithm id decoding and encoding to asn1.c
...
- Implemented a generic ATR matching helper function
- Made signing much smarter (should even work now)
- Added info about supported crypto algorithms to struct sc_card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@276 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-08 05:59:57 +00:00
okir
364328212b
- sc_pkcs15_parse_df now understands PuKDFs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@271 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-07 12:33:42 +00:00
okir
4f0ce4228a
- in sc_select_file, remember the file path in the returned struct sc_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@266 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-06 13:22:08 +00:00
okir
17316de130
- another buffer overflow
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@265 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-06 13:21:22 +00:00
okir
8c47813227
- Added {read,write,update}_binary handlers that shift the offset
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@264 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-06 12:33:33 +00:00
okir
f39f2244bb
- SECURITY: Fixed buffer overflow
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@263 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-06 12:32:42 +00:00
okir
9f43b3b0f3
- small typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@259 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-05 09:30:01 +00:00
jey
6b07ff64f6
- Reworked PKCS #15 structure a bit (MANY THINGS
...
WILL BREAK)
- Added support for public key DFs (not tested yet)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@251 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-03 00:32:28 +00:00
jey
4ac49d6e88
- intermediary checkin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@249 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-01 11:52:55 +00:00
okir
44fbfd7c1a
- Implemented GET_PK_ALGORITHMS card_ctl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@248 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-27 22:15:48 +00:00
okir
321e993d9a
- Fixed typo on _CTL_PREFIX
...
- Added SC_CARDCTL_GET_PK_ALGORITHMS
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@247 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-27 22:15:12 +00:00
okir
c58b72fc54
- implemented change/unblock pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@244 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-26 16:34:29 +00:00
jey
4fa7283ae2
- added some missing files
...
- renamed card-setec.c to card-setcos.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@243 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-26 11:27:49 +00:00
jey
04dfc47d92
- added a driver for MioCOS cards by Miotec
...
- implemented EF(DIR) updating
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@242 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-26 11:23:25 +00:00
okir
570af2be56
- fixed sc_card_driver initalization
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@241 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 22:42:28 +00:00
okir
4a448f43cf
- first stab at signatures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@238 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 18:48:34 +00:00
okir
680b9928c5
- avoid integer underflow for outlen < 11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@237 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 18:47:42 +00:00
jey
325cd8006d
- small bug fixed in encode_bit_string; patch by Olaf Kirch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@233 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 14:13:18 +00:00
aet
8d222efb57
HAVE_SSL cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@227 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 11:13:50 +00:00
aet
24c6f4176e
winscard.h / CFLAGS_PCSC cleanups
...
Merge OpenSSL configure changes with SCIDI
Build process changes for future CT-API support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@225 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 11:05:25 +00:00
aet
e605e6fa8b
Fix segfault for pcsc_finish
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@224 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 21:14:17 +00:00
aet
412292eab1
Add missing SC_STATUS_TIMEOUT that was removed from sc-internal.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@223 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 20:16:07 +00:00
jey
3fa1b27736
- implemented reader abstraction layer; now it's easier to
...
add support for e.g. CT-API
- renamed ops_data field to drv_data in struct sc_card
- copied coding style document from Linux kernel
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@221 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 19:32:14 +00:00
aet
1f4e5c4b6d
Minor changes to get rid of compiler warnings for various OS's
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@220 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 16:50:29 +00:00
jey
2adde8d501
- implemented RSA and DSA key downloading to GPK cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@219 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-23 13:38:01 +00:00
jey
b5736099a2
- added some missing files from last commits, whoops
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@217 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-22 07:18:43 +00:00
jey
d2a36c88fd
- added sc_update_binary(), sc_append_binary() and
...
sc_write_binary() with their corresponding ISO 7816-4
reference functions
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@216 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-21 19:23:21 +00:00
jey
e78dc96440
- added ATR for RSA SecurID 3100
...
- exported pkcs15_encode_* functions
- minor modification to sc_file_add_acl_entry()
- boosted up opensc-explorer
- added error(), warn() and fatal()
- implemented a generic PKCS #15 structure generation tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@215 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-21 18:53:23 +00:00
aet
3adef373bf
Fix memory leak for sc_establish_context
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@214 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-20 18:42:16 +00:00
jey
61fc1f9327
- all instances struct sc_file should now be
...
dynamically allocated with sc_file_new() and released
with sc_file_free()
- improved ACL's
- moved struct sc_card_error to opensc.h
- moved EF(DIR) parsing and encoding to dir.c
(encoding is not working yet)
- removed hst-test.c and filetest.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@213 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-20 09:56:47 +00:00
aet
092e87969d
Bugfix for sc_destroy_context, pcsc_ctx was never released
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@212 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-17 21:55:57 +00:00
jey
262e5c2083
- added error reporting for several new SWs
...
- added check_sw function to sc_card_operations
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@211 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-15 23:17:58 +00:00
jey
709727d469
- added partial support for TCOS 2.0 cards
...
- default card driver now tries to do a GET RESPONSE
instead of SELECT FILE to detect the correct
CLA byte
- moved security attribute parsing from iso7816.c to card-setec.c
- added some more sanity checking to sc_check_apdu
- added 'debug' command line option to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@210 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-11 15:55:34 +00:00
aet
6db645e46c
AIX cc fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@209 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-11 11:01:27 +00:00
aet
d8c9a43566
Portability fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@208 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-11 10:49:36 +00:00
jey
b26554a957
- added a license notice to card-gpk.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@207 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-10 18:09:20 +00:00
jey
b4063302bf
- added partial support for GPK 4000
...
- made line parsing in opensc-explorer saner
- moved change_reference_data and reset_retry_counter to
iso7816.c, where they belong
- added partial libreadline support to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@206 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-10 18:04:03 +00:00
jey
1fb23e7623
- added support for T=1 protocol
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@201 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-28 21:04:53 +00:00
aet
a2d2403684
Add opensc-config
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@197 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-26 21:16:56 +00:00
jey
55641e5961
- added opensc-config script
...
- added ATR string for Cryptoflex 8k
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@196 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-26 16:03:13 +00:00
aet
d36e9ba93c
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@195 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-26 12:16:13 +00:00
jey
17332ea10e
- last minute changes before the new release
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@194 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 18:37:12 +00:00
jey
fd9c25eeed
- added README.Cryptoflex
...
- modified ChangeLog
- _really_ bumped up the version number this time
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@192 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 16:24:24 +00:00
jey
c1cac5f311
- bumped up version number in preparation of the new release
...
- unified PKCS #15 DF decoding
- added PKCS #15 file caching
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@191 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 16:02:54 +00:00
aet
c8313fb07c
Fix compiler warnings, for digital cc this time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@187 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-22 16:26:19 +00:00
jey
fee632833a
- added KEY verification to Cryptoflex driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@183 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 15:11:35 +00:00
jey
a016a59259
- added PKCS #15 structure generation to cryptoflex-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@182 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 12:49:00 +00:00
aet
6d533a1c3d
Compiler warning fixups for various compilers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@180 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 10:56:30 +00:00
aet
45a37df2f6
Add *.u and cryptoflex-tool to .cvsignore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@179 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 10:56:03 +00:00
jey
f1582007f6
- improved file selection on Cryptoflex cards
...
- fixed an incompatability in PKCS #11 module
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@178 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 09:05:22 +00:00
jey
d9792242cc
- fixed a bug with file permissions in flex_create_file()
...
- added RSA signature generation with Cryptoflex cards
- improved security environment handling
- implemented cryptoflex-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@177 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-20 21:20:09 +00:00
jey
e7c65bf669
- PKCS #15 generation is now in a semi-working state
...
- started coding crypto support for Cryptoflexes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@175 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 23:47:03 +00:00
aet
a8a31771f4
int error -> int sc_error, since it conflicts with error() and
...
results to compiler error with various compilers.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@172 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 12:04:14 +00:00
jey
54e5d23e93
- improved PKCS #15 generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@170 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 11:44:27 +00:00
jey
20adb4b39c
- continued to improve PKCS #15 generation
...
- fixed a few problems in sc_set_security_env
- started to implement Better (tm) object handling for
PKCS #15 objects
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@167 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-16 23:59:18 +00:00
jey
4e2192b0f4
- better ISO 7816-8 compatibility with various cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@162 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-16 20:20:40 +00:00
aet
fec2138523
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@161 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-15 18:54:53 +00:00
jey
452b9d4193
- pretty much finished the DER encoder
...
- added delete and create file support for 'flex cards
- PKCS #15 DF's are now stored more flexibly; this makes
adding new types of DF's (such as PuKDF's) easier
- added 'get' and 'put' commands to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@160 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-13 23:56:13 +00:00
jey
5c993e1136
- added PIN verification, file creation and file deletion to
...
opensc-explorer
- documented the core API a bit using doxygen
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@158 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 23:02:48 +00:00
aet
b75b88a8b8
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@157 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 13:49:54 +00:00
jey
9dc7054919
- added preliminary ASN.1 encoding support
...
- modified ASN.1 decoding to make it easier to
port decoder structures to the encoder
- fixed a recently introduced bug in card driver handling
- opensc-explorer will now allow only DF's to be cd'd into
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@156 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 12:33:56 +00:00
jey
269df3a6da
- created opensc-explorer tool
...
- increased support for CryptoFlex cards
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@152 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-09 01:03:10 +00:00
jey
7ff4c4544c
- added preliminary CryptoFlex 16k support
...
- added short names to card drivers
- moved various ISO 7816-9 functions to their correct places
- added write binary support
- renamed opensc-crypt to pkcs15-crypt
- split a part opensc-tool to pkcs15-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@150 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-08 13:56:50 +00:00
jey
1a3e530f01
- finished removing sc- prefix from the .c files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@149 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-07 18:32:13 +00:00
jey
9197babe53
- renamed sc_asn1_parse to sc_asn1_decode
...
- added capabilities and flags fields to struct sc_card
- added a mutex to sc_context for future use
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@148 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-07 18:23:34 +00:00
aet
b9da215428
Add CFLAGS_PCSC, CFLAGS_OPENSC and LIBOPENSC, use them
...
instead of hardcoding paths into ../libopensc.la,
-I../libopensc, etc.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@139 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-06 19:40:12 +00:00
aet
3bcb086df4
Fix typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@136 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-05 19:05:29 +00:00
aet
a327209319
SCardGetStatusChange/rgReaderStates changes for compatibility
...
with older and/or modified pcsc-lite releases.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@135 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-05 19:01:55 +00:00
aet
fb4321ce0f
More size_t fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@128 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-01 19:56:07 +00:00
aet
a95ed6fc75
Use \33 instead of \e.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@127 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-01 19:54:22 +00:00
jey
68928ae520
- changed \\e back to \e in sc_log.c
...
- changed function prototypes in sc-asn1.c (int --> size_t)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@126 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-01 18:25:11 +00:00
jey
5cdd262385
- some fixes to the PKCS #11 module
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@125 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-01 17:25:10 +00:00
aet
607271df53
Merges with SCIDI to help integrating build process with it
...
Remove some gcc specific flags from Makefile.am
Rename some header defines
size_t vs. int fixups
opensc.h: Define inline as null for other compilers than gcc, for now
Port pam_pkcs15 to compile for Solaris and HP-UX, untested
Fix compiler warnings
OpenSC now compiles cleanly for Tru64, AIX and HP-UX.
The only problem is the tools using getopt_long() (GNU extension),
to be fixed later..
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@120 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-30 21:17:34 +00:00
jey
3e96a893ec
- ported certificate reading to new ASN.1 code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@119 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 19:03:46 +00:00
jey
da88fb7d62
- renamed LIBPCSCLITE to LIBPCSC
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@117 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 18:14:08 +00:00
jey
5201a83b21
- another portability fix
...
- renamed sc-emv.c to sc-card-emv.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@116 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 12:44:11 +00:00
jey
13b1325aef
- fixed a portability problem
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@115 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 12:39:41 +00:00
jey
daf877fadd
- fixed resplen values in sc_decipher and sc_compute_signature
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@112 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 11:57:34 +00:00
jey
ad2e34cb6c
- added preliminary support for EMV cards
...
- changed a few function prototypes
- implemented access control lists to files
- added sc_read_record() function
- updated the NEWS file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@111 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 02:07:32 +00:00
jey
c37418d3b0
- sc_pkcs15_change_pin() prototype changed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@109 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-28 14:23:17 +00:00
jey
695ad01b28
- added preliminary EMV support
...
- made a few bug fixes relating to select_file operation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@107 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-27 17:25:10 +00:00
jey
2b99f2df14
- added default driver for unidentified cards
...
- added select_file operation in Multiflex driver
- added 'list-drivers' command to opensc-tool
- moved stuff from opensc.h to sc-internal.h
- improved locking behaviour
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@106 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-25 20:45:48 +00:00
jey
9905a8dd8e
- changed call convention of sc_select_file()
...
- begun to add support for Multiflex cards
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@100 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 23:51:12 +00:00
aet
3775b18c81
Autotools update. Add bunch of stuff to configure.in to
...
make building of libopensc more portable to various
operating systems.
Requires autoconf 2.52 and automake 1.5.
Add all necessary files except Makefile.in, so you still
need to run ./bootstrap though. There's not much point
adding config.guess and friends without them, maybe later.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@94 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 22:27:20 +00:00
aet
4fdbb11a32
Add .cvsignore skeleton
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@91 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 22:11:43 +00:00
jey
c344e28a92
- added card abstraction layer support
...
- pretty much finished migrating to new ASN.1 code
- changed call semantics for sc_select_file()
- moved functions around
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@89 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 20:43:09 +00:00
jey
0bba170d91
- LINT fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@88 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 13:38:25 +00:00
jey
c17ff3ebdf
- continued improving ASN.1 decoding
...
- improved debug levels
- added some PC/SC Lite workarounds
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@87 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-21 23:34:47 +00:00
jey
41416437e5
- paving way for dynamic card modules
...
- fixed a few memory leaks
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@86 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-20 13:57:58 +00:00
jey
ff560ba239
- added basic logging to sc-pkcs15-sec.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@85 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-20 12:22:18 +00:00
jey
9989c11a6d
- remembered ChangeLog
...
- moved some functions from sc.c to sc-iso7816-4.c
- added fancy colors to log output =)
- removed global sc_debug variable, moved it to sc_context
- fixed new ASN.1 code (possibly still unstable)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@83 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-19 21:58:04 +00:00
jey
83dd7bee00
- added a small fix. Swedish Posten eID cards are now supported.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@81 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-16 20:30:42 +00:00
jey
5e00917fcc
- bumped version number up to 0.4.0
...
- improved ASN.1 decoding _lots_
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@80 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-16 18:46:32 +00:00
jey
0191d6c07d
- paving way for version 0.3.5
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@77 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-15 01:29:51 +00:00
jey
c46ac85a07
- improved logging facilities
...
- removed a few compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@69 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-13 21:19:11 +00:00
jey
86bef9c75e
- improved certificate caching
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@67 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-11 14:52:17 +00:00
jey
683f561800
- removed config directory
...
- fixed compiling with C++
- added error SC_ERROR_CARD_RESET
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@65 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-08 15:27:40 +00:00
jey
06fc4565ba
- fixed sc_pkcs15_change_pin()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@62 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-02 19:21:46 +00:00
jey
bc946d6bfe
- added support for Base64 decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@61 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-02 19:17:11 +00:00
jey
d277cf5d5c
- fixed a few bugs in Autotools support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@57 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-27 21:11:32 +00:00
jey
e5d40ca03c
- started to migrate to GNU Autotools
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@56 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-26 20:14:48 +00:00
jey
a1349a68c4
- added defaults for FINEID S4-2 (organization) cards
...
- fixed a few typos
- renamed _sc_sw_to_errorcode() to sc_sw_to_errorcode()
- PAM module now uses RSA_sign instead of RSA_public_encrypt
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@55 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-26 16:14:22 +00:00
jey
5c4c94779d
- changed "sc.h" to "opensc.h"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@54 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-24 15:12:32 +00:00
jey
939146ffed
- changed project name to OpenSC
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@52 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-24 13:32:52 +00:00
jey
674cbb1979
- added sc-crypt program
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@51 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-22 15:40:51 +00:00
jey
2ac6b811a5
- added install target to libsc Makefile
...
- added a few functions
- added a patch against OpenSSH 3.0.1p1 to enable libsc support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@48 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-21 21:19:58 +00:00
jey
ea594e3e50
- added very partial SSH support
...
- rearranged some functions
- added several new functions
- fixed handling of SW's
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@47 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-20 22:21:58 +00:00
jey
f2f3a30792
- added sc-tool
...
- removed certtest.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@45 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-18 01:52:32 +00:00
jey
e53cfa4595
- added README for PAM module
...
- added a few error messages
- fixed certificate caching (which is still kludgy)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@44 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-17 15:48:10 +00:00
jey
1194017d5a
- added defaults; full PKCS#15 parsing is no-longer required at startup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@43 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-17 14:55:41 +00:00
jey
584f5e5cb8
- PAM module is semi-working now
...
- added sc_asn1_put_tag() and sc_restore_security_env() functions
- preliminary support for CREATE FILE and DELETE FILE commands
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@42 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-17 00:11:29 +00:00
jey
e883b6f989
- committed a patch from Antti Tapaninen <aet@cc.hut.fi>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@40 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-14 13:43:39 +00:00
jey
187d8a0b29
- moved sc_list_files() to sc.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@39 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-07 14:36:57 +00:00
jey
fac50be076
- fixed sc_get_random()
...
- added ATR to struct sc_card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@38 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-07 13:45:41 +00:00
jey
18bab373b8
- changed license to LGPL
...
- moved ASN.1 function definitions from sc.h to sc-asn1.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@36 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-06 18:34:19 +00:00
jey
27cc0a0189
- fixed base64 encoding function
...
- added file listing test to hst-test.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@35 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-05 19:39:18 +00:00
jey
16c6db4b2a
assorted small fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@34 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-04 14:08:38 +00:00
jey
58fd72f22f
- added support for base64 encoding
...
- added certtest tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@33 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-04 13:57:04 +00:00
jey
c57e2e266d
- moved libsc to its own directory
...
- added non-working MIME plugin for "text/x-text-to-sign"
- added pseudo-random number generator support
- split hst-test.c into smaller files
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@31 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-01 15:43:20 +00:00