1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00

220 Commits

Author SHA1 Message Date
danielhjones
79fde6820b Compiler warning cleanup 2006-04-05 17:26:19 +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
8bc74e5fe9 Remove per-user data store support (BugZilla #20943) 2006-01-26 20:02:29 +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
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
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
kyoder
a3f867d1a5 compile files local to the tpm_stdll dir so that we don't have to port the token_specific stuff yet 2005-08-05 21:14:04 +00:00
kyoder
d28dea9ea2 put #ifndef NODH around the entire file 2005-08-05 21:13:28 +00:00
kyoder
9616396d0f added #ifndef NODH around DH functions 2005-08-05 21:12:29 +00:00
kyoder
0f747a39d3 wrapped DH code in #ifndef NODH 2005-08-04 22:45:13 +00:00
kyoder
7544786d37 added NODH #define 2005-08-04 22:44:41 +00:00
kyoder
9525489060 wrapped code in #ifndef NODH 2005-08-04 22:43:51 +00:00
kyoder
d794440880 #include tok_spec_struct.h 2005-08-04 22:21:11 +00:00
kyoder
378f6bd144 move order of #includes so that things compile 2005-08-04 22:20:52 +00:00
kyoder
5126b1a7d8 use the common args.h 2005-08-04 22:20:17 +00:00
kyoder
f013a04b45 added definition for CK_ENC_AUTHDATA 2005-08-04 22:19:56 +00:00
kyoder
b845a94b42 use the common args.h and change st_err_log to LogError calls 2005-08-04 22:19:26 +00:00
kyoder
066ae46540 compile in common code 2005-08-04 22:18:47 +00:00