sth
9fe5baa4b7
added error code CKR_PIN_INVALID
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@932 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-26 07:27:42 +00:00
sth
5c1ae16ac8
fixed wrong return value in C_Finalize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@931 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 20:10:24 +00:00
sth
49760f9cfb
fixed some thread dead-lock bugs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@930 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 19:38:50 +00:00
okir
9173c9934e
- new pkcs15 object creation stuff
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@929 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-23 17:50:33 +00:00
sth
d9e99b0e17
little fix in C_GetInfo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@927 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 15:40:06 +00:00
okir
33133a8d5a
- prevent compiler warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@926 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:47:30 +00:00
sth
b0a8b1a26a
extra check in C_Logout
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@925 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:29:14 +00:00
sth
252cbd51d2
login should return CKR_ARGUMENTS_BAD if wrong pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@924 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-21 12:27:24 +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
a69a309c6e
NULL_PTR check added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@921 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 18:55:35 +00:00
sth
4d4920b661
Let C_FindObjectsInit return correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@920 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 18:54:52 +00:00
sth
b75ea0a0b2
more parameter checks + fix in previous checks
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@917 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 21:10:39 +00:00
sth
958658102d
added check for NULL pointers and uninitialized pkcs11 lib
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@916 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 13:44:36 +00:00
sth
c05cef9678
correct behaviour of C_GetSlotInfo at empty slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@914 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 16:53:49 +00:00
okir
870d9d9f66
- made card_detect() available to everyone
...
- C_GetSlotInfo now always does card detection, but only for the
reader which which the slot is associated
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@913 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 14:57:51 +00:00
okir
cf6037314f
- Introduce locks around all pkcs11 operations, in case the caller
...
is multithreaded and wants to access us from different threads.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@912 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-17 14:21:38 +00:00
sth
e1f4108c33
added error code CKR_USER_NOT_LOGGED_IN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@909 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-16 18:09:10 +00:00
sth
58985e51c2
reset first_free_slot during C_Initialize
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@908 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-14 16:59:23 +00:00
sth
d944d91714
added the CKR_DEVICE_REMOVED return code
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@907 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-12 14:20:53 +00:00
sth
7dcf350d7b
added p11 error CKR_PIN_LOCKED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@905 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-11 10:38:43 +00:00
okir
1c66025798
- Each reader now gets a fixed range of slots
...
- Each slot now shows the reader name in the description field
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@903 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-10 14:08:29 +00:00
okir
4ff3821a0a
- suppress bogus insertion events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@897 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:32:43 +00:00
okir
5276bbb1c4
- merged Stef's WaitForSlotEvent patches
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@895 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:20:54 +00:00
okir
76e7ce90e4
- fixed compiled warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@894 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:20:24 +00:00
sth
f6a343712e
added: opensc SC_ERROR_KEYPAD_CANCELLED -> pkcs11 CKR_FUNCTION_CANCELED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@890 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-31 12:50:26 +00:00
sth
16dfb55118
the slot's slotDescription is now the reader name
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@888 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:39:47 +00:00
sth
5c1b8d9411
selection between SHA-1 and RIPEMD160 sigs when 35 bytes supplied
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@887 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:37:54 +00:00
sth
dfc01ab7ed
typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@885 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:43:06 +00:00
sth
a383ed91d5
added return value + fix (needed if hide_empty_slots = true
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@883 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:17:08 +00:00
okir
7c6896ad73
- link against libscrandom.a, no libscrandom.la
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@873 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:57:23 +00:00
okir
c83a6468ac
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@872 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:56:53 +00:00
okir
4867251671
- fix sc_pkcs11_signature_size to return modulus size in bytes, not bits (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@869 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:52:05 +00:00
okir
69f8588f47
- added card_detect_all
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@868 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:50:33 +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
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
0af2a35b9c
- Another go at the empty slot/empty token issue
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@857 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-13 21:38:43 +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
okir
9c5782e2b2
- pin pad changes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@839 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:28:48 +00:00
okir
bd96ae9be3
- C_Sign* and C_Digest* now return the proper codes when the output buffer
...
is too small, or when the caller is doing and output buffer size query
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@822 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 14:28:50 +00:00
okir
1c22c55655
- Try to fix pkcs11.hide_empty_slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@818 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:40:11 +00:00
okir
0ffa466eab
- sc_pkcs11_slot_t typedef added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@817 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:39:59 +00:00
okir
36930668fb
- Added run-time option pkcs11.cache_pins, default false
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@816 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 11:09:45 +00:00
okir
8e6dc966b5
- Added run-time option pkcs11.lock_login
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@815 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 10:49:07 +00:00
okir
8abb5fa801
- Getattr(CKA_MODULUS_BITS) would fail for keys w/o certificate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@813 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-02 15:23:08 +00:00
okir
4419574608
- NUL-terminate strings returned by getattr(CKA_LABEL)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@809 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-23 17:02:05 +00:00
okir
8c7bfd1a3d
- define enough reader slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@807 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 20:50:25 +00:00
okir
d1fa35e1d0
- slightly changed previous patch; new flag hide_empty_slots
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@805 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-22 11:50:41 +00:00
okir
0babb91194
- Allow the admin to configure how many slots are used per card
...
(opensc.conf; pkcs11.num_slots)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@804 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-21 16:45:37 +00:00
okir
d22d1b13a4
- Another fix to mechanism handling: ripemd160 signatures should work now
...
- Got rid of get_mechanism_{list,info} in framework_ops, as they're not
needed anymore.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@795 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 09:27:08 +00:00
okir
fc26b49ee5
- Values of CKA_SIGN and similar attributes now based on the pkcs15
...
usage flags rather than on some hardwired defaults.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@792 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 19:26:18 +00:00
okir
2e4f640c2d
- More win32 fixes from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@785 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:44:48 +00:00
okir
647d4bcdef
- Register only those mechanisms the card actually supports
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@783 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:16:31 +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
21dfabee27
- New mechanism framework
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@775 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:49:12 +00:00
okir
a01b8d0b24
- New mechanism framework
...
- New libpkcs11 utility library
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@774 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:48:54 +00:00
okir
317a0663c9
- New utility library libpkcs11 - supposed to provide easy loading and
...
unloading of modules, and possibly a few other features in the future.
Needed by pkcs11-tool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@773 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 11:48:14 +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
2e6af762c3
- Added support for CKM_RSA_X_509 (Stef Hoeben)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@768 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 17:47:10 +00:00
okir
5a568eeb75
- translate SC_ERROR_WRONG_LENGTH to CKR_DATA_RANGE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@759 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-09 13:33:39 +00:00
okir
c55b8d8377
- Fixed CKM_SHA1_RSA_PKCS: if OpenSSL is available, use it to hash the supplied
...
data. If OpenSSL is unavailable, CKM_SHA1_RSA_PKCS is not advertised to the
user.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@750 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 13:50:23 +00:00
okir
08f4d67cec
- Avoid segfaults: if we cannot parse the certificate, do not create a
...
cert object.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@735 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 14:40:30 +00:00
okir
d4ac1aabaa
- do not crash if the application tries to log into a token w/o PIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@730 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-29 10:54:12 +00:00
okir
38280e479e
- use @libdir@ instead of ${exec_prefix}/lib - some platforms (such as
...
s390x and ppc64) put libraries into /usr/lib64
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@729 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-29 08:56:32 +00:00
okir
c3b479fc82
- in case of an invalid session/object handle, return OBJECT_HANDLE_INVALID
...
or SESSION_HANDLE_INVALID instead of FUNCTION_DAILED
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@721 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-22 09:10:10 +00:00
okir
6f4587f612
- Return correct error codes in GetAttributeValue in case of
...
ATTRIBUTE_TYPE_INVALID and ATTRIBUTE_SENSITIVE
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@720 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-22 09:09:04 +00:00
okir
828819a1ec
- get_mechanism_list now reports correct number of mechanisms
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@719 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-22 09:07:43 +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
1556f98ba5
- put the definition of USE_PKCS15_INIT into a place where it can actually work
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@675 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-19 17:13:46 +00:00
jey
2fc2357639
- Fixed functionality when pkcs15init is not compiled
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@674 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-08 20:53:40 +00:00
fabled
2c6e11fd51
- PKCS#11 module definitions; not PKCS#11 application. Removes compiler and
...
linker warnings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@671 c6295689-39f2-0310-b995-f0e70906c6a9
2002-07-10 06:28:52 +00:00
fabled
e2af6a1c8e
- Ported pkcs11 module to win32.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@670 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-20 13:16:22 +00:00
aet
5fba18d152
Fix for previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@618 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-03 15:28:43 +00:00
aet
2846d6ce3b
Preliminary MacOS X build support, untested so far.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@617 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-03 15:18:47 +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
33b5cf69a5
Minor ${prefix} -> ${exec_prefix} changes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@596 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-07 12:49:18 +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
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
9c5754e6ef
- handle non-RSA keys as well
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@549 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 18:34:32 +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
9f7fbf2b8c
- C_CreateObject now understands X509 certs (untested)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@520 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-13 19:00:37 +00:00
okir
f5dc78bf44
- minor fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@519 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:53:05 +00:00
okir
2b8b355992
- implemented C_CreateObject for public and private key objects
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@518 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:17:33 +00:00
okir
53a112eda2
- implemented C_InitPIN (based on pkcs15init)
...
- C_Login now understands the SO PIN.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@502 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:51:19 +00:00
jey
6e0b7dea2c
- Divided errors into different groups, added new ones
...
and renamed some
- Moved sc_strerror() to errors.c
- Added a 'sensitive' flag to struct sc_apdu
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@479 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 12:02:28 +00:00
okir
7e5af94455
- C_InitToken: after creating the application DF, switch to the
...
normal pkcs15 framework on the fly and mark all tokens as initialized.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@475 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:19:53 +00:00
aet
ddb49064d6
Minor warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@473 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:51:34 +00:00
okir
d4ee9df5ce
- added new pkcs15init framework that implements C_InitToken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@470 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:03:03 +00:00
okir
829e7f6712
- added initialize() function to card ops vector
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@469 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:02:41 +00:00
okir
d28bb6082a
- Added C_Initialize
...
- Minor bugfix in C_Finalize
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@468 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:02:18 +00:00
okir
84943898b9
- add CKF_TOKEN_INITIALIZED flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@467 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:01:43 +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
aet
fbf86e6728
Install headers to ${prefix}/include/opensc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@456 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:25:14 +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
okir
4502555bcc
- fix signing of raw md5/sha1 hash w/o pkcs1 gunk prefix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@397 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-26 20:05:28 +00:00
aet
fc170197d1
Add support for config.h
...
Remove old, obsolete and dead code
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@392 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 12:39:35 +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
aet
0cad904c86
Move opensc/src/scldap/etc to opensc/etc
...
SCLDAP_CONFIG -> SCLDAP_CONF_PATH
Upgrade the rest of the programs to use new core API
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@380 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 15:41:33 +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
okir
5006b0d151
- added some #include string.h statements for RH 7.2
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@357 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-21 09:36:38 +00:00
aet
34af339510
#include cleanups to get rid of compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@351 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 19:33:52 +00:00
jey
7b6371dae1
- Added Olaf's ASN.1 wrapping magic
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@350 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 19:31:56 +00:00
jey
ac3c33d26c
- Fixed debug output in pkcs15_create_slot()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@349 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 17:17:48 +00:00
okir
7952f81721
- implemented C_ChangePIN
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@348 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 15:04:14 +00:00
okir
853d414fc3
- implemented CKA_SUBJECT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@347 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 13:08:51 +00:00
okir
21911ebf4c
- by default, the token is marked write_protected
...
- fixed debug output when creating a slot with no PIN
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@342 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-18 12:49:46 +00:00
okir
f82c470cb5
- do not enable the RSA flag n netscape
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@341 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-18 12:49:08 +00:00
okir
51ccfe79f4
- made email decryption work in netscape
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@340 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-18 11:05:21 +00:00
okir
6953286d01
- first stab at C_Unwrap
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@339 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 15:22:41 +00:00
okir
563515dc46
- email signing now works from navigator
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@336 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 12:37:31 +00:00
okir
6d4988f12a
- set debug log file and libopensc debug level via environment vars
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@334 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-15 11:41:16 +00:00
jey
e280d2f444
- some autodetection magic in pkcs15_prkey_sign()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@305 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 10:34:05 +00:00
jey
31e78a3acb
- reverted a change in pkcs15_prkey_sign
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@304 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-13 09:51:49 +00:00
okir
252323e0db
- add support for PuKDF objects.
...
- lock the card in C_Login, and unlock it in C_Logout.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@300 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 14:36:40 +00:00
okir
66b00e06bb
- keep track of number of sessions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@299 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 14:36:07 +00:00
okir
5df7c9b8e9
- keep track of the number of sessions per slot, and do a C_Logout
...
when the last session is closed.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@298 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-12 14:35:50 +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
fabled
9419b353f6
- Patch from Olaf Kirch to implement of RSA exponent
...
and modulus retrievel in pkcs11 code
- Fixed the checking of PIN length in pkcs11 login
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@268 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-07 11:57:49 +00:00
fabled
34bcc5c833
- Fixed buffer overflow in C_FindObjectsInit
...
(patch from Olaf Kirch <okir@caldera.de>)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@253 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-04 06:58:12 +00:00
fabled
51c572ac1d
- Fixed PKCS #11 module to use the new PKCS #15 API
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@252 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-03 17:36:23 +00:00
aet
b098c097a1
Upgrade to current OpenSC API
...
Compiles, so far untested
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@229 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-25 12:04:39 +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
aet
ca4d5e5ba7
Add install-exec-local and remove opensc-pkcs11.{la,a},
...
like we do with opensc-signer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@204 c6295689-39f2-0310-b995-f0e70906c6a9
2002-02-06 12:32:22 +00:00
fabled
1e909781d7
Testing version. Use if you dare.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@200 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-28 19:29:35 +00:00
aet
d36e9ba93c
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@195 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-26 12:16:13 +00:00
fabled
e6ccf518da
- many bug fixes in pkcs #11 module
...
- pkcs #11 module now creates public key objects too
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@193 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 16:27:09 +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
ec83c728ad
Silence debug messages by default for upcoming release
...
README update
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@190 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-24 12:56:08 +00:00
jey
cfa366d7e6
- fixed a few typos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@188 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-22 16:43:38 +00:00
fabled
b9c165125b
* many bugfixes in pkcs11 module
...
* memory corruption fix in pkcs15 framework
* pool node deletion fixed in misc.c
* now detects smartcards in C_GetSlotInfo too
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@186 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-22 14:54:01 +00:00
fabled
82a2d72e6a
Many bugfixes including segfault in card detection and C_GetSlotInfo
...
now detects the cards too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@185 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-22 14:44:56 +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
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
aet
a55a073636
README cleanups
...
Fix compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@174 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 12:05:44 +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
aet
ee55164f07
Add missing .cvsignore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@169 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-17 09:37:58 +00:00
fabled
3cd20d774f
RSA header files.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@165 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-16 22:50:46 +00:00
fabled
6e6d7177f0
Rewritten implementation of pkcs#11 module. Semiworking.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@164 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-16 22:49:03 +00:00
fabled
7a7d7ee3d9
Preparing to commit new implementation of pkcs#11 module.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@163 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-16 22:43:22 +00:00
aet
c718344ddc
libsc -> opensc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@154 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-09 18:28:02 +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
jey
0a77426aa0
- added new versions of PKCS #11 header files
...
- fixed a typo in generic.c
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@134 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-05 14:56:52 +00:00
jey
5898cc7abc
- blank padding added to some string values
...
- changed a few hardcoded values
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@133 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-05 14:47:44 +00:00
jey
5cdd262385
- some fixes to the PKCS #11 module
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@125 c6295689-39f2-0310-b995-f0e70906c6a9
2002-01-01 17:25:10 +00:00
aet
a769be2ae4
Use -avoid-version, as we do with pam module.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@124 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-31 14:47:18 +00:00
jey
74f568b87e
- a small bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@122 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-31 13:30:57 +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
aet
4586a88efc
Move hex_dump() to generic.c
...
Convert all C++-style comments to C-style
Fix compiler warnings for various platforms
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@110 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-28 14:24:28 +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
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
ef3defb297
- applied a patch by Antti Tapaninen that fixes a memory leak
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@82 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-17 21:36:41 +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
5be3bd3b7e
- a few fixes for libopensc 0.3.2 support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@58 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-27 21:25:15 +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
a96d31344a
- converted C_Sign() to use the new API
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@50 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-21 23:28:03 +00:00
fabled
725a7177b2
Updated license to LGPL.
...
Added short description.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@37 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-06 18:43:36 +00:00
jey
18bab373b8
- changed license to LGPL
...
- moved ASN.1 function definitions from sc.h to sc-asn1.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@36 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-06 18:34:19 +00:00
jey
c57e2e266d
- moved libsc to its own directory
...
- added non-working MIME plugin for "text/x-text-to-sign"
- added pseudo-random number generator support
- split hst-test.c into smaller files
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@31 c6295689-39f2-0310-b995-f0e70906c6a9
2001-11-01 15:43:20 +00:00
fabled
aea833a5e8
Added copyright notes.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@30 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-30 16:16:18 +00:00
jey
f43f23050c
added:
...
- certificate parsing
- support for reading RSA public key modulus on the fly
- support for ASN.1 object id decoding and printing
- fixed a lot of u8 * --> const u8 *
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@28 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-25 11:56:26 +00:00
jey
e52d097f23
latest version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@26 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-24 14:02:47 +00:00
fabled
2f086f5261
Implementid basic signing functionality.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@24 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-22 21:09:17 +00:00
fabled
bff3bf8560
Updates.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@19 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-21 22:25:11 +00:00
jey
9ea1e4be9e
fixed PIN info reading
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@16 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-21 19:42:32 +00:00
jey
202c8e5227
- given ASN.1 decoding routines a facelift
...
- implemented certificate enumeration
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@13 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-21 18:12:48 +00:00
fabled
3088f6547b
Minor bug fixes.
...
Implemented the object finding properly.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@12 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-21 16:26:46 +00:00
fabled
0af1a516a6
Basic skeleton for object manipulation.
...
Some testing stuff.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@11 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-21 16:01:07 +00:00
jey
07671adadd
fixed tokenInfo parsing
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@10 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-21 15:42:56 +00:00
fabled
86bbeffc40
Added basic session management.
...
Implemented login, logout and change pin functions.
Improved card management.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@9 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-20 23:51:58 +00:00
jey
b5d584e5a7
modified to use latest SC API
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@6 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-20 16:53:51 +00:00
fabled
f3bf3dc0b8
Implemented dummy functions for PKCS#15 module with
...
functionality to read card reader names.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4 c6295689-39f2-0310-b995-f0e70906c6a9
2001-10-19 19:52:00 +00:00