sth
345d30a9d6
Moved the sc_pkcs15emu_xxx() functions to pkcs15_syn.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1755 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-08 13:59:27 +00:00
sth
9326f5f1c4
Allow file_app in struct sc_pkcs15_card to be NULL (may be the case for pkcs15-emulated cards)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1754 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-03 16:25:48 +00:00
aj
9333f53ffc
remove CARDOS_TYPE_ETOKEN_PRO, the name does not fit.
...
annotate atr with version number 4.0 / 4.01 / 4.01a.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1753 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-16 12:29:54 +00:00
aj
21b43fca83
added cardos M4.01a atr.
...
thanks to Laurian Gridinoc for reporting.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1752 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-15 23:00:04 +00:00
okir
28461ad360
- properly identify Italian eID card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1751 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-03 14:51:43 +00:00
okir
db7d3bac6e
- Properly handle max-length in PIN statements; added new stored-length:
...
PIN blah {
max-length = 8;
stored-length = 4;
}
Bug spotted by Victor Tarasov
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1750 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-03 10:25:20 +00:00
okir
393de85ac1
- Don't crash if card->serial_number is NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1749 c6295689-39f2-0310-b995-f0e70906c6a9
2004-02-02 10:24:31 +00:00
aj
20e2b1b94b
memset is defined in string.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1748 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-29 09:36:48 +00:00
okir
a75058ea89
- apdu wasn't completely initialized (Renzo Tomaselli)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1747 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-29 09:21:30 +00:00
okir
ec0d4db12b
- Allocate the right amount of memory when base64 encoding for PEM
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1746 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-27 09:03:15 +00:00
sth
5d6af9a68c
Added --cert-label option, usefull to specify the user cert label if you do a --store-private-key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1745 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-24 20:55:34 +00:00
aet
7a15956018
- Allow lists to end as ,;
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1742 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-22 12:37:26 +00:00
aet
9f6ffdbe0a
- Added a short introduction to scconf as an API
...
and a file format (Jamie Honan)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1741 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-22 10:13:40 +00:00
okir
9d49aa0769
- fix crash with pkcs11 module and token disconnect
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1740 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-20 11:21:40 +00:00
aet
2b4b08550b
- Revert previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1739 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-19 19:52:38 +00:00
aj
a9c914aa6b
make these libraries not standalone (pkcs15init, scam, scconf, scldap).
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1738 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-19 18:54:15 +00:00
aet
4d915b987e
- Add versioning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1734 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-10 20:24:46 +00:00
aet
85d6bc7922
- Warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1731 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 15:23:11 +00:00
sth
9779f07467
Fix: no keycaching if USE_PKCS15_INIT is not #defined
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1730 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 14:16:02 +00:00
aet
6473d2d2b3
- Unify with pkcs11.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1728 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 14:05:32 +00:00
aj
115bd355ed
config.h is not used in pkcs11.h or any file included by it.
...
but pkcs11.h is a public header file, so it shouldn't do so anyway.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1721 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 11:54:54 +00:00
aj
b9b1dbf603
cleanup a generated file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1720 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 11:53:44 +00:00
okir
6ef9257c54
- fixed placement of "function atexit" wrt shell exit trap handler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1719 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 10:50:52 +00:00
okir
4f6a7922d8
- fixed test case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1718 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 10:50:25 +00:00
sth
844ec9bc23
If the maximum allowed number of virtual slots per card is reached, then silently discard all objects that haven't been added yet instead of returning an error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1717 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 09:47:23 +00:00
sth
7daafeb5da
Update to the new keycache functions for caching the user and SO PINs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1716 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-08 08:32:46 +00:00
okir
7bb64d0fcf
- fixed GPK16K key gen, as suggested by Chaskiel
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1715 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 10:11:22 +00:00
okir
f37cb0fce3
- When zapping the contents of a DF, write the whole file (data + padding)
...
in one go. Otherwise the GPK driver may barf if the file offset in
sc_update_binary isn't word aligned.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1714 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 10:10:34 +00:00
sth
9abadbc711
Increased the maximum number of PINs and removed some unused #defines
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1713 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 09:51:07 +00:00
sth
23aec107ad
Fixed some comments and added an NULL pointer test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1712 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 09:49:10 +00:00
okir
0d78f07499
- improved C_Decrypt testing
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1711 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 09:32:58 +00:00
okir
30e04cef59
- Implemented keep-public-key and sc_pkcs15init_remove_object as
...
suggested by Victor Tarasov.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1710 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 14:30:24 +00:00
okir
13bf8814ef
- in sc_pkcs15_read_file, properly destroy objects in case of error (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1709 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 13:40:52 +00:00
okir
09b2730497
- implement sc_delete_record (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1708 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-06 13:33:32 +00:00
aet
759ed8df49
- pam_opensc rewrite checkpoint commit
...
- rename some functions
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1707 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-05 18:44:49 +00:00
okir
ec52d80408
- properly handle pubkey_label in key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1706 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-05 08:56:32 +00:00
okir
f6aa07d991
- Another fix from Remo wrt keygen_args.pubkey_label
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1705 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-30 08:20:52 +00:00
okir
8a97a69d1d
- C_CloseAllSessions would block on some Win32 versions because it tried
...
to acquire the global pkcs11 mutex twice.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1704 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-30 08:00:10 +00:00
okir
f761d1504f
- small jcop driver fix from Chaskiel
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1703 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 23:21:47 +00:00
sth
292e13b7d9
Add the JCOP card code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1702 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 20:50:58 +00:00
aet
20a707002c
- Install unix.h and win32.h as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1701 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 16:54:31 +00:00
okir
b552bccfd3
- signature tests would fail on cards with several keys of different size
...
(fix by Chaskiel)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1700 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:15:04 +00:00
okir
beb86f351b
- util.c:connect_card() now locks the card; removed sc_lock calls from
...
calling applications (based on a bug report by Chaskiel)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1699 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:06:28 +00:00
okir
e03cc716e2
- When testing signatures, don't bail out of C_SignInit returns
...
CKR_MECHANISM_INVALID (Chaskiel Grundman)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1698 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 13:03:48 +00:00
okir
8a4a5f0331
- Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1696 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 12:28:37 +00:00
aj
4e48b7778a
new manpages for cardos-info and pkcs11-tool,
...
both written my Joe Phillips.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1695 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 12:01:43 +00:00
okir
5db7585bb0
- Minor bug fix in new_pin(), patch by Victor Tarasov
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1694 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-29 11:52:33 +00:00
sth
6952fb4030
Made a seperate function for the login functionality, and split test_kpgen_certwrite() into 2 parts, with a logout - unload lib - load lib - login between them
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1693 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-23 16:31:09 +00:00
sth
f017da5102
Fix: no copying done from in to out in case of SC_ALGORITHM_RSA_PAD_NONE padding (by Chaskiel)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1692 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-23 10:48:29 +00:00
aet
3dbb26ad6a
- Linking changes, don't link libpam to pam_opensc etc.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1691 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-22 22:07:02 +00:00
aet
e18b7117cd
- Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1690 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-20 14:41:05 +00:00
okir
78febf36cf
- in pin_cmd, don't overwrite max_length if set by caller
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1689 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-19 09:56:57 +00:00
okir
ae5dcea891
- created new function profile->ops->init_card for card-specific
...
initialization at the pkcs15 creation stage
- Added cryptoflex init_card from Stef. This function reads the card's
serial number from 3F000002 and puts it into the pkcs15 serial number
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1688 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-19 09:29:56 +00:00
sth
5bbe78a8fe
sleep(sec) = Sleep(1000 * ms) on Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1687 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-19 06:52:38 +00:00
aet
7d3fc55736
- Minor build and C++ warning fixes
...
- pkcs15init: Use u8 for pin variable
declarations like libopensc does
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1686 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 21:37:34 +00:00
aet
f5aeedf554
- Obsolete
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1685 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 21:30:28 +00:00
aet
b706b298c9
- Revert parts of the previous patch, use void *func
...
instead of struct sc_reader_driver *(*func(void);
as _sc_driver_entry is used for both, reader and
card driver lists.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1684 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 19:13:13 +00:00
okir
5dda541b7e
- made apdu_masquerade functionality available to all readers, not just pcsc
...
- added new parameters max_send_size and max_recv_size, roughly corresponding
to the old max_le (SC_APDU_CHOP_SIZE) parameter. You can now set this
chop limit per driver class (pcsc, openct, ctapi), which sets
driver->max_{send,recv}_size. This value is copied to
card->max_{send,recv}_size in sc_connect_card, and can be overridden
by the card driver.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1683 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 16:35:28 +00:00
okir
af37c4e026
- do not access file afterdeleting it (S Bakkal)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1682 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 08:00:27 +00:00
aet
c2083ba406
- Add HAVE_UNISTD_H
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1681 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-17 12:15:11 +00:00
okir
4d378d1cb8
- properly set key usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1680 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-17 07:35:55 +00:00
okir
a569ef57c7
- Display better pin prompts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1679 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 14:41:04 +00:00
okir
bca2a9f233
- added GPK on-board keygen (based on code by Chaskiel)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1678 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 14:32:16 +00:00
okir
b2074743b2
- reduced sc_lock/unlock debug messages even more
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1677 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 14:31:12 +00:00
okir
0996f39779
- added ATR for Italian eID card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1676 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 11:07:32 +00:00
okir
8ed95baff1
- Updated previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1675 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 11:04:01 +00:00
sth
6b66973692
Prevent running off the end of the buffer if the asn.1 is invalid (Chaskiel G.)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1674 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-16 08:01:36 +00:00
aet
83a5cb1426
- Ach, forget the previous commit. Just use DBG(printf()); for
...
debugging purposes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1673 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-15 11:28:20 +00:00
aet
d9f8c7d879
- error/debug -> sc_error/sc_debug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1672 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-15 10:51:51 +00:00
aet
13030f54b1
- Minor bundle handling fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1671 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-12 09:32:34 +00:00
aet
d6713aff9a
- Minor naming convention harmonisation for pc/sc and ct-api
...
related things
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1669 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-10 14:52:58 +00:00
aet
4203227a77
- Fix for the previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1667 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-09 19:35:17 +00:00
okir
ab9d7bb7ff
- removed some dead debugging code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1666 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-09 15:41:16 +00:00
okir
cec660fda1
- More cyberflex fixes from Martin Buechler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1665 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-09 13:57:20 +00:00
okir
0d41e05310
- turned key-domain printf into sc_debug call
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1664 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-09 12:01:51 +00:00
okir
cfdd62bd49
- When generating a key in pkcs15init, allow the caller to specify a
...
public key label (Remo Inverardi)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1663 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-08 12:02:28 +00:00
okir
b15bd6c453
- Added support for Cyberflex Access 16K, based on a patch by
...
Martin Buechler
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1662 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-08 11:43:21 +00:00
okir
85fa4ed0da
- Matched Cyberflex patch from Martin Buechler. Created a new
...
driver named cyberflex which shares a lot of code with the original
flex driver. This is a lot cleaner than having to create if/else
monsters.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1661 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-08 10:54:55 +00:00
okir
babc626e94
- use full OPENSC_INFO_FILEPATH when reading info file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1660 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-08 10:52:15 +00:00
sth
a239629d9c
Added a check for NSS-like keypair generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1659 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-04 16:43:41 +00:00
sth
4d68e1a28e
Fix: allow a C_GetAttributeValue(privkey, CKA_MODULUS) after a C_GenerateKeyPair() -- M. Buechler
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1658 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-04 16:42:03 +00:00
sth
720b2810ee
Little fix: forgotten to log an input param
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1657 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-04 15:07:26 +00:00
aet
4f30699b0d
- Avoid breaking source compatibility, add char *errmsg to scconf_context
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1656 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 14:09:15 +00:00
okir
ff9a45569a
- scconf_parse and scconf_parse_string now return an error message if
...
something went wrong
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1655 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 12:07:01 +00:00
aet
8684aff59c
- Fixed a return value for new scconf_lex_parse
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1654 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 12:02:20 +00:00
okir
dcce086a0e
- Fix the "get_info failed" error; based on a patch by Ludovic Rousseau.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1653 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-03 11:11:14 +00:00
aet
e18283d578
- Fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1649 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-02 17:51:37 +00:00
sth
c46b58fa34
Moved the cardinfo file to the pkcs15 DF, changed it's FID to 4946, and protected it against unauthorized changes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1647 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-02 15:51:52 +00:00
okir
5993b3d1c4
- fixed test for onepin option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1645 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 16:19:03 +00:00
okir
8ff09b7f77
- another fix to verify pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1644 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 15:49:09 +00:00
okir
a2c9afec7f
- fixed problem with pubkey encoding/decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1643 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 15:37:29 +00:00
okir
3c89fc8edb
- improved support for CHOICE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1642 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 15:35:17 +00:00
okir
5b1d6dd926
- Support raw RSA on decryption (Martin Buechler)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1641 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-26 13:12:26 +00:00
aet
d12b21f633
- Remove all references to usbtoken, use OpenCT instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1639 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-25 11:17:02 +00:00
okir
b6796d0404
- fixed suppress_error handling in sc_pkcs15init_write_info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1638 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-25 10:37:23 +00:00
okir
22312dbe17
- set ACLs on the profile info file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1637 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-24 10:21:36 +00:00
sth
af462ab212
Removed the exceptional (and incorrect) handling of the signature inputs of 16 and 20 bytes with pkcs11's CKM_RSA_PKCS11 signaturemechanism; and made sc_pkcs15_compute_signature() a bit more powerfull: if a digestinfo+hash input is given but the card only accepts hashes, the digestinfo is removed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1636 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-23 16:11:32 +00:00
sth
a843fd1d11
Little fix in test_signature()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1635 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-23 15:43:38 +00:00
sth
30fba619b9
Added an error code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1634 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-23 15:33:56 +00:00
aet
1435c8fcce
- Back out Olaf's change, as it seems to break existing
...
behaviour while parsing pkcs15 profile files. Although
officially any list value with an equal sign or braces
should be enclosured with quotation marks, but anyway.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1633 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-22 18:50:04 +00:00
aet
eeca8db27c
- Replace the default lex based parser with
...
Jamie's version. Please notify if you run
into any problems with the new parser.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1632 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-21 12:33:38 +00:00
aet
0cddfbaf46
- Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1631 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 20:46:15 +00:00
aet
17b5985bb8
- Fixed CRLF parsing
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1629 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 17:48:02 +00:00
okir
f9c572c92a
- allow stuff such as
...
blabla=
foofaah{}
to work
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1628 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 16:10:08 +00:00
okir
cf733acdad
- opensc-explorer.c ceased to accept verify data in hex notation, fix by
...
Martin Buechler
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1627 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 16:01:56 +00:00
okir
a632956e0d
- Deal with cards that require authentication before you can extract
...
the public key
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1626 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:42:10 +00:00
okir
43da7aac4e
- Improved OpenPGP handling; we're now able to sign things
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1625 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:41:28 +00:00
okir
59c38ee7cd
- Append newline to error/debug messages if not supplied by caller
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1624 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:40:22 +00:00
okir
624e345a58
- in sc_format_path, initialize path->count = -1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1623 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:40:01 +00:00
okir
a91824eafa
- increase SC_MAX_PIN_SIZE to 256 (OpenPGP cards have 254 max)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1622 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:39:38 +00:00
okir
28a5eb0204
- if ctx->suppress_errors is non-zero, log suppressed error messages
...
at least to the debug log
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1621 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:39:18 +00:00
okir
1648a1cdea
- SW 6A88 (referenced data not found) is now translated to
...
SC_ERROR_DATA_OBJECT_NOT_FOUND
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1620 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 15:38:43 +00:00
okir
3fbdc4fbe9
- Link the spy against libopensc (Patch by Mathias Brossard)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1619 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 14:16:20 +00:00
aet
ce07681404
- Add new hand written replacement for the lex parser
...
by Jamie Honan, not much tested yet.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1618 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 14:15:32 +00:00
aet
c13a417d8b
- Add scconf_list_toarray() by Jamie Honan
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1617 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 14:13:08 +00:00
sth
0b7b3dff9c
Support comparison of large object attributes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1616 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-20 09:17:57 +00:00
okir
961e116006
- Support direct encoding of certificates
...
- Allow more than one profile option (e.g. pkcs15+small+direct-cert)
- While creating the basic pcks15 structure, store profile options
in a special file on the card (3F002F01). All susequent operations
(adding PINs etc) will use this information instead of what's
given on the command line.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1615 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:37:02 +00:00
okir
1359d9e65d
- sc_pkcs15_print_id now prints to a buffer instead of stdout
...
- Now pretty printing Common Object Flags
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1614 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:33:12 +00:00
okir
9ee5c76a4d
- Support direct encoding of certs in the CDF
...
- Added prototypes for sc_der_{copy,clear}
- Changed sc_pkcs15_print_id to return const char *
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1613 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:31:52 +00:00
okir
1780e10bf2
- Somewhat improved debugging output
...
- sc_pkcs15_print_id changed to sprintf to a buffer rather than printing
to stdout.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1612 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:30:44 +00:00
okir
519c1e8e55
- The changed code in asn1.c requires that the PrKDF subClassAttributes
...
for private{RSA,DSA}Key be marked OPTIONAL (our handling of CHOICE is
still somewhat limited)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1611 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:29:54 +00:00
okir
ed5d12800d
- Read and write CDF entries with directly encoded certificates
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1610 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:28:02 +00:00
okir
12386d65c9
- When encoding a path, either encode _neither_ index/count, or both.
...
- Added new functions sc_der_copy, sc_der_clear to handle DER blobs
- Somewhat improved debug output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1609 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:22:52 +00:00
aet
0efe4659ed
- snapshot build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1608 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-17 18:54:10 +00:00
aet
c6f902911f
- Test commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1605 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-16 16:24:16 +00:00
sth
3b746f0b5e
Add room for SW1-SW2 in case of maximum reply size (256 bytes)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1604 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-14 10:14:54 +00:00
sth
43c4fe5ff5
Fix: correctly set the labels of the public and private key during keypairgeneration (Remo Inverardi)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1603 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-12 19:06:33 +00:00
sth
dfba889fba
Fix: allow keypair generation of keys other then the default length (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1602 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-12 18:28:03 +00:00
aet
2e898942c0
- ifdef RTLD_NOW
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1601 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-11 21:30:34 +00:00
okir
45d81af979
- do not test unblocking pins
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1600 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-07 11:15:27 +00:00
okir
8f72813624
- security: prevent format string attacks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1599 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-06 10:43:41 +00:00
okir
c85357baf9
- remain backward compatible - apdu_masq patch shouldn't break existing
...
config files that use apdu_fix
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1598 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 10:20:02 +00:00
okir
8e1443071c
- merged apdu_masq patch from Chaskiel Grundman
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1597 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 10:16:25 +00:00
okir
3d0e266886
- prevent problem with get/get_do ambiguity
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1596 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 06:54:30 +00:00
sth
f5f5f7f57c
Fix: link the simbolic PIN to the real name
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1595 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-01 19:13:21 +00:00
okir
64aaf18478
- Undid some of the previous changes. We now have a pseudo file system on the openpgp card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1594 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 17:18:34 +00:00
okir
f9eac7a8d8
- fixed put_key(SC_AC_SYMBOLIC)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1593 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:06:40 +00:00
okir
7ff9fe296a
- dont print prkey path if empty
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1592 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:02:54 +00:00
okir
839dab0fe4
- use sc_test_print_card instead of sc_pkcs15_print_card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1591 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:02:42 +00:00
okir
b3b3b02cf0
- Updated, now registers key objects as well (untested)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1590 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:01:35 +00:00
okir
36f170c2e7
- OpenPGP card now supports a fake file hierarchy (basically all objects
...
and constructed objects reprented as DFs and EFs)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1589 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:01:00 +00:00
aet
bb97c0d094
- Add new files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1588 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 13:59:27 +00:00
okir
13a11083e1
- initialize tries_left field to -1 when parsing AODF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1587 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:31:54 +00:00
okir
cb5e179042
- Moved p15 print_card function here
...
- print preferred_language, if given
- don't print pin path if there is none
- print tries_left if present
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1586 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:29:12 +00:00
okir
fd1272c767
- moved p15 print_card to tests/print.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1585 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:28:15 +00:00
okir
16ec507738
- Rewrote sc_pkcs15_bind_synthetic a little
...
- Started work on pkcs15 emulation for OpenPGP card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1584 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:27:14 +00:00
okir
d91ecdc245
- Moved sc_pkcs15_bind_synthetic to a separate file
...
- Moved sc_pkcs15_print_card to ../tests/print.c
- added dll_handle and preferred_language fields to p15card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1583 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:26:24 +00:00
sth
78949a9bcb
Make the PIN for the 'onepin' option look like a user PIN instead of an SO PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1582 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 07:48:35 +00:00
okir
ee68df94f0
- added some support for OpenPGP cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1581 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:50 +00:00
okir
0f32616c20
- added initial support for openpgp card driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1580 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:22 +00:00
okir
99e999d64c
- added sc_get_data/sc_put_data
...
- added openpgp card driver
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1579 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:02 +00:00
okir
c072c5e0fe
- added sc_get_data/sc_put_data
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1578 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:03:41 +00:00
okir
ef4f132e61
- added SC_ERROR_DATA_OBJECT_NOT_FOUND
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1577 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:03:09 +00:00
okir
323240fa44
- small fix in mcrd_finish
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1576 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 15:43:19 +00:00
okir
7ea930a030
- return error if cflex_create_dummy_chvs fails
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1575 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 12:03:31 +00:00
okir
728a6a4ade
- Another broken commit message :-/
...
What the previous commit was all about:
If we store a pkcs12 files on the card, it stores a key @45,
and a CA certs @46. When storing another p12 file, we must make
sure we don't grab the next free key ID (46), because the
corresponding CERT ID is already taken. We must skip all IDs for
which a key or cert exists.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1574 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:47:37 +00:00
okir
d3d7664c11
- Changed the internal object search machinery quite a bit so it
...
can search for more than one type of object at the same time.
- When enumerating a DF as part of the search, no longer ignore all
errors.
- When parsing a DF, SC_ERROR_ASN1_END_OF_CONTENTS really means
we've just reached the end of data in the file, so return 0
instead
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1573 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:43:21 +00:00
okir
6e9412cd98
- When encountering the end of a SEQUENCE, while there should be
...
more items, we used to return SC_ERROR_ASN1_END_OF_CONTENTS.
That error code is reserved for the real end of content markers
though. Changed the return code to SC_ERROR_ASN1_OBJECT_NOT_FOUND
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1572 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:38:05 +00:00
okir
a9d9aa2877
- When storing a p12 bag, check if the CA cert is already present and skip
...
it if so.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1571 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:36:04 +00:00
okir
60892cd0a3
- added recommendation about 2 cert/key pairs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1570 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:13:11 +00:00
okir
c29e7d8510
- don't call sc_module_get_address when we dont have a dll handle
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1569 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-28 12:50:43 +00:00
okir
ead350c269
- now uses new sc_ui_get_pin function
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1568 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-24 13:20:18 +00:00
okir
5a27b4e81e
- Changed ui API to offer more knobs and dials
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1567 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-24 13:18:17 +00:00
aet
c693c4799c
- Merging between Makefile.am<>Makefile.mak
...
- Add ui.h to main distribution tarball, snapshots have
been broken for a few days
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1566 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-23 09:12:48 +00:00
aet
e62eea5351
- Minor cleanups and a warning fix
...
- sc_release_context: free ctx->preferred_language if set
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1565 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 18:16:21 +00:00
aet
28fcfde1fd
- Replace WIN32 with HAVE_UNISTD_H instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1564 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 08:51:41 +00:00
sth
23d1ca554e
Let the new UI code compile under Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1563 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 08:43:27 +00:00
sth
fc4cd7c1af
'Export' keychache.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1562 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 06:56:51 +00:00
sth
c57ac69e56
Fix: spurious error message (Chaskiel & Kevin)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1561 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 06:56:10 +00:00
okir
2b6516bd99
- allow to call scripts with --soft and -d
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1560 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 06:51:55 +00:00
okir
931a1dd28a
- added error/debug message support to ui.c
...
- sc_error/sc_debug now use the new ui code
- added language support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1559 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 06:49:59 +00:00
okir
8a5f130af8
- do an sc_select_file inside do_get_pin_and_verify in case we called
...
a pkcs15 function that enumerated the AODF
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1558 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 05:43:57 +00:00
okir
879bd50290
- call sc_pkcs15init_set_p15card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1557 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 13:30:12 +00:00
aet
4615d5eb87
- Add necessary automake conditionals to install-exec-local
...
rule, as it seems to be executed even though lib_LTLIBRARIES
is empty in some cases.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1556 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 12:50:04 +00:00
aet
7d34d6b6ee
- Sort filenames
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1555 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 12:48:38 +00:00
okir
5791395e74
- Added new user interface code (not used yet)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1553 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:12:32 +00:00
okir
f730572f34
- install ui.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1552 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:12:07 +00:00
okir
a644d83d68
- added message for SC_ERROR_CANNOT_LOAD_MODULE
...
- changed the wording of some SC_ERROR_KEYPAD_* messages
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1551 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:11:50 +00:00
okir
72788e32ec
- added SC_ERROR_CANNOT_LOAD_MODULE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1550 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:11:19 +00:00
okir
ae2cfe8a46
- sc_pkcs15_find_pin_by_reference now searches by reference _and_path_
...
- profile->p15_card renamed to p15_spec, as it reflects what _should_
be on the card
- added profile->p15_data, which is what _is_ on the card
- make do_get_pin_and_verify use the sc_pkcs15_find_pin_by_reference
properly.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1549 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:05:35 +00:00
okir
9e70efba8a
- sc_pkcs15_find_pin_by_reference now searches by reference and path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1548 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:02:48 +00:00
okir
70597d4b14
- fixed change/unblock pin with implicit test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1547 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:59:11 +00:00
okir
8368731ae4
- disallow UPDATE on the Application DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1546 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:32:17 +00:00
okir
e7f0dbb4a8
- support UPDATE ACLs when creating a DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1545 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:31:45 +00:00
okir
c20fcf5e7b
- bump max number of apps per card to 8
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1544 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-19 18:05:03 +00:00
okir
aae679b28a
- tcos_card_ctl shoudlnt complain about unknown cardctls
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1543 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-19 18:02:37 +00:00
okir
c9de474d80
- Do not overflow signature test for 2K bit keys (fix by Chaskiel Grundman)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1542 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 17:07:34 +00:00
okir
8740ced3ee
- dont pin protect pubkey
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1541 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 17:02:44 +00:00
okir
9d78ea1a6e
- data files had ERASE=NEVER; which is obviously bad
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1540 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 12:51:12 +00:00
okir
1eacefc83c
- previous patch was bogus/incomplete
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1539 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 12:41:32 +00:00
okir
af0bd61682
pkcs11/framework-pkcs15.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1538 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 12:40:22 +00:00
okir
6ff1ecbc73
- honor --pin argument for pin pad readers, too
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1537 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 12:35:42 +00:00
okir
927ae344cc
- fix cflex key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1536 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 08:39:40 +00:00
okir
937e6c711d
- fix for cryptoflex key download
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1535 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 08:08:07 +00:00
okir
2a12ed3108
- Prepare for userConsent support: changed ops->create_pin to take
...
a sc_pkcs15_object_t instead of sc_pkcs15_pin_info_t argument.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1534 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-17 11:21:48 +00:00
okir
afcf39c6dd
- some more cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1532 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-16 14:32:42 +00:00
okir
81e6d67204
- On-board generation of non-repudiation keys did not work
...
- Minor cleanup
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1531 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-16 14:31:11 +00:00
okir
574d6f38ee
- added debian packaging files from Joe Phillips
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1530 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-16 11:41:24 +00:00
okir
c41c9b1c8e
- pin protection for keys was broken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1529 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-15 13:21:04 +00:00
okir
09cd60504d
- one suppress_errors-- too many
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1528 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-15 09:36:53 +00:00
okir
a80928e52b
- removed debugging print
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1527 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-15 09:36:33 +00:00
aet
14b49ccb81
- Forgot to commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1526 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 22:11:11 +00:00
aet
603ccec619
- Fixed nightly snapshot generation
...
- Link keycache.h to src/include/opensc
- Move mutex function declarations to opensc.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1525 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 21:56:56 +00:00
sth
cfcc191aa5
Change setlinebuf() to setbuf(), which is also availabel for MSVS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1524 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 11:23:18 +00:00
aet
eaf1f7afda
- Remove old callback error/debug functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1523 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 10:42:03 +00:00
okir
e968abd1a1
- dont barf on empty directories
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1522 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 10:10:24 +00:00
okir
7d7e07998d
- removed obsolete profiles
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1521 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:58:35 +00:00
okir
fffe5b79ef
- Error logging changes: replace ctx->log_errors with ctx->suppress_errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1520 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:57:50 +00:00
okir
f552395705
- Error logging changes: replace ctx->log_errors with ctx->suppress_errors
...
- remove error/debug callbacks; always use sc_error/sc_debug
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1519 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:57:29 +00:00
okir
734bceb682
- Error logging changes: replace ctx->log_errors with ctx->suppress_errors,
...
so that we can nest error suppression using suppress_errors++/suppress_errors--
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1518 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:56:50 +00:00
okir
5da3b6f168
- removed unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1517 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:14:13 +00:00
okir
c323d0a082
- the previous patch was bad; fixed it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1516 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:02:51 +00:00
okir
12a4ef75ef
- replace sc_pkcs15init_set_pin_data -> sc_keycache_put_key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1515 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 08:33:20 +00:00
okir
aad883149e
- removed some dead code inside #if 0/#endif
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1514 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 08:17:59 +00:00
okir
9f52b9e035
- Don't limit the number of times the --send-apdu option may be given
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1513 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 08:10:39 +00:00
aet
936ad78b02
- Some build/portability fixes for the pkcs15init rewrite
...
- Add sc_pkcs15_get_<drv>_ops(), yet untested
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1512 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 20:41:00 +00:00
aet
1bdcd2184c
- Revert previous patch, an alternative patch to
...
work around non-C99 and/or gcc issues coming up
soon.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1511 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 20:28:18 +00:00
sth
b66e24bf55
Small changes to make it work on non-C99 compilers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1510 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 20:16:40 +00:00
okir
a42044829c
- updated/added tests
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1509 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 16:13:38 +00:00
okir
23c1e81512
- pkcs15 rewrite
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1508 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 16:13:12 +00:00
okir
3d283fd925
- fixed a bug in the previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1507 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:52:03 +00:00
okir
45e820cdac
- added sc_pkcs15_find_prkey_by_reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1506 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:35:27 +00:00
okir
ecc469d570
- added some more errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1505 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:52 +00:00
okir
efb19cafe6
- slightly enhanced debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1504 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:38 +00:00
okir
bf7e801fac
- new path functions: sc_append_file_id, sc_compare_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1503 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:18 +00:00
okir
bdfffb2ffe
- allow all pins/puks to be specified on the command line for testing
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1502 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-12 19:57:32 +00:00
aet
4b205da3da
- Remove unused variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1501 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-12 08:34:11 +00:00
sth
7761dff1a0
Security fix: the flex_onepin profile doesn't allow the AUT1 key to change the PIN anymore. Also: it's possible now to add the SO pin to the flex_onepin profile
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1500 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-11 21:02:31 +00:00
aet
c5bd03af1c
- Add missing error->sc_error conversions and other
...
Assuan specific build fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1499 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-11 20:58:39 +00:00
okir
106351eb5c
- some commands used the wrong APDU case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1498 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-11 12:41:28 +00:00
sth
0cf455a56d
Fix: don't free() a static buffer (Ivo)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1497 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-10 14:48:40 +00:00
sth
f003360c17
Fix: added all required OpenSC libs to the link dependencies (Ivo)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1496 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-10 14:24:26 +00:00
sth
f0039499fb
Fix: added scdl.lib to the link list, and added all required OpenSSL libs to the link dependencies (Ivo)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1495 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-10 14:11:46 +00:00
aet
a61c95e204
Minor cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1494 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-08 06:46:48 +00:00
sth
e87ba3c387
Fix: add room for a 'last-flag' object (Ivo Pieck)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1490 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-06 14:22:03 +00:00
sth
2457faa1e7
Fix: when doing a sc_pkcs15init_generate_key(), the auth_id for the public key wasn't put into the PuKDF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1489 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-02 12:21:12 +00:00
sth
4abcfbd82e
Allow the pkcs15 data to be fetched by label instead of ID, as pkcs15 data objects don't have an ID (Danny De Cock)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1488 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-02 09:21:17 +00:00
sth
509119ac3b
Correctly add the label to a pkcs15 data object
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1487 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-02 09:18:12 +00:00
aet
fac4bd6008
Tweak out some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1486 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-02 08:29:32 +00:00
sth
ebca5c681c
Added C_DecryptInit() and C_Decrypt() for RSA keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1485 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-01 06:51:49 +00:00
sth
7730dc1199
Fix: read data as a binary file, not as ASCII
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1484 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-30 20:43:45 +00:00
sth
2fa013edf0
Fix: don't link by default with openssl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1480 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-30 09:19:06 +00:00
sth
7bd2723f6a
Some fixes that accidentially crept in
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1476 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-29 14:29:43 +00:00
sth
d9fbbc6ec3
Fix: the hash-based RSA algo's can only do sign/verify, no wrap, encrypt, ...)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1475 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-29 13:54:39 +00:00
sth
1055045267
Fixed a bug in the mechanism listing and made it more general
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1474 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-29 13:45:07 +00:00
aet
d208a04872
Cleanups to scconf handling
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1473 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-29 09:00:11 +00:00
sth
b5984fccd6
Some changes for the spy: (1) renamed opens-spy to pkcs11-spy, (2) exported all pkcs11 functions, (3) start the log with the name of the module-to-be-loaded, (4) first look in the opensc.conf file for the module and log names
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1471 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-28 19:22:30 +00:00
aet
671adbeb55
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1470 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
fe9eac7ad2
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1467 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
345914e9e2
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1466 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
0077a0876d
Fix various C compiler warnings and C++ errors / name conflicts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1463 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-25 09:33:16 +00:00
aet
38c5f50bcf
Remove old patches for OpenSSH 3.6.1p2, anyone interested
...
is probably already using version 3.7.1p1.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1454 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-18 09:18:36 +00:00
aet
88ab75272d
Back out previous change, wrong branch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1453 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-17 19:03:48 +00:00
aet
c221e36eb4
Disable pkcs15-ldap from the 0.8.1 release.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1448 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-17 18:59:38 +00:00
aet
886409a5f6
Updates for the 0.8.1 release.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1447 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-17 18:43:45 +00:00
sth
cdc2f67c60
Bugfix: return SC_ERROR_OUT_OF_MEMORY if malloc() fails (Kevin Stefanik)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1445 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-16 06:36:41 +00:00
aet
4e31110496
Fix bootstrap issues with Debian/automake-1.4
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1444 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-14 10:27:21 +00:00
aet
6857ffa11a
Update PKCS#11 library version to 0.8.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1443 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-12 10:36:23 +00:00
sth
c5eea382ee
Fix: C_GenerateKeyPair(), C_CreateObject() returned CKR_USER_NOT_LOGGED_IN if lock_login is set to false in the config file, because then the pkcs15_init functions do a logoff internally
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1441 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-11 12:11:52 +00:00
sth
05a5696041
Removed compiler errors under Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1440 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-11 08:01:06 +00:00
sth
1a36f46a5d
First include <stdio.h>, otherwise the #include <windows.h> turns wchar_t into an (unsigned) short (Unicode)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1439 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-11 06:02:43 +00:00
aet
c69ef430ee
C++ warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1438 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 22:20:26 +00:00
sth
68c885ebe1
Added version info to the Win32 binaries, and set the version number to 0.8.0.0 (4 numbers seems to be needed)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1437 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 14:08:29 +00:00
aet
b4ea04dfe4
Build fix for MacOS X.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1436 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 10:42:34 +00:00
aet
f2575116d0
Remove extra semicolons
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1435 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 10:41:48 +00:00
aet
b3907c5a7e
Add cert_support.c for pkcs15-ldap support, old legacy
...
code that needs to be removed at some point. Implemented
against OpenSSL 0.9.6, not much tested against 0.9.7.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1432 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-09 15:02:23 +00:00
aet
1ea97fbb5e
Add very preliminary and quick port of an old scam
...
code that implements ldap-authentication support,
needs to be rewritten for more specific OpenSC
usage some other day.
Work in progress, only tested with FINEID cards.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1431 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-09 15:00:51 +00:00
aet
09f2d373b2
Remove old cruft, enable p15-ldap support (PAM option auth_method=pkcs15-ldap)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1430 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-09 14:47:37 +00:00
sth
e6f3f9bb08
Increase log buffer size, so that 255 hex bytes still can be logged
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1429 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-08 13:38:07 +00:00
aet
0c37fe2f79
Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1428 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 19:18:38 +00:00
aet
bbc64d01ff
Indent sources
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1426 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 17:56:21 +00:00
aet
a02ef5e722
Bunch of generic compiler warning and C++ fixes
...
before indenting the sources, apparently OpenSSL
engines are not under a heavy development anymore.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1425 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 17:29:41 +00:00
aet
ba1a685c8e
Don't bother exposing sc_pkcs11_module_t and scdl_context_t
...
to public headers, use void instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1424 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 16:18:15 +00:00
sth
4f580598b0
Fix: don't print the contents of a NULL pointer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1423 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 13:36:59 +00:00
sth
1decd28185
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1422 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 13:35:33 +00:00
sth
1941bc79b8
Build the pkcs11 spy on Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1421 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 13:13:15 +00:00
sth
97f78bc65f
Fix: handle the 3rd argument of the Change PIN and Unblock PIN commands correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1420 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 05:57:33 +00:00
sth
842b5cd2f5
Fix: let this card driver do the unblocking itself, don't send it to the iso7816 code (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1419 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-05 20:16:52 +00:00
aet
5bd87ee0d0
Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1418 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-05 07:22:10 +00:00
aet
e66bb1ef16
Remove gcc specific code from usbtoken/openct drivers, untested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1417 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-04 16:41:49 +00:00
aet
915ddc91ca
PKCS#11 spy fixes by Mathias Brossard
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1416 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-04 13:50:30 +00:00
aet
3bd77d0f2b
Fix make distcheck to work again, weird that it
...
stopped working only after the opensc-spy patching.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1415 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 21:53:18 +00:00
aet
03de5ba32f
error -> sc_error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1414 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 21:31:14 +00:00
okir
3d7e8a964f
- Properly detect CarDOS lifecycle MANUFACTURING and report it as "OTHER"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1413 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:55:53 +00:00
aet
de2d058617
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1412 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:21:42 +00:00
aet
597877eb49
Move #include <windows.h> to winconfig.h in
...
order to minimize win32 specific code sections.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1411 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:18:57 +00:00
aet
d63e83d4e3
- Linking cleanups for libpkcs11 / opensc-pkcs11
...
- Build fixes for PKCS#11 spy module by Mathias,
so far untested. TODO: C_UnloadModule?
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1410 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:08:54 +00:00
aet
c0c3c339d7
SC -> OPENSC, old legacy from the libsc days
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1409 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 17:59:08 +00:00
aet
3a2a4463b1
Add PKCS#11 spy sources by Mathias Brossard <mathias dot brossard AT idealx
...
dot com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1408 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 17:19:08 +00:00
aet
86475ea7c0
- Remove sslengines/libpkcs11.h, it's almost identical
...
to libpkcs11's pkcs11.h.
- Move default PKCS#11 library defines to pkcs11.h,
so they can be used by 3rdparty applications as
well.
- Minor cleanups
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1407 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 17:07:15 +00:00
aet
5616dba08e
- Stop using unflexible automake conditionals when
...
building PC/SC, OpenCT or USBToken support,
use ifdef's directly in source.
- Because of above, add HAVE_PCSCLITE for winconfig.h
- Remove unnecessary includes for log.h, opensc.h and
errors.h in libopensc sources, they're already taken
care by internal.h.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1406 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 09:28:55 +00:00
aet
2c549055a7
EUSER: Cut'n'paste error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1404 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-01 08:48:55 +00:00
aet
bac2b601a9
Move scdl to it's own subdirectory, although it's merely
...
for internal purposes only.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1403 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-01 08:43:38 +00:00
aet
bd54ea7a62
- Move all dynamic loading related code to src/common/scdl.c,
...
probably needs some more work.
As a side bonus, we now have a working CT-API support for MacOS X.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1402 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 16:29:52 +00:00
aet
5835e752b5
Cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1401 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 16:26:59 +00:00
okir
dc42cd3fa7
- added sc_print_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1400 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:55:30 +00:00
okir
8fcab2199b
- slightly improved debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1399 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:55:17 +00:00
okir
ef42ba2010
- path cache wasn't cleared on error in flex_select_file
...
- slightly better debugging output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1398 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:54:45 +00:00
aet
d59a1034e9
- Cleanups to Makefile.am if / endif mess
...
- Don't bother checking OpenSSL engine
LDFLAGS if no engine detected
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1397 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-28 13:08:57 +00:00
okir
2fd5b30f1a
- added missing newline to error msg
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1396 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-28 12:51:33 +00:00