aet
8dd292fc4b
Blah, unify the string handling a bit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1337 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-06 12:01:40 +00:00
sth
55d05ae222
Removed some unnecessary output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1336 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-06 11:18:21 +00:00
aet
c42a3bfc0f
- Fixed a mac specific compiler warning
...
- Fixed libdl-specific code to work with Fink's dlcompat package
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1335 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-06 08:45:57 +00:00
aet
6e29c9f599
Fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1334 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-06 07:36:38 +00:00
sth
ce51dac5e9
Fixed the verification, so that it corresponds completely with the signature functions (more specifically: the special cases are provided for SHA-1 and MD5 signatures with the RSA_PKCS1_PADDING mechanism)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1333 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 19:26:07 +00:00
aet
3e1dd82f4f
Remove some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1332 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 17:28:29 +00:00
okir
d1d502eb3a
- accept option -T
...
- added function skip_unless_card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1331 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 10:34:34 +00:00
okir
67d6167259
- accept option -T
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1330 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 10:34:04 +00:00
sth
ce2ed80bfa
Under Windows, flex generates lex_parse_win32.c, because the default lex_parse.c that is in the snapshots and in the releases won't compile on Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1329 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 10:12:43 +00:00
okir
1287ed1c6d
- doubled file size of PrKDF, PuKDF, CDF etc
...
- provided old profile as pkcs15-small.profile for e.g. GPK4K
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1328 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 09:50:39 +00:00
aet
ef1826ce5f
Renamed pam_opensc-test to test-pam
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1326 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 07:09:09 +00:00
aet
d44719457b
Add support for native MacOS X pam header location
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1325 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-04 15:11:27 +00:00
aj
1091548eda
seperator is written to an u8, so it should be a char or u8 anyway.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1324 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-01 07:03:16 +00:00
okir
3a68ba695b
- warn if EF is too small for the amount of data we want to write
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1323 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-31 21:16:15 +00:00
okir
7fc4ad2db0
- fixed error message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1322 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-31 19:06:43 +00:00
sth
c23ff8f56e
Removed a call for a (not yet) existing driver, which I accidentally added along with another change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1321 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-31 08:27:35 +00:00
okir
77432ee438
- indentation fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1320 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-31 08:10:23 +00:00
sth
af50810d0f
Fix: if a pkcs11 attribute is requested that valid for that type of object, but that we don't have, then we should return length = 0 instead of returning CKR_ATTRIBUTE_TYPE_INVALID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1319 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 14:46:27 +00:00
aet
0f97eb15b8
Add support for probing the correct extra magic needed for
...
linking sslengines. Probably not perfect, but it's a start.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1318 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 12:51:14 +00:00
okir
53b5c2b389
- fixed VERIFY handling
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1317 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 11:07:25 +00:00
aet
a9f05d1100
Remove CFLAGS_OPENSC, cleanups to INCLUDES handling.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1316 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 09:50:18 +00:00
aet
2836ff0287
Fix for the MacOS X pam module installation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1314 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-29 11:50:41 +00:00
aet
26b2ebbb77
Remove old references to OpenSSL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1313 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-29 10:17:55 +00:00
aet
886de97b27
More consistent indentation for multi-line variables
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1312 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-29 10:04:40 +00:00
sth
0b1a65cd81
Added struct sc_card to process_fci(), just like it's done with the orhter card operations
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1311 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 13:19:49 +00:00
aet
a327d1994a
Minor cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1309 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 12:11:03 +00:00
aet
3ed1b9dfc7
Fix the pam_opensc-test linking problem for AIX5.1+ and MacOS X
...
MacOS X doesn't have /usr/include/security so you'll need to
symlink /usr/include/pam to /usr/include/security yourself
at the moment.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1308 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 11:10:26 +00:00
aet
40f995994a
Add support for MacOS X with PC/SC framework using autoconfigure.
...
Tested using Panther (WWDC build) + fink. Should work without fink, too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1307 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 10:02:23 +00:00
aet
bc7d9bdef3
Renamed test_engine.s to test_engine.sh
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1306 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-27 16:51:50 +00:00
sth
abc1e8b000
Fix: allways set pag_flags = SC_ALGORITHM_RSA_HASH_NONE if sc_pkcs15_compute_signature() is called with this flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1305 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-27 16:50:08 +00:00
aj
7fb4472f4c
Add a big fat warning not to use usbtoken.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1304 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-27 16:31:33 +00:00
aet
5b1e46329b
Build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1303 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-25 09:01:51 +00:00
sth
18ebc833f8
Fix: don't give an error if the hash algo is SC_ALGORITHM_RSA_HASH_NONE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1302 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 14:27:54 +00:00
aet
4de1bef042
- Build fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1301 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 13:10:53 +00:00
sth
4cbd578bc0
Added test code for Mozilla-like keypair generation and the writing of a certificate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1300 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 11:29:08 +00:00
aet
3a61c4fe97
- Remove src/assuan, what's the point of having --with-assuan
...
if we're including our own version? Besides, opensc-signer
and openscd both are incomplete versions, I don't know if
they work at all.
- Minor cleanups to openscd.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1299 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 10:00:57 +00:00
aet
8b091d6694
Add missing 'n' for getopt_long
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1298 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 09:09:35 +00:00
sth
6ff35eed3d
Little fix in test_verify()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1297 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 08:35:34 +00:00
aj
849d48068e
Nils fixes to starcos.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1296 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 06:47:54 +00:00
aj
b458deb38b
updated patch. changes:
...
- add Nils fix for split keys.
- changed "ask for pin" code.
The later is ugly and needs to be changed. however it is
open how we can do that. Maybe it will require changes in
openssh, so lets keep it till those issues are solved.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1294 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-23 18:12:08 +00:00
aet
0da7aaadee
Resync with p15_eid changes. No, it still won't work.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1293 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-23 16:11:53 +00:00
aet
d87ec12d0c
Remove the rest of old, obsolete SCIDI related crap.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1292 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-23 15:07:41 +00:00
sth
06d4311e80
Made the construct_fci() a card operaton, just like it has been done with process_fci() before
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1291 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-23 14:31:21 +00:00
aj
c34eb2b147
find the keys by usage (patch by Nils Lars)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1290 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-22 15:51:17 +00:00
aj
5f0e9c9333
somewhat improved profile search.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1288 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-22 15:13:16 +00:00
sth
23ee080756
Added test code for the new Verify functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1287 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-22 09:54:20 +00:00
sth
c2d09ff959
Read the file's contents as binary
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1284 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-18 09:34:38 +00:00
sth
cb581484b8
Read/write the file's contents as binary
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1283 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-18 09:32:41 +00:00
sth
01a36a8aed
Added some debugging info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1280 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 22:59:12 +00:00
sth
47489c5567
Added some debugging info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1279 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 22:53:48 +00:00
sth
f8c5da9ccc
Fix: if a pkcs11 operation fails, it should be ended
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1278 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 22:09:18 +00:00
sth
9dd994fb2c
Little fix for Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1275 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 15:09:01 +00:00
aet
beebb1bc47
Remove C++-style // comments. Yes, I know that they
...
are ok in C99 spec, but who says that all compilers
are already C99 compatible.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1272 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 13:05:09 +00:00
aet
118c7a4dcc
Resync .cvsignore files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1271 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 12:39:11 +00:00
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
sth
34fbb4219a
Fix of the previous patch: show only 1 public key if both public key and cert exist
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1265 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-16 05:20:58 +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
sth
e8cf96af9f
Fix of the previous patch: if there are a public key and cert with the same ID, show the public key derived from the cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1262 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 17:34:50 +00:00
sth
864f261679
Fix: if there was a public key and cert with the same ID, you'd see the public key twice in pkcs11: once the 'real' one and once the one derived from the cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1261 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 17:28:30 +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
aj
cd20622c96
remove files in "make distclean" instead of "make maintainer-clean"
...
to match the distribution tar file.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1256 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-12 17:19:45 +00:00
sth
b093146578
If C_SetAttributeValue() wants to change the CKA_SUBJECT, simply return OK. This is OK as we don't save the CKA_SUBJECT of a public key anyway, and it's needed for doing keypair gen + cert writing with Mozilla
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1254 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 20:14:48 +00:00
aet
c83c8870d1
Cleanups, fix --with-common-dir work with OpenSSL engine detection
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1253 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 18:16:12 +00:00
aet
c4d2611d12
- Various build fixes for various operating systems and compilers
...
- Add missing .cvsignore files
- Remove tools/ and make configure to work again
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1251 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 16:31:06 +00:00
sth
dbefbade41
Changed libpkcs11.a to libpkcs11.la (by Ville Skytta)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1250 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 11:18:39 +00:00
sth
1b3239c69a
Fix: use strncasecmp() instead of strnicmp()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1249 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 11:16:14 +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
1b988af695
Fix makefiles.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1245 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 11:13:18 +00:00
aj
d94de46a59
remove old text files.
...
new documentation is in opensc/docs/opensc.html (and .xml)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1244 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 10:44:23 +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
sth
7b7f2106f2
Implemented the C_VerifyXXX() functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1236 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 15:26:17 +00:00
sth
b7d92d3127
Removed the CKF_WRITE_PROTECTED tokeninfo flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1235 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 13:29:51 +00:00
sth
82c00d806c
Placing #include <windows.h> in wincofig.h causes compiler problems, better put it in each file that uses _MAX_PATH
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1234 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 12:59:22 +00:00
sth
0cb9a18963
Some Windows fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1233 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 12:32:57 +00:00
sth
4fdecc39c2
Fix: register CKF_GENERATE_KEY_PAIR in a correct way
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1232 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 12:11:19 +00:00
sth
033e032820
Added test code for C_SetAttributeValue()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1231 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 12:02:39 +00:00
sth
ffadf4770c
Implemented C_SetAttributeValue() that can change the CKA_VALUE and CKA_ID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1230 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 12:00:43 +00:00
sth
5ed3d17ad8
Added sc_pkcs15init_change_attrib() that can change the label and ID of a pkcs15 key or cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1229 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 11:59:37 +00:00
sth
0b15d0aac4
Use a better notation for the -key option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1228 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 11:32:58 +00:00
sth
4dc226d05f
Added a little extra logging to C_GenerateKeyPair()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1224 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-25 10:57:41 +00:00
aj
59da343eea
PATH_MAX is defined via limits.h (I hope that exists on all
...
systems). MAX_PATH is a typo. int r was never used.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1223 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-25 10:19:08 +00:00
sth
09650d29a3
Changed SC_PKCS15_MAX_PINS to MAX_OBJECTS in pkcs15_create_tokens()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1220 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 11:31:02 +00:00
sth
11660330f4
Added a safer locking mechanism, based on sc_lock/sc_unlock (Olaf)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1219 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 11:26:17 +00:00
sth
a8724bea78
In slot_initialize(): Bugfix in a memset and added a pool_initialize()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1218 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 11:11:49 +00:00
sth
4fb623d537
Some fixes/improvements, e.g. an ID now has to be entered in the same way as in pkcs15-init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1217 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 09:14:57 +00:00
sth
24b517cda5
Added support for selecting keys by slot and by key ID; and added newlines to some error messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1216 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 09:11:01 +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
3c50c4d4e0
Some improvements to gen_keypair() and write_object()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1214 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-18 20:49:20 +00:00
sth
bb4bdd529d
Let sc_profile_locate() behave about the same way under Win32 than under Linux
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1213 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-18 12:38:27 +00:00
sth
97da0b6149
Now you can specify your card profile for pkcs15init, both on the command line if you use the pkcs15init tool and in the opensc.conf file. Not specifying gives the default one, like before.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1212 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-18 08:07:12 +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
aj
70b17b36e5
The code now asks for the passphrase.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1210 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-16 09:45:23 +00:00
okir
6cc4820d5f
- when loading a profile, check all variations of <profile>.conf before <profile> itself
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1209 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-16 07:40:43 +00:00
aj
98d12f1210
added makefile so regression files will be included in tarball.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1208 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-15 22:22:31 +00:00
aj
b511ae284d
current patch for openssh. does not work.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1207 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-15 22:21:37 +00:00
aj
f2aaa70cad
makefile fixes, so the tarball will contain all files.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1206 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-15 22:20:21 +00:00
aj
bf527eb70b
Doesn't work, but added current openssh patch anyway.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1205 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-15 22:19:41 +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
0b85e180d7
Add AuthID for pkcs15 data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1200 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-14 12:31:30 +00:00
sth
c0b8b08e9c
Also compile the sslengines dir under Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1199 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-13 12:45:11 +00:00
sth
bd3eab81e4
Added #include <openssl/rsa.h>, this is needed for openssl 0.9.8 and higher where openssl/evp.h wont include the algorithms anymore (Nils)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1198 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-13 06:51:26 +00:00
sth
0d2a15c29b
Added support for a new cryptoflex profile, where the user (CHV1) is in charge of the pkcs15 DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1197 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-12 21:35:20 +00:00
sth
694a649ab8
Add the AuthID when writing pkcs15 data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1196 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-12 21:23:01 +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
sth
de20691dd4
Added some info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1194 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-11 11:03:40 +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
aj
da8a49569c
added flex_so.profile,
...
moved list of all profiles to PROFILE
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1189 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-10 16:45:38 +00:00
okir
51100d16f1
- prevent excessive calls to logout
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1187 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-10 06:32:31 +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
sth
2871cd8269
Add support for a new cryptoflex profile in which the SO (CHV1) is in charge of the pkcs15 DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1185 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-07 07:17:26 +00:00
sth
c85913c5c7
Fix in pkcs15_gen_keypair(): labels didnt work
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1184 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 19:17:51 +00:00
sth
5716f100cc
Fixed a type in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1183 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 18:37:52 +00:00
sth
20053af948
A first implementation of write_object(), mostly for testing purposes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1182 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 12:30:02 +00:00
sth
fe3cb3de3f
some fixes to pkcs15_create_object() and pkcs15_gen_keypair()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1181 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 12:26:06 +00:00
sth
e3262c5fcd
added a check for CKA_CERTIFICATE_TYPE to attr_extract()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1180 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 12:24:19 +00:00
sth
c8c2cf725b
First implementation of C_GenerateKeyPair()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1179 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-03 13:57:52 +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
sth
c6027179e7
Compiler warning (result of malloc not casted)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1177 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 09:45:26 +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
81f2b7fe7d
- added --name option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1175 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 08:33:19 +00:00
okir
5b5e98e56a
- added function skip_if_card to allow tests to be skipped for certain cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1174 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 20:52:46 +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
okir
3791a686af
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1172 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 18:05:18 +00:00
okir
580b9c45a6
- specify user pin when erasing card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1171 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 13:36:55 +00:00
okir
59b07de3d4
- better handling of failures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1170 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 13:36:25 +00:00
okir
7b5e8d2ba3
- allow specifying the list of tests to be run on the command line
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1169 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 08:30:03 +00:00
okir
e76a0dd60b
- fixed crypt* tests to work with cryptoflex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1168 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 05:25:10 +00:00
okir
afe01d7532
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1167 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 05:24:40 +00:00
aj
2f421d23b9
moved main() function into it's own file,
...
killed duplicate compiling,
made older autoconf/make/libtool happy.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1166 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-27 15:58:03 +00:00
okir
9d6227ec64
- return value of pkcs15_login was ignored
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1165 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-27 09:58:39 +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
890e8a75a6
- erase card using --secret
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1162 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-23 10:10:45 +00:00
okir
cce7ef1b81
- fixed pin handling in generate key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1161 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-23 10:05:54 +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
24107c26f8
- fixed cryptoflex keygen
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1159 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 21:04:31 +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
okir
a6d6a1f628
- added option --secret
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1152 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-18 10:08:26 +00:00
okir
3e30e87cbd
- do_get_any_verify_pin: try to look up p15 pin info from card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1151 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-18 10:05:14 +00:00
aj
4bfc94caed
always create and use a pin.
...
removed --split-key, cardOS users have to specify it.
three new tests.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1149 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-17 10:55:23 +00:00
aj
43931de993
Added --pin option to pkcs15-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1148 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-17 10:54:27 +00:00
okir
31c95778dd
- Disable colors for now
...
- use --assert-pristine to ensure card is pristine
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1147 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-17 09:18:38 +00:00
okir
a496e8e42b
- added sc_pkcs15init_set_secret
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1146 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-17 09:10:32 +00:00
aj
705103d4d8
fix include paths.
...
include files are supposed to be in opensc/ and opensc/rsaref/.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1145 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 22:08:41 +00:00
okir
0070307a04
- redid option handling (you can now call it with -ECPa 01 -G rsa/1024 - except
...
there's a little bug that prevents this from working properly)
- implemented --assert-pristine
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1144 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 19:12:54 +00:00
okir
da8dfa9e66
- fix for previous change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1143 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 19:11:38 +00:00
okir
35a12ea868
- print_usage_and_die: skip hidden options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1142 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 16:41:53 +00:00
okir
0d3948ed42
- in test_signature: check CKA_SIGN before doing any signature tests
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1141 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 16:33:42 +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
54f12273ed
- display LIST_FILES and CRYPTO ACs as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1139 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:25:13 +00:00
okir
4104cb19d5
- minor fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1138 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:24:50 +00:00
okir
aeb84dadbc
- make sure CREATE/DELETE are protected
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1137 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:16:15 +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
f41586b731
- added some color
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1135 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 09:51:59 +00:00
okir
3bc3b4f6d5
- bump the CDF size, as we now put the subject name in the label
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1134 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 09:34:09 +00:00
okir
684ceef2cf
- added pkcs15-init pkcs12 test case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1133 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 09:27:38 +00:00
okir
d5713d2f1f
- updated test scripts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1132 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 09:14:10 +00:00
okir
d34eb0e3b5
- test set didnt abort if p15_validate failed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1131 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 07:42:26 +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
e396ff5c95
- more tests
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1129 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:30:34 +00:00
okir
fa123c4b75
- Allow "pkcs1-init --erase" without further options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1128 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:29:42 +00:00
okir
2e673aead6
- Do not try to C_Login if the token doesn't require a login
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1127 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:28:35 +00:00
okir
0f29e7543e
- allow full access to keys not protected by a PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1126 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:27:33 +00:00
okir
4356c7d9c9
- increase size of PrKDF, so that we have room for 2x2 split keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1125 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:26:29 +00:00
okir
383f1b13a1
- added --no-prompt
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1124 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:33:31 +00:00
okir
8c7e571c89
- erase card fixes: forget cached secrets, and use sc_free_apps
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1123 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:33:04 +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
99c1bf0da3
- keygen: when --split-key is given, try hardware keygen if usage permits
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1120 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:39:02 +00:00
okir
8fddbdb3b6
- improved test cases slightly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1119 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:33:28 +00:00
okir
cf5c0fb3a8
- added --slot-label option to find slot by label
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1118 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:32:21 +00:00
okir
992fb077d9
- get_pin_callback takes an additional label argument
...
- add split key support to key generation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1117 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:31:46 +00:00
okir
7b34c2ecf7
- get_pin callback now takes additional label argument
...
- call get_pin for ALL pins, not just those listed in the profile
- add split key support to sc_pkcs15init_generate_key
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1116 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:30:46 +00:00
okir
a3d81aa980
- etoken_erase don't assume PIN 0 is always the SO PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1115 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:29:29 +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
sth
053b10e2bf
If signing/decryption fails because the card lost its security status, try to log in again and then do another attempt to sign/decrypt
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1113 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 10:34:03 +00:00
okir
059d37757d
- dont say all tests were successful when we failed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1112 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 19:13:40 +00:00
okir
4be5cbd6c8
- show output of pkcs15-init commands
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1111 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 19:13:13 +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
77b22f1626
- minor usability updates
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1109 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 16:22:14 +00:00
okir
209681d43e
- some tests for pkcs15-init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1108 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 16:21:02 +00:00
sth
6aeb544fd9
Ported to Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1107 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 13:13:38 +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
d416f2fe48
added #include <string.h>
...
killing warnings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1101 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 14:06:25 +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
aj
167dea46de
libpkcs11.h was missing from EXTRA_DIST
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1098 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-12 20:37:07 +00:00
aj
496232d9b9
new sslengines implementation with pkcs11 and opensc backend.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1097 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-12 20:21:08 +00:00
aj
b1e4c88aec
Add sslengines.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1096 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-12 20:18:31 +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
sth
c79e42d82e
Added support for Mac bundles
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1092 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-08 07:54:30 +00:00
aj
c4e49486b9
oops, didn't remove reference to sslrandom.c. fixed.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1091 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 15:12:02 +00:00
aj
99d3289ecd
this should fix the libscrandom issue:
...
the obvious solution is to create libscrandom.la (not .a)
and link with ../scrandom/libscrandom.la (not -lscrandom).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1090 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 15:03:02 +00:00
aj
67530577b1
- added a "nofork" parameter
...
- changed the initialization order to fix a race condition
where the first usbtoken uses the id 1 and not 0
- fixed a bug where all tokens always used id 0. now several
tokens work at the same time.
- fixed a bug: pid files were empty.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1089 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 15:01:18 +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
aj
a58e5e5d19
improved "get" function:
...
- path is now by default like 3F00_5015_5031 instead of "3F00"
- the final message shows not only number of bytes but also the filename.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1087 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 14:57:44 +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
aj
683b946c52
Patch by Robert Bihlmeyer:
...
- remove liscrandom
- use scrandom.c directly (list as part of the SOURCES)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1083 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-01 14:09:11 +00:00
sth
e437a38c98
Dont give errors with -t option if the private key doesnt support key unwrap
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1082 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-30 12:24:40 +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
dcf4a94847
Build libscrandom in both .a and .so versions (by R. Bihlmeyer)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1080 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-29 11:10:06 +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
sth
f417883e15
Avoid an Assertion Failed (ctx!=NULL) in log.c if sc_establish_context() fails in C_Initialize()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1075 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 09:55:36 +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
2698dc6cec
Have a compile option to enable PTHREAD locking at the pkcs11 level
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1070 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-24 07:03:48 +00:00
sth
d8ef40512b
Extended caching for single-user Windows OSes (Win98)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1069 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 11:46:07 +00:00
sth
a9692c9c46
Disabled OS thread locking on OSes with PTHREAD due to closing problems with Mozilla
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1067 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 09:52:09 +00:00
sth
870efbf2c0
Added SC_PKCS15_PRKEY_USAGE_NONREPUDIATION as a valid signature usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1066 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 08:47:57 +00:00
sth
189a692012
Fix in case no OpenSSL is present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1065 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 20:43:02 +00:00
aj
c0ea6e9554
remove references to SCIDI
...
sanitize pkcs11 include header references
(now they are installed in rsaref/ subdir,
and pkcs11.h is *not* overwritten).
remove automake 1.5 requirement
(automake 1.4 on debian stable/woody works fine)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1064 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 17:02:28 +00:00
aj
131719b8c6
- add robert to Authors as contributor of bug fixes
...
- configure code finally working.
engine is detected and path to libcrypto.a is also set.
- roberts fix for reader-usbtoken.c
- card-gpk.c migraton to DES_ routines with #define for 0.9.6 openssl.
- man pages: do not ship pkcs15-profile.5 (.in is in the tarfile)
- assuan: replace "strcpy(stpcpy(.., ..), ..)" with
"strcat(strcpy(.., ..), ..)" which looks good, but nobody uses
assuan I guess ?
- declaration of sc_pkcs15init_set_lifecycle kills a warning
- #include <openssl/bn.h> kills a warning (or compile problem?)
- removed unused txt[256]; from p15_eid (kills a warning)
- now "ln -s" the signer plugin to the plugin directory.
- moved key_out direction to the beginning of a function (kills
a warning or compile error)
- changed pkcs11-tool option "quiet" to "verbose" to conform to
other tools.
- made algo argument to wrap_unwrap a "const" (kills several warnings)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1063 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 17:00:38 +00:00
sth
0523e1d1fb
Fixed an OpenSSL issue with MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1061 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 12:26:47 +00:00
sth
a02b233a6c
Correction of the previous insert-remove fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1060 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 07:51:45 +00:00
jey
0aea6fcba5
- applied build fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1058 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 15:01:55 +00:00
jey
1c4370dd3b
- fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1055 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:39:18 +00:00
jey
9ddbeaaf85
- Do not install openscd for now
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1054 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:36:40 +00:00
jey
ed0ffac09b
- fixed add_padding() in the case where padding is request, but input
...
isn't a hash.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1053 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:29:03 +00:00
jey
4ae13b64a4
- fixed CHV changing with a CryptoFlex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1051 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 11:40:51 +00:00
sth
fb417772fb
Allow non-repudation as a signature usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1050 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 15:42:04 +00:00
sth
01896a8f2e
Added some files to ignore, also for Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1049 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 14:57:50 +00:00
sth
b05aadce59
Have a sec delay in C_GetSlotInfo() per reader instead of a global delay
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1048 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 11:58:11 +00:00
sth
a85d6d7aa4
Added code for MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1047 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 11:55:16 +00:00
okir
0f4c706e3b
- added tests for key unwrap
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1046 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:39:44 +00:00
okir
41a22174dc
- bugfix for unwrap
...
- support getattr(CKA_VALUE) for public key objects
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1045 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:38:00 +00:00
sth
b531527169
More robust detection of removal/insertion events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1044 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:35:58 +00:00
okir
c94d72f3ea
- fixed signing and hopefully unwrap for split keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1041 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 13:13:48 +00:00
okir
9fae9999ea
- fix for the previous change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1040 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 13:03:49 +00:00
okir
d2075b2c13
- implemented split-key support for CardOS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1038 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 12:38:08 +00:00
okir
6faee57a95
- fixed compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1037 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 11:04:28 +00:00
okir
93edc07115
- Allow command line --key-usage to be more restrictive than the
...
usage given by the certificate (pkcs12)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1036 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 09:39:09 +00:00
okir
f08a12f108
- when no specific reader is required, just select the first one that
...
holds a card
- when computing RSA signatures, don't assume the card supports raw RSA -
the it the challenge is a sha1 digest instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1035 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 09:37:31 +00:00
okir
98907b68f1
- fixed endianness problem with encoding/deconding of bit fields
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1034 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 20:52:26 +00:00
sth
897e4a87ca
Added debug.obj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1033 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:50:30 +00:00
sth
005590ab8f
Added card-starcos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1032 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:49:50 +00:00
okir
192e140fd3
- merged SSL ENGINE patch from Kevin Stefanik
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1031 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:03:11 +00:00
okir
fcd5ddfa55
- removed SCIDI stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1030 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 17:00:02 +00:00
okir
f1aaa62c2b
- integrate starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1029 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 16:59:34 +00:00
okir
7dd987d6cd
- fixed some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1028 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 16:01:22 +00:00
okir
5abf1b898e
- added SC_SEC_OPERATION_AUTHENTICATE for starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1027 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:58:57 +00:00
okir
f8a7fecf78
- get rid of warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1026 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:56:40 +00:00
okir
095db2b907
- getting CKA_LABEL would not 0-terminate the string
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1025 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:53:44 +00:00
okir
f81929eb16
- moved the lifecycle stuff to libpkcs15init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1024 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:38:35 +00:00
okir
ac1c926cc8
- Added starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1023 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:27:33 +00:00
okir
138346a018
- backed out AM_LDFLAGS change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1022 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:20:40 +00:00
okir
1714b3147c
- improved debugging output of CK_ATTRIBUTE data
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1021 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:18:07 +00:00
okir
c53043a97e
- in getattr(CKA_LABEL), do not include trailing NUL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1020 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:17:02 +00:00
okir
be09dc97f3
- when getting certs from a p12 file, put the subject name into the cert labels
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1019 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:16:08 +00:00
sth
7cb9901113
Correction of the previous patch for MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1018 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 12:01:08 +00:00
okir
aa6e626a79
- import all certs from a pkcs12 file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1017 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 11:50:49 +00:00
okir
90598ef590
- new error code SC_ERROR_CANNOT_LOAD_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1016 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 10:20:22 +00:00
okir
44995d388d
- don't complain about read/write/update binary with a length of 0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1015 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 10:19:20 +00:00
okir
0c173451fc
- dont return error in detect_card_presence if there is no reader
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1014 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 08:33:37 +00:00
okir
e04b90f5b2
- a few more changes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1013 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 20:06:19 +00:00
sth
088a346bdd
First thing written in the debug log will be ==========
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1012 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 17:10:25 +00:00
sth
4545fc2ab6
include for MacOSX added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1011 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 15:59:32 +00:00
sth
92c5e24572
Have allways a label in CK_TOKEN_INFO
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1010 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 17:29:19 +00:00
okir
46ddaa903d
- fix pkcs11 signatures with etoken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1009 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 15:19:53 +00:00
okir
3b36593ada
- added pkcs15 unblock functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1008 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 14:51:42 +00:00
okir
0b333129d9
- explicitly mention we do raw RSA
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1005 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 10:33:07 +00:00
okir
91b7b3c7a6
- suppress "not supported" error messages from sc_card_ctl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1004 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 08:17:53 +00:00
okir
d2b5c08857
- fixed unblock command when puk given in hex notation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1003 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 07:44:27 +00:00
okir
a9a766fafb
- more fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1002 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:29:29 +00:00
sth
91deef3734
Added cardos-info.exe
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1001 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:26:05 +00:00
okir
dc269cea3e
- reverted previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1000 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:48:54 +00:00
okir
99dc52d875
- try to deal more gracefully with hotplug events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@999 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:45 +00:00
okir
f4b866c1ea
- include config.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@998 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:29 +00:00
okir
e052e6956d
- added hotplug errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@997 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:16 +00:00
sth
f801d14ffd
Removed some errors that occured with unsupported cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@996 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:22:52 +00:00
okir
04b52edbb8
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@995 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 13:55:22 +00:00
okir
56e2e70e07
- new tool cardos-info from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@994 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:48:57 +00:00
okir
0eecac13bb
- support for lifecycle cardctl; cardos lifecycle support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@993 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:47:41 +00:00
okir
5ca228f7b8
- usbtoken fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@992 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:46:57 +00:00
okir
87a0cc51a1
- build fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@991 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:46:02 +00:00
okir
9437f109ec
- Added OpenCT reader support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@989 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:41:31 +00:00
okir
1e1eec0d8a
- getopt cleanup from aj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@988 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:28:09 +00:00
okir
632dc7dfc8
- fix for newer flex versions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@987 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:19:04 +00:00
okir
89edb55ead
- Textual representation of PIN encoding instead of "Type: 1"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@986 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:32:50 +00:00
okir
f29ce046e7
- Don't set PIN defaults until after we've parsed _all_ cardinfo blocks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@985 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:32:15 +00:00
okir
4f60d849c6
- fix for 2048 bit keys on cflex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@984 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:31:33 +00:00
okir
c07de5157a
- added SC_PKCS15_PIN_TYPE_* defines for weirdo encodings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@983 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:30:25 +00:00
okir
340aad07a0
- fixes for le=00/lc=00 problems
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@982 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-10 09:16:05 +00:00
sth
b00a91c8af
better fix then the previous for the assertion failed bug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@981 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-09 20:19:42 +00:00
sth
ae700e318b
Fix: assertion failed (lock_count>=0) in sc_pkcs15_bind()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@979 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-04 09:52:39 +00:00
okir
fabb271b6d
- fix sc_transmit_apdu to properly deal with le=00
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@978 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 18:19:22 +00:00
okir
fa2e617cd1
- added sc_reader_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@975 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 13:18:00 +00:00
okir
9ae2b2fa07
- usbtoken fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@974 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:53:32 +00:00
okir
35a5cdd780
- changed description
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@973 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:53:06 +00:00
okir
0ea0ce2ac9
- opensc-tool -f: don't crash on large or record structured files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@972 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:52:41 +00:00
okir
00d2d7ce4c
- minor printf fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@971 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:51:46 +00:00
okir
a7962eeed6
- stubs for "synthetic" pkcs15 tokens
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@970 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:46:26 +00:00
sth
ac4b6dc45f
Fix: card detection in C_GetSlotInfo is done at most once a second
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@969 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-02 06:59:19 +00:00
sth
9d3b5a3941
Added sc_current_time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@968 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-02 06:58:20 +00:00
okir
909b917694
- opensc-tool -f should handle files > 2K gracefully
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@967 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:28:44 +00:00
okir
e0a80576e6
- Remove workaround for t=1 bug in etoken driver.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@966 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:26:55 +00:00
sth
0abafd0e9a
Fix: root certs could be shown more then once
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@965 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 16:08:10 +00:00
okir
da172fd4c5
- added reader driver for usbtoken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@960 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:14:22 +00:00
okir
995bcfa2df
- added missing win32.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@959 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:12:02 +00:00
okir
86d486c602
- top_srcdir/top_builddir fixes (aj)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@958 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:08:27 +00:00
okir
bdb9163a8f
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@957 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:06:53 +00:00
okir
dd8f50465a
- properly set max pin length attr
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@956 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:05:44 +00:00
okir
944a553487
- Merged Andreas' usbtoken code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@955 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:02:55 +00:00
okir
556c216c4b
- make sure all APDU fields are zero when processing -s option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@954 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-25 11:19:49 +00:00
sth
4aef09109b
card remove/insert dection for Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@953 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-20 12:52:39 +00:00
okir
c816a1f461
- use OPENSSL_cleanse instead of memset to zap DES key (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@952 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-12 10:20:46 +00:00
okir
489401a9b3
- changed HAVE_LIBPCSCLITE -> HAVE_PCSCLITE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@950 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-11 11:00:02 +00:00
okir
6717b4224b
- dont install rsaref/{unix.h,win32.h}
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@947 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:35:47 +00:00
okir
aab6ebd1e7
- minor cosmetic change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@946 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:23:08 +00:00
okir
d5d1fb395c
- bump SC_MAX_READERS to 16
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@945 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:22:42 +00:00
okir
faf95af460
- makefile cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@944 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 11:44:16 +00:00
sth
ca6a27e429
remove/insert fix: restore the slot->reader in slot_token_removed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@943 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-07 14:18:55 +00:00
sth
faa73e5827
bug fix in sc_connect_card: only the first ATR in a config file was accepted
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@940 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-04 15:47:05 +00:00
okir
f5ac3cd8ab
- fixed ATR
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@939 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-04 09:38:23 +00:00
sth
c097704149
added error msg SC_ERROR_KEYPAD_TIMEOUT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@938 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-03 21:07:42 +00:00
okir
66a8076baa
- more robust handling of concurrent WaitForSlotEvent vs Finalize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@937 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-03 13:07:28 +00:00
sth
32f532a782
fix: clear the CK_SLOT_INFO flags in slot_token_removed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@936 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-03 13:03:59 +00:00
sth
a2ff6d66b4
take the last 8 bytes of the card as the pkcs11 serialNumber
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@935 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 15:16:56 +00:00
sth
0036545ffa
fix in C_GetSlotInfo that previously cleared the slotDescription and didnt clear the CKF_TOKEN_PRESENT flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@934 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 12:47:32 +00:00
okir
e13720e391
- renamed connect() to open_reader_and_card()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@933 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 11:07:37 +00:00
sth
9fe5baa4b7
added error code CKR_PIN_INVALID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@932 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-26 07:27:42 +00:00
sth
5c1ae16ac8
fixed wrong return value in C_Finalize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@931 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 20:10:24 +00:00
sth
49760f9cfb
fixed some thread dead-lock bugs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@930 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 19:38:50 +00:00
okir
9173c9934e
- new pkcs15 object creation stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@929 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 17:50:33 +00:00
sth
0529d27e3f
buf fix in sc_connect_card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@928 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-22 21:27:35 +00:00
sth
d9e99b0e17
little fix in C_GetInfo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@927 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 15:40:06 +00:00
okir
33133a8d5a
- prevent compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@926 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:47:30 +00:00
sth
b0a8b1a26a
extra check in C_Logout
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@925 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:29:14 +00:00
sth
252cbd51d2
login should return CKR_ARGUMENTS_BAD if wrong pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@924 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:27:24 +00:00
sth
66f7de9378
removed unnecessary debugging
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@923 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:20:08 +00:00
sth
a7a5701e0c
added support for max pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@922 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:19:01 +00:00
sth
a69a309c6e
NULL_PTR check added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@921 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 18:55:35 +00:00
sth
4d4920b661
Let C_FindObjectsInit return correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@920 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 18:54:52 +00:00
sth
213941af28
little fix of the previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@919 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 13:03:15 +00:00
sth
9631ef3636
removed const in sc_card_driver (caused win32 crash)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@918 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 12:51:07 +00:00
sth
b75ea0a0b2
more parameter checks + fix in previous checks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@917 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 21:10:39 +00:00
sth
958658102d
added check for NULL pointers and uninitialized pkcs11 lib
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@916 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 13:44:36 +00:00
sth
57954682fd
added error: unresponsive card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@915 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 13:36:58 +00:00
sth
c05cef9678
correct behaviour of C_GetSlotInfo at empty slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@914 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 16:53:49 +00:00
okir
870d9d9f66
- made card_detect() available to everyone
...
- C_GetSlotInfo now always does card detection, but only for the
reader which which the slot is associated
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@913 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 14:57:51 +00:00
okir
cf6037314f
- Introduce locks around all pkcs11 operations, in case the caller
...
is multithreaded and wants to access us from different threads.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@912 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 14:21:38 +00:00
sth
5265456cab
some cleared messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@911 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 11:09:24 +00:00
okir
4ffba35b5e
- fixed change/unblock pin for GPK
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@910 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-16 20:25:41 +00:00
sth
e1f4108c33
added error code CKR_USER_NOT_LOGGED_IN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@909 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-16 18:09:10 +00:00
sth
58985e51c2
reset first_free_slot during C_Initialize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@908 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-14 16:59:23 +00:00
sth
d944d91714
added the CKR_DEVICE_REMOVED return code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@907 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-12 14:20:53 +00:00
sth
0b9c44172d
get the right error code on card removal
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@906 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-12 14:20:00 +00:00
sth
7dcf350d7b
added p11 error CKR_PIN_LOCKED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@905 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-11 10:38:43 +00:00
okir
23d686576e
- fixed minor compile warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@904 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-10 14:08:54 +00:00
okir
1c66025798
- Each reader now gets a fixed range of slots
...
- Each slot now shows the reader name in the description field
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@903 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-10 14:08:29 +00:00
sth
a2b9838bb1
added locking to sc_pkcs15_decipher and sc_pkcs15_compute_signature
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@902 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-06 14:46:57 +00:00
okir
8160bf64a1
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@901 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 15:43:51 +00:00
okir
d1a122ce3b
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@900 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 15:39:44 +00:00
okir
af6cfb5537
- Support Belgian eID - be less pedantic about the AID listed in EF(DIR)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@899 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 14:45:48 +00:00
sth
0e691fb13e
added support for pin pad readers + change pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@898 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 13:55:22 +00:00
okir
4ff3821a0a
- suppress bogus insertion events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@897 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:32:43 +00:00
okir
f71e2b0c5e
- Added test for WaitForSlotEvent
...
- fixed a bunch of compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@896 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:23:05 +00:00
okir
5276bbb1c4
- merged Stef's WaitForSlotEvent patches
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@895 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:20:54 +00:00
okir
76e7ce90e4
- fixed compiled warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@894 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:20:24 +00:00
okir
542e12deb3
- pubkey asn.1 encoding fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@893 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:17:12 +00:00
sth
0b84c49f9a
now also caching if file->size differs from what sc_read_binary() returns
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@892 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-01 20:26:12 +00:00
sth
e8e738aac4
added signature test for all keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@891 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-31 15:32:27 +00:00
sth
f6a343712e
added: opensc SC_ERROR_KEYPAD_CANCELLED -> pkcs11 CKR_FUNCTION_CANCELED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@890 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-31 12:50:26 +00:00
sth
7dab6baeee
file size fix + removed unnecessary code from previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@889 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-30 09:45:13 +00:00
sth
16dfb55118
the slot's slotDescription is now the reader name
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@888 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:39:47 +00:00
sth
5c1b8d9411
selection between SHA-1 and RIPEMD160 sigs when 35 bytes supplied
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@887 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:37:54 +00:00
sth
20ad65a858
made buf[1024] dynamic (malloc)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@886 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:36:08 +00:00
sth
dfc01ab7ed
typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@885 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:43:06 +00:00
sth
d8871d9a46
some fixes + added cert viewing for -O option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@884 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:33:28 +00:00
sth
a383ed91d5
added return value + fix (needed if hide_empty_slots = true
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@883 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:17:08 +00:00
sth
7d6837321f
Fixes for Windows, who's PC/SC has more events that interfere with insert/removal events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@882 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:01:17 +00:00
okir
3a83fca452
- cflex 32k v4 supports keygen
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@880 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-22 08:34:44 +00:00
okir
b9c3ec2ec4
- fixed two minor issues in p11 test code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@879 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-21 15:29:17 +00:00
okir
733f6d1fb9
- fixed previous %windir% change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@878 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 12:09:30 +00:00
okir
7eef2f81a2
- new ATR for eToken PRO 32k reported by Kevin Stefanik
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@877 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 11:40:38 +00:00
okir
c5f5557367
- sc_pkcs15_read_file: gracefully deal with short reads
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@876 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:22:41 +00:00