Commit Graph

1171 Commits

Author SHA1 Message Date
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