danielhjones
37a8e8c46e
Fixed padding after 1 byte CK_BOOL to double align following structure.
...
Current padding worked but was incorrect.
2006-04-17 18:11:25 +00:00
danielhjones
ccfa31bef1
Checking in a version that uses structure padding rather than compiler
...
align directive.
2006-04-13 13:30:22 +00:00
danielhjones
8e1183fffe
RHEL5 updates for proper 64 and 32 bit token handling.
2006-04-12 14:04:05 +00:00
kyoder
d1a9e16907
merge with cleanup branch
2006-04-05 20:07:40 +00:00
kyoder
a27c15bc01
BUGFIX: Use correct OIDs in creating CKM_{ALG}_RSA_PKCS signatures over data
2006-04-05 17:25:18 +00:00
kyoder
f3325f819b
2 BUGFIXes: pass initFlags into token_wrap_sw_key so that custom keys can be wrapped; actually wrap the passed in key object in token_wrap_key_object
2006-04-05 17:23:53 +00:00
mhalcrow
7909919538
This memory in the proc_t struct needs to be allocated before it is used (BugZilla ticket #22308 )
2006-03-09 17:21:01 +00:00
mhalcrow
0b24d009d9
Initialize the head pointer to NULL (BugZilla Ticket #22200 )
2006-03-06 18:00:25 +00:00
mhalcrow
8e06a363a4
Allow the swtok to be a system token while the tpmtok is per-user (BugZilla ticket #20943 ).
2006-02-06 21:47:33 +00:00
mhalcrow
96ff2cc957
Fix TPM token wrt showing user pin init'd (SF Request #1425626 )
2006-02-06 21:33:16 +00:00
mhalcrow
c866794bae
Add code to free the the mechanism list on the heap in the ICA 390 token (BugZilla ticket #21201 ).
2006-01-31 17:14:28 +00:00
mhalcrow
371c206a13
Create etc/ directory if it is not already there (SF Request #1415659 )
2006-01-26 20:24:49 +00:00
mhalcrow
393d24ceee
Define version numbers only if not previously defined (SF Request #1415656 )
2006-01-26 20:21:22 +00:00
mhalcrow
8bc74e5fe9
Remove per-user data store support (BugZilla #20943 )
2006-01-26 20:02:29 +00:00
mhalcrow
784602ad92
Fix write to uninitialized memory (SF Request #1413862 )
2006-01-24 17:18:25 +00:00
mhalcrow
eba003165a
80-column rule
2006-01-04 15:05:50 +00:00
sbade
1a2e5bce26
Some crypto providers actualy change the initial vector after the operation is
...
performed so that the memory has the next iv in the chain. Having the static
string in the IV makes that a read only stack variable, causing a crash.
We really don't care about the IV from the provider, as we manage obtaining
the next IV, but this fix avoids the core dump that occurs when using providers
that exhibit this behavior.
old code is #if 0'ed out
2005-12-14 19:14:16 +00:00
mhalcrow
656a9eb288
Remove redundant build #define name
2005-12-12 23:35:04 +00:00
mhalcrow
d83c7c248a
Update the library version number to pull value from AC_INIT() macro version.
2005-12-12 21:33:22 +00:00
mhalcrow
4197c79de2
Apply mutex fixes for proper list management.
2005-12-12 17:44:37 +00:00
kyoder
2489094d8d
added support for loading the SRK pubkey using Tspi_Key_GetPubKey and 2 formatting changes
2005-11-09 16:59:43 +00:00
mhalcrow
2d8d9d89c4
Fix typo; remove unused VERSION typedef declaration.
2005-11-03 19:38:00 +00:00
mhalcrow
5f266a7f5c
Fix reference to shared object library; according to Linux standards, having an ".so64" suffix is incorrect. The library should instead be in a location like "/usr/lib64/", and the linker should resolve the right library when necessary.
2005-10-11 19:04:23 +00:00
mhalcrow
6fbc9d4bdd
Updates for mech list functions in token-specific structs.
2005-09-13 20:17:46 +00:00
mhalcrow
bc4b2d82ba
mech_aes needs to be compiled in too
2005-09-13 18:26:46 +00:00
mhalcrow
72078d485b
Remove reference to mech_dh in build list (included by accident)
2005-09-12 20:09:37 +00:00
mhalcrow
93766b061c
Make sure that the directory exists before we try to operate within it.
2005-09-12 14:46:23 +00:00
mhalcrow
7656496fa6
Forward-port SHA-256, AES, and mechanism list updates. It builds, but it requires more testing.
2005-09-01 22:57:04 +00:00
kyoder
8c1f8de443
removed unneeded code
2005-08-19 16:40:42 +00:00
tlendacky
bec21a2798
Create a helper macro for the TSS key type check
2005-08-18 22:03:21 +00:00
tlendacky
8e339dc98b
Add support for the CKA_HIDDEN attr to the object manager
2005-08-18 22:02:40 +00:00
tlendacky
40561ed0c4
Replace trousers header dependent function
2005-08-18 21:23:59 +00:00
tlendacky
ab396d2801
Make the TPM token use the tss headers instead of trousers headers
2005-08-18 19:46:24 +00:00
kyoder
24a8aba573
BUGFIX: R/W Public sessions will set the USER pin on a SetPIN call. Previously, it looks like the R/W Public sessions would return CKR_SESSION_READ_ONLY from a C_SetPIN call.
2005-08-18 15:01:16 +00:00
kyoder
9e4f54b9a3
Added a comment that clarifies why R/W Public sessions will set the USER pin on a SetPIN call.
2005-08-18 14:53:48 +00:00
kyoder
f63917b3de
in C_GetSlotList, set *pulCount everywhere
2005-08-12 19:54:51 +00:00
kyoder
693246bed7
added default_user_pin_sha
2005-08-12 16:15:42 +00:00
kyoder
f2f176a33e
backported per-user data store from tpm_stdll
2005-08-12 15:57:22 +00:00
kyoder
196afd36f3
imported mmap code from tpm_stdll for per-user data stores
2005-08-12 15:54:31 +00:00
kyoder
65fd975d36
moved default_user_pin_sha out to globals.c
2005-08-12 15:51:49 +00:00
kyoder
174aa51e95
moved default_user_pin_sha in from h_extern.h
2005-08-12 15:51:22 +00:00
kyoder
44d3f7af1b
print out more informative slot info flags
2005-08-11 21:00:57 +00:00
kyoder
d0dad781ad
print out more informative token info flags
2005-08-11 20:53:51 +00:00
kyoder
aaab69d816
Only set the PIN flags when an incorrect PIN error occurs.
2005-08-11 20:52:59 +00:00
kyoder
30b8f70e49
BUGFIX: New TSS headers means the old check for key type is now wrong
2005-08-08 18:04:38 +00:00
kyoder
85f2223060
s/mutex/rwlock/
2005-08-08 15:16:14 +00:00
kyoder
90ba090996
added #include <endian.h> since we're compile with _XOPEN_SOURCE=500
2005-08-08 15:15:42 +00:00
kyoder
1dd7c9c082
pthread_mutex_t should be pthread_rwlock_t
2005-08-08 15:12:39 +00:00
kyoder
cf4121b049
init the rwlock which resides in ../common/obj_mgr.c
2005-08-05 21:29:47 +00:00
kyoder
0571f2f32b
Removed in favor of common files
2005-08-05 21:14:51 +00:00