sth
82c00d806c
Placing #include <windows.h> in wincofig.h causes compiler problems, better put it in each file that uses _MAX_PATH
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1234 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 12:59:22 +00:00
sth
5ed3d17ad8
Added sc_pkcs15init_change_attrib() that can change the label and ID of a pkcs15 key or cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1229 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 11:59:37 +00:00
aj
59da343eea
PATH_MAX is defined via limits.h (I hope that exists on all
...
systems). MAX_PATH is a typo. int r was never used.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1223 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-25 10:19:08 +00:00
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
5716f100cc
Fixed a type in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1183 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-04 18:37:52 +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
3e30e87cbd
- do_get_any_verify_pin: try to look up p15 pin info from card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1151 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-18 10:05:14 +00:00
okir
a496e8e42b
- added sc_pkcs15init_set_secret
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1146 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-17 09:10:32 +00:00
okir
8c7e571c89
- erase card fixes: forget cached secrets, and use sc_free_apps
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1123 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:33:04 +00:00
okir
7b34c2ecf7
- get_pin callback now takes additional label argument
...
- call get_pin for ALL pins, not just those listed in the profile
- add split key support to sc_pkcs15init_generate_key
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1116 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:30:46 +00:00
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
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
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
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
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
e9c8806c75
- properly set the TokenInfo label from user input
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@752 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 14:56:17 +00:00
okir
27c2369cee
- make sure we don't assign the same ID more than once
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@749 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 13:25:31 +00:00
okir
eaebdec8b0
- Change the way we handle default transport keys, attempt to reduce the
...
risk of users entering the wrong keys and locking their cards. Here's how
we do it:
- ask the card driver (via cardctl GET_DEFAULT_KEY) for default key
- invoke the front-end's get_key callback. If the card driver gave us
a default key, pass it as default value
- front end is free to use default key as-is, or prompt user
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@743 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 11:56:34 +00:00
okir
8ee38b9567
- handle SC_ALGORITHM_NEED_USAGE flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@706 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 14:14:28 +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
638a5b307c
- implemented generic erase_card functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@667 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-18 18:18:21 +00:00
okir
5b40de43ed
- various changes for on-board key generation
...
- key download and key generation for eToken works now
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@659 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 10:58:04 +00:00
okir
954cfb9f8e
- first steps toward eToken key download
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@640 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-07 20:29:07 +00:00
jey
7977f48aa3
- Protected OpenSSL includes with #ifdef HAVE_OPENSSL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@637 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-06 13:38:03 +00:00
okir
1b79b017e3
- started to implement on-token key gen support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@636 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-06 09:18:53 +00:00
okir
3eeaa8f0b8
- fixed bad return value in do_init_app
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@625 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 19:42:50 +00:00
okir
0c07f24de0
- added some eToken code (not functional yet)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@622 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 08:51:03 +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
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
okir
c66dcb5f33
- changed do_select_parent per request from Juha. Hope this doesn't break
...
anything... :)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@581 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 08:00:52 +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
okir
6b08ebf2eb
- fixed DF handling
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@573 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 10:01:01 +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
okir
b08c5ef702
- bug in check_key_compatibility()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@561 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:12:26 +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
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
55a14b0ebf
- all sc_pkcs15init_store_foobar functions now take an additional struct sc_pkcs15_object ** argument
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@516 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:14:12 +00:00
okir
01d4f00dea
- SO PIN is now optionally: if you want to use it, pass a PIN to
...
sc_pkcs15init_add_app. If you don't, don't.
- sc_pkcs15init_erase_card checks whether the erase_card funcion ptr is NULL
- check SO pin len in sc_pkcs15init_add_app
- In sc_pkcs15init_store_pin, if the caller didn't specify the auth_id,
select one automatically
- added sc_pkcs15init_unbind
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@499 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:49:39 +00:00
okir
13ab0f5993
- store SO PIN entry in AODF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@493 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:29:37 +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
jey
74d0b3d729
- Added user PIN finding to sc_pkcs15init_store_certificate()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@482 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 14:52:50 +00:00
okir
c1a8dc8c23
- implemented sc_pkcs15init_get_{serial,amnufacturer}, fixed bug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@466 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:56:21 +00:00
jey
41b184855b
- Fixed a bug in sc_pkcs15init_bind()
...
- Added PIN code padding in do_verify_pin()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@461 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:00:27 +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
1b113614b3
- miniscule API changes so that applications don't need to include profile.h anymore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@454 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:05:50 +00:00
jey
dc444cde54
- Cryptoflex now works with the new pkcs15init stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@452 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 22:10:36 +00:00
jey
e5496e9be9
- Partial support for PKCS #15 generation on MioCOS cards
...
- Some other small fixes to the pkcs15init code
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@450 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:42:29 +00:00
okir
059813818b
- the previous fix broke do_verify_pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@446 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 19:58:23 +00:00
aet
984b5b2a2b
Minor warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@445 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 15:06:13 +00:00
okir
5cba842fde
- shouldn't set key_reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@434 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 14:15:03 +00:00
okir
3b16e35af1
- rewrote parser to use Antti's scconf
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@427 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 11:52:30 +00:00
okir
f4ff4f4617
pkcs15-gpk.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@422 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 14:45:55 +00:00
okir
efa136e3cd
- added sc_pkcs15init_present_pin for juha
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@421 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 14:27:00 +00:00
okir
b6bf368fd2
- rewrite of the pkcs15-init stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@415 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 13:26:42 +00:00