sth
08c3cc90fa
Simplified the procedure to link with openssl on Windows: now you only need to slightly change Make.rules.mak instead of hacking in several Makefile.mak files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2077 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-16 21:12:38 +00:00
nils
d73ed35678
change auth_id -> id, show pin type, update pkcs15-init manpage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2073 c6295689-39f2-0310-b995-f0e70906c6a9
2005-01-13 21:52:39 +00:00
nils
609fb32a25
fix help message (supplied by Philipp Marek)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2027 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-20 20:05:47 +00:00
nils
efe5366af6
dump serial number only if we have one
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2025 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-20 08:03:40 +00:00
nils
e3dc91d562
serial number support for opensc-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2023 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-16 08:50:51 +00:00
aet
55e170e0ac
- Build / warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2014 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-15 13:53:36 +00:00
nils
895289c904
bugfix: don't try to get the CKA_MODULUS_BITS attribute from a private key
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1996 c6295689-39f2-0310-b995-f0e70906c6a9
2004-12-09 08:23:57 +00:00
aj
b0649c1e4f
build fixes by Vile Skytt�.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1973 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-04 19:14:58 +00:00
nils
c613908dde
check only for attributes which can be present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1970 c6295689-39f2-0310-b995-f0e70906c6a9
2004-11-03 18:14:58 +00:00
sth
17fa73fb5d
scdl.lib needed for for the link step due to the recent changes in dynamic loading
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1955 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-27 05:10:34 +00:00
nils
ace9520193
fix memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1951 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-24 17:20:29 +00:00
sth
34e3a42c8f
If you do pkcs15-init -C with the onepin option, you can now specify --pin and --puk instead of --so-pin and --so-puk (also allowed for backward compatibility)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1910 c6295689-39f2-0310-b995-f0e70906c6a9
2004-10-06 14:07:18 +00:00
sth
61301ca546
Don't use 0 as input to test signature-verification
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1907 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-27 08:38:51 +00:00
nils
3f5dc67981
print 'tries_left' only if the value is >= 0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1903 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-19 19:47:34 +00:00
nils
5ebccf1842
rename "StarCOS" -> "STARCOS SPK 2.3"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1900 c6295689-39f2-0310-b995-f0e70906c6a9
2004-09-17 19:13:30 +00:00
nils
3ffc201082
fix tab indentation and adds the tries left field to the --list-pins output
...
patch supplied by Martin Paljak <martin@paljak.pri.ee>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1896 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-25 20:55:07 +00:00
nils
fa0b71a99b
add "--raw" option
...
patch supplied by Jari Eskelinen <jari.eskelinen@iki.fi>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1894 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-21 14:26:16 +00:00
nils
bfe73f3b71
improve pkcs15-init + pkcs15-tool support for data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1887 c6295689-39f2-0310-b995-f0e70906c6a9
2004-08-14 13:43:17 +00:00
nils
8e3041850e
improve output for pkcs15 data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1878 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-26 19:18:17 +00:00
nils
bfd5b49436
pkcs15-init etc. support for pkcs15 data objects
...
patch supplied by Victor Tarasov <vtarasov@idealx.com>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1877 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-26 18:47:23 +00:00
aj
ef89694f00
Bug found by Stef Hoeben.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1857 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-21 22:11:12 +00:00
aj
c2459879d9
pkcs11-tool and pkcs15-crypt use libcrypto, so they need to link
...
with it. Found by Dirk Gouders.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1853 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-21 22:02:37 +00:00
nils
82ec09e92b
check return value
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1826 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-12 08:42:55 +00:00
nils
71e5f638c5
fix/cleanup passphrase input
...
Michael Bell <michael.bell@cms.hu-berlin.de> and Nils Larsch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1825 c6295689-39f2-0310-b995-f0e70906c6a9
2004-07-12 08:26:53 +00:00
nils
9fb99e7051
use opt_passphrase, if present, before asking the user
...
patch supplied by Michael Bell <michael.bell@cms.hu-berlin.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1804 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-25 15:44:33 +00:00
nils
a7e042fdb3
Add two new commands: update_binary and update_record.
...
update_binary can be used to write arbitrary data data (entered as
hex values) to transparent files and update_record can be used to
do the same to record files.
Patch supplied by Victor Tarasov <vtarasov@idealx.com> and Nils Larsch
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1803 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-24 17:25:23 +00:00
aj
856cbdebfa
fix short options as well.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1794 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-18 09:12:50 +00:00
aj
9b7cdbffad
cleanup debug/quiet/verbose handling.
...
now all tools accept "-v" for verbose
operation, and you can specify -v several
times to get more verbose i.e. debugging
output.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1792 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 20:13:12 +00:00
aj
4aa731e415
oops, forgot the select.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1791 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 20:04:53 +00:00
aj
209dad0217
fixed a small bug (!= instead of ==) and made
...
the code hopefully more readable.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1790 c6295689-39f2-0310-b995-f0e70906c6a9
2004-06-13 19:45:24 +00:00
aj
338a7c4eff
oops. O_BINARY is for windows, not linux.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1778 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-22 07:04:50 +00:00
nils
8cb6a3f94a
"--assert-pristine" workaround for Starcos cards (see comment in the patch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1776 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 20:11:56 +00:00
aj
9fb7334e71
Open file with O_BINARY on windows.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1772 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-21 07:33:49 +00:00
nils
b057f4055d
add support for "finalize" to pkcs15-init to activate the ACs for starcos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1766 c6295689-39f2-0310-b995-f0e70906c6a9
2004-04-17 09:25:30 +00:00
aj
6460502b98
add "rm" alias for "delete" and "exit" alias for "quit".
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1756 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-14 19:53:23 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
093adc8c89
Fix: don't DER-en/decode the data in a pkcs15 object
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1385 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-20 14:15:02 +00:00
okir
c74ba58d0b
- when asked to sign data, also consider SIGNRECOVER and NONREPUDIATION keys
...
- properly interpret return value of get_key
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1343 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-08 08:44:38 +00:00
okir
b33b74c37e
- cleaned up formatting
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1341 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-08 08:34:02 +00:00
sth
55d05ae222
Removed some unnecessary output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1336 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-06 11:18:21 +00:00
aet
3e1dd82f4f
Remove some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1332 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 17:28:29 +00:00
aet
a9f05d1100
Remove CFLAGS_OPENSC, cleanups to INCLUDES handling.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1316 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 09:50:18 +00:00
aet
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
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
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
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
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
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
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
4fb623d537
Some fixes/improvements, e.g. an ID now has to be entered in the same way as in pkcs15-init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1217 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-24 09:14:57 +00:00
sth
3c50c4d4e0
Some improvements to gen_keypair() and write_object()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1214 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-18 20:49:20 +00:00
sth
97da0b6149
Now you can specify your card profile for pkcs15init, both on the command line if you use the pkcs15init tool and in the opensc.conf file. Not specifying gives the default one, like before.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1212 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-18 08:07:12 +00:00
sth
694a649ab8
Add the AuthID when writing pkcs15 data objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1196 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-12 21:23:01 +00:00
sth
20053af948
A first implementation of write_object(), mostly for testing purposes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1182 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 12:30:02 +00:00
sth
c8c2cf725b
First implementation of C_GenerateKeyPair()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1179 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-03 13:57:52 +00:00
okir
81f2b7fe7d
- added --name option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1175 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 08:33:19 +00:00
okir
a6d6a1f628
- added option --secret
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1152 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-18 10:08:26 +00:00
aj
43931de993
Added --pin option to pkcs15-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1148 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-17 10:54:27 +00:00
okir
0070307a04
- redid option handling (you can now call it with -ECPa 01 -G rsa/1024 - except
...
there's a little bug that prevents this from working properly)
- implemented --assert-pristine
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1144 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 19:12:54 +00:00
okir
da8dfa9e66
- fix for previous change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1143 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 19:11:38 +00:00
okir
35a12ea868
- print_usage_and_die: skip hidden options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1142 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 16:41:53 +00:00
okir
0d3948ed42
- in test_signature: check CKA_SIGN before doing any signature tests
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1141 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 16:33:42 +00:00
okir
54f12273ed
- display LIST_FILES and CRYPTO ACs as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1139 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:25:13 +00:00
okir
fa123c4b75
- Allow "pkcs1-init --erase" without further options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1128 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:29:42 +00:00
okir
2e673aead6
- Do not try to C_Login if the token doesn't require a login
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1127 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:28:35 +00:00
okir
383f1b13a1
- added --no-prompt
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1124 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:33:31 +00:00
okir
99c1bf0da3
- keygen: when --split-key is given, try hardware keygen if usage permits
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1120 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:39:02 +00:00
okir
cf5c0fb3a8
- added --slot-label option to find slot by label
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1118 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:32:21 +00:00
okir
992fb077d9
- get_pin_callback takes an additional label argument
...
- add split key support to key generation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1117 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:31:46 +00:00
okir
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
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
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
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
189a692012
Fix in case no OpenSSL is present
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1065 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 20:43:02 +00:00
aj
131719b8c6
- add robert to Authors as contributor of bug fixes
...
- configure code finally working.
engine is detected and path to libcrypto.a is also set.
- roberts fix for reader-usbtoken.c
- card-gpk.c migraton to DES_ routines with #define for 0.9.6 openssl.
- man pages: do not ship pkcs15-profile.5 (.in is in the tarfile)
- assuan: replace "strcpy(stpcpy(.., ..), ..)" with
"strcat(strcpy(.., ..), ..)" which looks good, but nobody uses
assuan I guess ?
- declaration of sc_pkcs15init_set_lifecycle kills a warning
- #include <openssl/bn.h> kills a warning (or compile problem?)
- removed unused txt[256]; from p15_eid (kills a warning)
- now "ln -s" the signer plugin to the plugin directory.
- moved key_out direction to the beginning of a function (kills
a warning or compile error)
- changed pkcs11-tool option "quiet" to "verbose" to conform to
other tools.
- made algo argument to wrap_unwrap a "const" (kills several warnings)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1063 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 17:00:38 +00:00
sth
0523e1d1fb
Fixed an OpenSSL issue with MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1061 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 12:26:47 +00:00
sth
01896a8f2e
Added some files to ignore, also for Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1049 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 14:57:50 +00:00
okir
0f4c706e3b
- added tests for key unwrap
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1046 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:39:44 +00:00
okir
d2075b2c13
- implemented split-key support for CardOS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1038 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 12:38:08 +00:00
okir
93edc07115
- Allow command line --key-usage to be more restrictive than the
...
usage given by the certificate (pkcs12)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1036 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 09:39:09 +00:00
okir
095db2b907
- getting CKA_LABEL would not 0-terminate the string
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1025 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:53:44 +00:00
okir
f81929eb16
- moved the lifecycle stuff to libpkcs15init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1024 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:38:35 +00:00
okir
138346a018
- backed out AM_LDFLAGS change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1022 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:20:40 +00:00
okir
be09dc97f3
- when getting certs from a p12 file, put the subject name into the cert labels
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1019 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:16:08 +00:00
okir
aa6e626a79
- import all certs from a pkcs12 file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1017 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 11:50:49 +00:00
okir
e04b90f5b2
- a few more changes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1013 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 20:06:19 +00:00
okir
3b36593ada
- added pkcs15 unblock functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1008 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 14:51:42 +00:00
okir
d2b5c08857
- fixed unblock command when puk given in hex notation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1003 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 07:44:27 +00:00
okir
a9a766fafb
- more fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1002 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:29:29 +00:00
sth
91deef3734
Added cardos-info.exe
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1001 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:26:05 +00:00
okir
04b52edbb8
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@995 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 13:55:22 +00:00
okir
56e2e70e07
- new tool cardos-info from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@994 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:48:57 +00:00
okir
0eecac13bb
- support for lifecycle cardctl; cardos lifecycle support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@993 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:47:41 +00:00
okir
87a0cc51a1
- build fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@991 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:46:02 +00:00
okir
1e1eec0d8a
- getopt cleanup from aj
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@988 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:28:09 +00:00
okir
0ea0ce2ac9
- opensc-tool -f: don't crash on large or record structured files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@972 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:52:41 +00:00
okir
00d2d7ce4c
- minor printf fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@971 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:51:46 +00:00
okir
909b917694
- opensc-tool -f should handle files > 2K gracefully
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@967 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:28:44 +00:00
okir
556c216c4b
- make sure all APDU fields are zero when processing -s option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@954 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-25 11:19:49 +00:00
okir
e13720e391
- renamed connect() to open_reader_and_card()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@933 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-28 11:07:37 +00:00
sth
66f7de9378
removed unnecessary debugging
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@923 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:20:08 +00:00
sth
a7a5701e0c
added support for max pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@922 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:19:01 +00:00
sth
5265456cab
some cleared messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@911 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 11:09:24 +00:00
okir
23d686576e
- fixed minor compile warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@904 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-10 14:08:54 +00:00
sth
0e691fb13e
added support for pin pad readers + change pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@898 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 13:55:22 +00:00
okir
f71e2b0c5e
- Added test for WaitForSlotEvent
...
- fixed a bunch of compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@896 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:23:05 +00:00
sth
0b84c49f9a
now also caching if file->size differs from what sc_read_binary() returns
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@892 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-01 20:26:12 +00:00
sth
e8e738aac4
added signature test for all keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@891 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-31 15:32:27 +00:00
sth
d8871d9a46
some fixes + added cert viewing for -O option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@884 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:33:28 +00:00
okir
b9c3ec2ec4
- fixed two minor issues in p11 test code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@879 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-21 15:29:17 +00:00
okir
1a994ef760
- a few minor changes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@874 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:02:07 +00:00
okir
5b1eb43b93
- add some support for card removal in pkcs11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@867 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-19 17:47:07 +00:00
okir
a7551e1822
- Patches from Stef implementing PKCS11 RNG related functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@866 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-16 20:10:28 +00:00
okir
98e9561b5c
- added command "random"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@865 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-15 13:20:22 +00:00
aet
b1eff66867
C++ warning fixes (assuan excluded)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@863 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 19:55:45 +00:00
okir
7be0774cf2
- learn_card: the cache directory is now created by libopensc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@852 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:14:15 +00:00
okir
4a14b41dca
- reordered options for help message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@851 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:09:25 +00:00
okir
e60c9d705e
- fix the help message for --very-long-options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@850 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:09:01 +00:00
okir
e13804aa32
- fixed message in --learn-card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@848 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 08:45:27 +00:00
aet
d13155a9e3
Add pkcs11-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@846 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 23:47:04 +00:00
aet
037dbdfa13
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@845 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 23:46:24 +00:00
okir
67608feffb
- Win32 fixes in case openssl is not present (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@842 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:52:11 +00:00
aet
4384423879
Add missing case 'w' to handle_option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@837 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 12:06:50 +00:00
okir
608debfc15
- Tools did not work unless -w switch was given
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@836 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 11:03:17 +00:00
okir
ad7fb4ee05
- fixed help messages broken by previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@829 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 17:07:56 +00:00
okir
2699670762
- instead of calling sc_connect_card, use new function connect_card from util.c
...
This function will take care of the fine print and optionally wait for
card insertion too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@828 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 17:07:42 +00:00
okir
d1064f4417
- instead of calling sc_connect_card, use new function connect_card from util.c
...
This function will take care of the fine print and optionally wait for
card insertion too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@827 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:58:32 +00:00
okir
65ead88908
- New function connect_card() - this does all the work of connecting
...
to the card, optionally waiting for card insertion using sc_wait_for_event
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@826 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:57:46 +00:00
okir
e01554814b
- Patch from Stef: add support for --pin and --test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@823 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 14:33:17 +00:00
okir
079821b8c4
- Added --hash/-h to hash data (Stef Hoeben)
...
- Added function to translate CKR_* error codes to strings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@808 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 23:16:47 +00:00
aet
1ddde4e899
- Add access, mkdir and getpass wrappers into winconfig.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@806 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 14:43:13 +00:00
okir
882c5b9ed3
- implemented unblock command
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@800 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 19:42:51 +00:00
okir
6d324715da
- add missing help message for --module
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@797 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 10:49:28 +00:00
okir
9a472d4e65
- fixed rsa-ripemd160 signatures
...
- Added new option --module
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@794 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 09:24:58 +00:00
okir
337674d65a
- Added helpful comment about --use-default-transport-keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@789 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 11:34:35 +00:00
okir
b86d2e994b
- First shot at pkcs15 data objects from Danny De Cock
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@788 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 10:17:01 +00:00
okir
0c16b3d887
- Added shorthand rsa-ripemd160
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@782 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:15:56 +00:00
okir
29dd06ba9f
- more win32 fixes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@779 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 16:00:40 +00:00
okir
ffd4773e20
- New application: pkcs11-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@776 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:50:11 +00:00
okir
d997440546
- more Makefile.mak fixes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@772 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-12 10:08:23 +00:00
okir
23158d7a96
- win32 patch from Stef Hoeben
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@769 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 17:47:19 +00:00
okir
dc06b5f702
- When exporting the public key, fall back to the certificate object if
...
there's no public key with the given ID.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@765 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 14:22:26 +00:00
okir
96ba7bf4d3
- pass the --label argument as the token label when creating the pkcs15 app
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@753 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 14:56:50 +00:00
okir
946824dfe5
- implement get_key callback
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@744 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 11:56:51 +00:00
okir
8a01ceb81c
- fixed typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@728 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-28 16:38:26 +00:00
okir
b00579d40d
- Fix from Joe Phillips: fix help message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@726 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-28 15:44:32 +00:00
okir
09faf83bd0
- Fix from Joe Phillips: option mismatch in --help message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@725 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-28 15:43:54 +00:00
okir
718aa6e361
- Fix from Stef Hoeben for win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@724 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-28 15:38:55 +00:00
okir
34ba5b223c
- --card-driver was mapped to -D, but should have been -c.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@722 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-25 09:03:48 +00:00
okir
7d3c61349e
- fixed segfault in mkdir/create
...
- minor cosmetic change in do_verify
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@700 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-07 14:48:03 +00:00
aet
1d2c9e4c48
Cleanups for initial win32 port, untested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@696 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-19 14:04:52 +00:00
okir
172d86b31a
- fixed typos in help output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@695 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-02 10:55:52 +00:00
okir
3ffcfcf110
- added --reader, --key-usage command line args
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@694 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-02 10:50:53 +00:00
okir
3eab911651
- during card initialization, allow to enter SO PIN interactively
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@691 c6295689-39f2-0310-b995-f0e70906c6a9
2002-09-30 20:24:16 +00:00
okir
8db1dcf49b
- when entering new PINs on stdin, make the user re-type the PIN to avoid typos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@690 c6295689-39f2-0310-b995-f0e70906c6a9
2002-09-30 20:03:10 +00:00
okir
fa04f5e4ad
- Accessed file->type after freeing file (S. Henson)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@677 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-20 08:39:11 +00:00
okir
86a97c7e84
- allow output of signature to stdout
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@660 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 11:17:46 +00:00
fabled
7635468ed9
- Initial support for win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@654 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:52:56 +00:00
okir
041b46f52c
- corrected info output for Linear variable TLV EFs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@646 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:17:16 +00:00
okir
4f7b81ffc2
- added switch to force software key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@645 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:16:50 +00:00
okir
c967dd808e
- do not try to check PIN if key isn't pin-protected at all
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@638 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-07 20:21:11 +00:00
okir
cdeff04e58
- fix a few error messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@634 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-05 17:51:44 +00:00
jey
7c94d7d8d3
- Several patches to fix behaviour on 64-bit architectures (by
...
Jochen Friedrich)
- Fixed one bug in sc_copy_asn1_entry(), one in
sc_pkcs15init_add_object() and one in pkcs15-crypt
(patches also by Jochen)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@609 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-26 12:31:23 +00:00
aet
25cf9756ed
Minor GCC warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@606 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-20 09:19:41 +00:00
okir
7f6453d715
- sc_pkcs15_decipher now takes a flags argument, so we know when to
...
strip off any pkcs#1 padding.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@585 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-23 08:17:06 +00:00
okir
74b7e39263
- allow setting the cert_info authority flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@583 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 18:37:57 +00:00
aet
3dccd63989
- C++ support. Compiles with gcc/g++ for Linux, otherwise
...
completely untested.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@574 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 14:23:31 +00:00
jey
546f920fc1
- PKCS #15 objects and DFs are now stored with linked lists
...
in struct sc_pkcs15_card; this way we can have 'floating'
objects that don't belong in any DF, for e.g. generating
public key objects from certificates
- Removed some unused function prototypes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@572 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 09:22:44 +00:00
aet
aac9e6fdec
Minor warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@569 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 11:59:32 +00:00
okir
f6c8cb4847
- DSA signature support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@568 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 11:00:08 +00:00
okir
176e825130
- fix for storing DSA public keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@562 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:12:54 +00:00
okir
2a3e6e273d
- starting to support extractable keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@557 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:47:18 +00:00
okir
5fb2db70fe
- --read-public-key will work for non-rsa keys too
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@543 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 12:20:31 +00:00
okir
596220e821
- pkcs15-init does not require openssl anymore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@523 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-15 13:42:10 +00:00
okir
881de42ca0
- changed to reflext pkcs15init_store_foobar update
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@517 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:14:40 +00:00
jey
60fc3811eb
- Added support for user-defined serial numbers in
...
pkcs15-init and PIN flags in profiles
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@485 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-07 13:15:31 +00:00
okir
26d2f25b76
- include/opensc fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@476 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:49:03 +00:00
okir
23ff14fb06
- added erase command
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@471 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:04:35 +00:00
aet
076a26bbac
Rework the header structure
...
Currently fails to compile, unless you symlink
all the necessary headers to src/include/opensc
by yourself.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@459 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 13:48:00 +00:00
aet
d81d10ba90
Upgrade sources to use new headers, part #1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@458 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:44:51 +00:00
okir
10e95ba4b6
- don't include profile.h anymore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@455 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:06:10 +00:00
jey
1446fc11e1
- Made clearer the error message resulting from an incorrect PIN code entry
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@447 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:37:27 +00:00
okir
5d687de06f
- fixed exit code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@429 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 11:56:59 +00:00
aet
edfb4dd7f0
Minor compiler warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@424 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 20:58:18 +00:00
okir
776fa9030c
- support for SO pin during app initialization
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@423 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 14:46:32 +00:00
okir
c90dfd18e9
- moved most of the pkcs15init stuff to libpkcs15init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@417 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 13:29:30 +00:00
okir
c1f2403d61
- rewrote pkcs15-init; much of the init stuff moved to separate library
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@416 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 13:28:31 +00:00
aet
5a824f3fab
Add maintainer-clean patch by Andreas Jellinghaus <aj@dungeon.inka.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@411 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 09:38:06 +00:00
aet
ec6f8961b0
Don't hardcode initial debugging level and error/debug_file
...
pointers to the code, get the values from opensc.conf instead.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@386 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 21:56:13 +00:00
jey
f21926af00
- Started to add configuration file support to
...
libopensc
- Added typedefs for some basic structs (e.g.
struct sc_card --> sc_card_t)
- Added a second argument to sc_establish_context()
to identify the calling application
- Renamed sc_destroy_context() to sc_release_context()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@378 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 14:12:38 +00:00
aet
e9ee0ff146
- Fix compiler warnings for Solaris
...
- Use of PAM_MODULE_UNKNOWN broke pam_opensc for Sun based
PAM implementations, fixed.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@376 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 12:14:19 +00:00
aet
77c94c2793
'make dist' fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@372 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-22 13:56:44 +00:00
okir
e630a05dd5
- make it compile with readline versions that declare readline(char *);
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@343 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-18 13:24:06 +00:00
jey
c5e53429cd
*** empty log message ***
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@333 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 10:40:35 +00:00
okir
3838af2bd7
- now uses sc_pkcs15_free_pubkey
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@331 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 10:05:20 +00:00
okir
c6a9091f67
- fixed PEM public key header
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@325 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 09:01:11 +00:00
okir
879690f6f4
- add option --md5
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@324 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-14 17:02:08 +00:00
okir
a42a47ea33
- list and extract public keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@323 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-14 16:57:20 +00:00
aet
04e929da00
Fix minor compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@320 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 23:11:25 +00:00
okir
55dd227587
- fixed certificate download
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@317 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 20:23:18 +00:00
jey
8efe36617c
*** empty log message ***
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@306 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 10:48:07 +00:00
okir
83686af746
- added pkcs12 support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@302 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 16:27:21 +00:00
okir
b635539aa8
- Make the default size for DF files 128 bytes (FIXME: we need to be
...
able to set this on a per card basis in $cardname.profile
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@301 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 16:27:04 +00:00
okir
c287088275
- Make sure profiles get installed in $(pkgdatadir), and propagate this
...
directory name to profile.c (icky automake stuff)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@297 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 13:41:58 +00:00
jey
23e956cf9b
- Fixed PKCS #15 structure generation on Cryptoflex cards
...
and implemented a default profile
- Cryptoflex now reports its supported PK algorithms
correctly
- Various pkcs15-init fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@295 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 13:00:57 +00:00
okir
2c7a0ac27b
- Implemented download of public keys and X509 certificates
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@294 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 10:08:18 +00:00
okir
f7ce196a66
- now creating EF(DIR)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@293 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 14:13:11 +00:00
okir
b5bc6d74fd
- When storing a private key, always store the public portion as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@290 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 11:52:04 +00:00
okir
4fb78b7bdc
- forgot to add DFs to the profile's file list
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@288 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 10:18:59 +00:00
okir
3dd0c64f6a
- Implemented Parent/FileID stuff according to Juha's proposal
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@287 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-11 09:14:10 +00:00
aet
2a4afb8319
Include stdlib.h where needed
...
Warning fixes for various OS's
mcheck.h is not portable, so remove it
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@285 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-09 17:54:16 +00:00
aet
f0d4252ea0
Standardize the first header comment a bit
...
between various profiles
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@284 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-09 17:27:04 +00:00
aet
427801c755
Add flex.profile to EXTRA_DIST
...
Rename miocos-rw.profile to miocos.profile
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@283 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-09 17:21:10 +00:00
jey
7d2171c1d2
- Improved support for MioCOS cards
...
- Removed PKCS #15 creation from cryptoflex-tool
- Added PIN pad character option to profile.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@282 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-09 15:11:46 +00:00
aet
6264f03148
'make dist' fixes
...
Minor cleanups
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@279 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-08 16:06:10 +00:00
jey
3416461c4b
- Added X.509 algorithm id decoding and encoding to asn1.c
...
- Implemented a generic ATR matching helper function
- Made signing much smarter (should even work now)
- Added info about supported crypto algorithms to struct sc_card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@276 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-08 05:59:57 +00:00
okir
7477cb3c01
- fixed attributes etc of PuKDF entry
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@275 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-07 13:06:54 +00:00
okir
6827556f5d
- fixed error code handling
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@270 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-07 12:26:17 +00:00
okir
23678d0695
- fixed memory corruption problem
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@269 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-07 12:25:54 +00:00
okir
2fda14ebf5
- Rewrote large parts of pkcs15-init for greater flexibility, and with
...
an eye towards separating some of the stuff into a library that can
be used by pkcs11.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@267 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-06 17:49:47 +00:00
okir
ffe5629e89
- started to work on PuKDF stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@258 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-04 10:33:35 +00:00
okir
25f15f0ba1
- Added support for Juha's latest API changes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@257 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-04 09:33:46 +00:00
okir
12e6874f03
- Fixes for Juha's rewrite of sc_pkcs15_object and friends
...
- changes some names
- allow profile to set private key access flags
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@256 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-04 09:32:56 +00:00
okir
cbd72756ad
- Added default access_flags for private key objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@255 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-04 09:31:53 +00:00
jey
6b07ff64f6
- Reworked PKCS #15 structure a bit (MANY THINGS
...
WILL BREAK)
- Added support for public key DFs (not tested yet)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@251 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-03 00:32:28 +00:00
okir
e256d97f65
- if required, read pin from stdin (fixed key download)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@250 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-02 14:03:41 +00:00
jey
4ac49d6e88
- intermediary checkin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@249 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-01 11:52:55 +00:00
okir
f0cba186a9
- we may have readline.h but may still not be able to link the lib
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@245 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-26 21:11:11 +00:00
jey
4fa7283ae2
- added some missing files
...
- renamed card-setec.c to card-setcos.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@243 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-26 11:27:49 +00:00
jey
04dfc47d92
- added a driver for MioCOS cards by Miotec
...
- implemented EF(DIR) updating
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@242 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-26 11:23:25 +00:00
okir
ede029e1d7
- cleanup and misc minor fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@239 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 18:50:29 +00:00
aet
97a7957e35
Minor fixes to libreadline checking
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@236 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 18:43:16 +00:00
aet
4aa18a9ff9
Added support for checking libreadline and use it
...
for opensc-explorer if one is found.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@235 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 16:30:38 +00:00
aet
9879318a6a
Add missing help text for --passphrase
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@232 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 13:51:11 +00:00
aet
9c594003ee
Add pkcs15-init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@228 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 11:50:32 +00:00
aet
8d222efb57
HAVE_SSL cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@227 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 11:13:50 +00:00
aet
24c6f4176e
winscard.h / CFLAGS_PCSC cleanups
...
Merge OpenSSL configure changes with SCIDI
Build process changes for future CT-API support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@225 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 11:05:25 +00:00
jey
3fa1b27736
- implemented reader abstraction layer; now it's easier to
...
add support for e.g. CT-API
- renamed ops_data field to drv_data in struct sc_card
- copied coding style document from Linux kernel
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@221 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 19:32:14 +00:00
aet
1f4e5c4b6d
Minor changes to get rid of compiler warnings for various OS's
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@220 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-24 16:50:29 +00:00
jey
2adde8d501
- implemented RSA and DSA key downloading to GPK cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@219 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-23 13:38:01 +00:00
jey
f605dc631c
- a small fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@218 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-22 20:46:43 +00:00
jey
b5736099a2
- added some missing files from last commits, whoops
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@217 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-22 07:18:43 +00:00
jey
e78dc96440
- added ATR for RSA SecurID 3100
...
- exported pkcs15_encode_* functions
- minor modification to sc_file_add_acl_entry()
- boosted up opensc-explorer
- added error(), warn() and fatal()
- implemented a generic PKCS #15 structure generation tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@215 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-21 18:53:23 +00:00
jey
61fc1f9327
- all instances struct sc_file should now be
...
dynamically allocated with sc_file_new() and released
with sc_file_free()
- improved ACL's
- moved struct sc_card_error to opensc.h
- moved EF(DIR) parsing and encoding to dir.c
(encoding is not working yet)
- removed hst-test.c and filetest.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@213 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-20 09:56:47 +00:00
jey
709727d469
- added partial support for TCOS 2.0 cards
...
- default card driver now tries to do a GET RESPONSE
instead of SELECT FILE to detect the correct
CLA byte
- moved security attribute parsing from iso7816.c to card-setec.c
- added some more sanity checking to sc_check_apdu
- added 'debug' command line option to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@210 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-11 15:55:34 +00:00
jey
b4063302bf
- added partial support for GPK 4000
...
- made line parsing in opensc-explorer saner
- moved change_reference_data and reset_retry_counter to
iso7816.c, where they belong
- added partial libreadline support to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@206 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-10 18:04:03 +00:00
jey
17332ea10e
- last minute changes before the new release
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@194 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 18:37:12 +00:00
jey
c1cac5f311
- bumped up version number in preparation of the new release
...
- unified PKCS #15 DF decoding
- added PKCS #15 file caching
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@191 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 16:02:54 +00:00
aet
c8313fb07c
Fix compiler warnings, for digital cc this time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@187 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-22 16:26:19 +00:00
jey
623e5ad1b4
- changed PIN1 path in PKCS #15 structure
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@184 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 15:37:01 +00:00
jey
a016a59259
- added PKCS #15 structure generation to cryptoflex-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@182 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 12:49:00 +00:00
aet
6d533a1c3d
Compiler warning fixups for various compilers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@180 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 10:56:30 +00:00
aet
45a37df2f6
Add *.u and cryptoflex-tool to .cvsignore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@179 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 10:56:03 +00:00
jey
f1582007f6
- improved file selection on Cryptoflex cards
...
- fixed an incompatability in PKCS #11 module
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@178 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-21 09:05:22 +00:00
jey
d9792242cc
- fixed a bug with file permissions in flex_create_file()
...
- added RSA signature generation with Cryptoflex cards
- improved security environment handling
- implemented cryptoflex-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@177 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-20 21:20:09 +00:00
jey
e7c65bf669
- PKCS #15 generation is now in a semi-working state
...
- started coding crypto support for Cryptoflexes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@175 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 23:47:03 +00:00
aet
7fbc97efb5
Remove gcc-specific options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@173 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 12:04:43 +00:00
jey
e95f8aee84
- small bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@171 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 11:50:49 +00:00
jey
ffdc3c9a58
- fixed a goof in last commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@168 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 00:25:10 +00:00
jey
20adb4b39c
- continued to improve PKCS #15 generation
...
- fixed a few problems in sc_set_security_env
- started to implement Better (tm) object handling for
PKCS #15 objects
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@167 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-16 23:59:18 +00:00
aet
fec2138523
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@161 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-15 18:54:53 +00:00
jey
452b9d4193
- pretty much finished the DER encoder
...
- added delete and create file support for 'flex cards
- PKCS #15 DF's are now stored more flexibly; this makes
adding new types of DF's (such as PuKDF's) easier
- added 'get' and 'put' commands to opensc-explorer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@160 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-13 23:56:13 +00:00
jey
5c993e1136
- added PIN verification, file creation and file deletion to
...
opensc-explorer
- documented the core API a bit using doxygen
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@158 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 23:02:48 +00:00
aet
b75b88a8b8
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@157 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 13:49:54 +00:00
jey
9dc7054919
- added preliminary ASN.1 encoding support
...
- modified ASN.1 decoding to make it easier to
port decoder structures to the encoder
- fixed a recently introduced bug in card driver handling
- opensc-explorer will now allow only DF's to be cd'd into
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@156 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-10 12:33:56 +00:00
aet
e71e4492f3
Add opensc-explorer
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@153 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-09 13:50:46 +00:00
jey
269df3a6da
- created opensc-explorer tool
...
- increased support for CryptoFlex cards
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@152 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-09 01:03:10 +00:00
aet
6778d0b929
Add missing executables to .cvsignore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@151 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-08 20:03:57 +00:00
jey
7ff4c4544c
- added preliminary CryptoFlex 16k support
...
- added short names to card drivers
- moved various ISO 7816-9 functions to their correct places
- added write binary support
- renamed opensc-crypt to pkcs15-crypt
- split a part opensc-tool to pkcs15-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@150 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-08 13:56:50 +00:00
jey
9197babe53
- renamed sc_asn1_parse to sc_asn1_decode
...
- added capabilities and flags fields to struct sc_card
- added a mutex to sc_context for future use
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@148 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-07 18:23:34 +00:00
aet
b9da215428
Add CFLAGS_PCSC, CFLAGS_OPENSC and LIBOPENSC, use them
...
instead of hardcoding paths into ../libopensc.la,
-I../libopensc, etc.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@139 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-06 19:40:12 +00:00
aet
891c3dbf88
AIX cc fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@131 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-03 07:33:28 +00:00
aet
9bd6c8f9bb
Add getopt/getopt_long sources from GNU C Library.
...
Use them only if platform lacks support for getopt_long,
like most commercial operating systems do.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@129 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-02 22:15:31 +00:00
aet
8368c13f52
sc- -> opensc-
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@121 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-30 21:30:39 +00:00
aet
607271df53
Merges with SCIDI to help integrating build process with it
...
Remove some gcc specific flags from Makefile.am
Rename some header defines
size_t vs. int fixups
opensc.h: Define inline as null for other compilers than gcc, for now
Port pam_pkcs15 to compile for Solaris and HP-UX, untested
Fix compiler warnings
OpenSC now compiles cleanly for Tru64, AIX and HP-UX.
The only problem is the tools using getopt_long() (GNU extension),
to be fixed later..
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@120 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-30 21:17:34 +00:00
jey
f09933657a
- added missing files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@113 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 12:03:18 +00:00
jey
ad2e34cb6c
- added preliminary support for EMV cards
...
- changed a few function prototypes
- implemented access control lists to files
- added sc_read_record() function
- updated the NEWS file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@111 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-29 02:07:32 +00:00
jey
db0740d1ca
- fixed some compile warnings
...
- updated TODO
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@108 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-28 14:19:41 +00:00
jey
695ad01b28
- added preliminary EMV support
...
- made a few bug fixes relating to select_file operation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@107 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-27 17:25:10 +00:00
jey
2b99f2df14
- added default driver for unidentified cards
...
- added select_file operation in Multiflex driver
- added 'list-drivers' command to opensc-tool
- moved stuff from opensc.h to sc-internal.h
- improved locking behaviour
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@106 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-25 20:45:48 +00:00
aet
3775b18c81
Autotools update. Add bunch of stuff to configure.in to
...
make building of libopensc more portable to various
operating systems.
Requires autoconf 2.52 and automake 1.5.
Add all necessary files except Makefile.in, so you still
need to run ./bootstrap though. There's not much point
adding config.guess and friends without them, maybe later.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@94 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 22:27:20 +00:00
aet
baeae16754
Add opensc-ssh, pam_pkcs15-test, bas64, hst-test, lottery, p15dump,
...
pintest, prngtest, opensc-crypt and opensc-tool binary to .cvsignore.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@92 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 22:20:28 +00:00
aet
4fdbb11a32
Add .cvsignore skeleton
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@91 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 22:11:43 +00:00
jey
36965ca6eb
- updated to work with latest library version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@90 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 20:52:57 +00:00
jey
503cbd4782
- added base64 conversion tool
...
- updated to work with latest version of OpenSC library
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@84 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-20 12:16:05 +00:00
jey
166b369ffe
- meddled with command abbreviations
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@76 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-15 01:27:51 +00:00
jey
bd9396d87f
- updated tools to support latest version of the library
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@70 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-14 16:37:45 +00:00
jey
9fccf2c646
- added "learn-card" command to opensc-tool
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@68 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-11 14:53:22 +00:00
jey
61ca346203
- added PIN changing support
...
- started to work on nsplugin
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@60 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-30 11:57:21 +00:00
jey
939146ffed
- changed project name to OpenSC
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@52 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-24 13:32:52 +00:00
jey
674cbb1979
- added sc-crypt program
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@51 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-22 15:40:51 +00:00
jey
e0d6e06115
- small fix in sc-tool.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@49 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-21 22:40:27 +00:00
jey
ea594e3e50
- added very partial SSH support
...
- rearranged some functions
- added several new functions
- fixed handling of SW's
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@47 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-20 22:21:58 +00:00
jey
e5cf39b2eb
- small bug fixed
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@46 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-18 20:36:15 +00:00
jey
f2f3a30792
- added sc-tool
...
- removed certtest.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@45 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-18 01:52:32 +00:00