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
sth
dc6e5f856a
Little update on how to add OpenSSL support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1085 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 13:38:05 +00:00
sth
67dd35f435
Added info about the pkcs11 lib
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1084 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 08:01:23 +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
aj
54aaf365a1
Changed Roberts email address as requested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1068 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 10:40: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