Commit Graph

1254 Commits

Author SHA1 Message Date
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
aet 665ee52210 rm -f depcomp and friends so that we don't have to use
-f flag for autoreconf. Fixed an issue noticed after
upgrading to autoconf 2.52 -> 2.57, automake 1.5 -> 1.7
and libtool 1.4.2 -> 1.5.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1267 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-16 15:10:54 +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
jey 512fb4469d - Fixed OpenSSL detection (at least with Debian)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1255 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-12 12:58:59 +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 cde2543e4e Forgot this one
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1252 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 16:33:30 +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 aee7119020 updated configure to newer init calls.
set automake strictnes to foreign.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1243 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 10:33:22 +00:00
aj 0ee983fdbe Some of additional documentation.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1242 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-02 20:47:40 +00:00
aj 17cec0cd06 usbtoken is now obsoleted by openct. Update the documentation.
This patch was made possible by the INKA e.V. ISP and the Hoepfner Brewery
and Beergarden. Thanks for free Internet!


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1241 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-02 17:58:28 +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
aj 7775154fa6 run tidy on html files (ignore if it is not available).
tidy html files, so they are readable.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1227 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-26 16:47:45 +00:00
aj bfaacaf52a ssl engine update (key format), pkcs11.txt integrated.
both done by stef, I'm only commiting (and updateing the html file).


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1226 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-26 10:38:35 +00:00
aj c1261a6c2e xml/html based documentation.
This can replace:

README
README.Win32
README.cards
README.signer
THANKS
TODO
AUTHORS
src/openssh/README
src/pkcs11/README
src/pam/README
src/sslengines/README


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1225 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-25 20:20:32 +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
aj e7fcb2be88 make live easier for other developers:
html file is now also in the repository, and I will update
always both at the same time. So not even developers will
need docbook dtd + xsl + xsltproc.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1222 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-25 08:42:37 +00:00
aj 2141d58230 removed pkcs15-init.sh reference
(oops, when did that creep in? shouldn't be.)


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1221 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 22:29:26 +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