1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-27 06:12:56 +03:00

Commit Graph

  • 5048580db2 icsf: add function for destroying objects Marcelo Cerri 2012-12-05 15:42:40 -02:00
  • 298ba68519 icsf: change icsf_create_object to return data about the object created Marcelo Cerri 2012-12-05 15:41:46 -02:00
  • afce3f14ff icsf: add general function for login Marcelo Cerri 2012-12-04 12:30:49 -02:00
  • de99aae465 icsf: add shared function for destroying tokens and objects Marcelo Cerri 2012-12-04 12:26:19 -02:00
  • 8cdf212cc7 icsf: load and save ICSF specific data from NVTOK.DAT Marcelo Cerri 2012-12-03 21:38:39 -02:00
  • 85b94a24dd icsf: add token-specific t_init_token_data function Marcelo Cerri 2012-12-03 21:08:23 -02:00
  • e040000ff8 fix warning in icsf_stdll/tok_spec_struct.h CK_MECHANISM_TYPE is integer, not a pointer. Marcelo Cerri 2012-12-03 21:00:43 -02:00
  • 9a23a7290d add token-specific token data related functions This commit adds 3 new token-specific functions: init_token_data, load_token_data and save_token_data. Marcelo Cerri 2012-12-03 16:25:22 -02:00
  • 349aaea6d7 pass token details to token data related functions Marcelo Cerri 2012-12-03 15:54:37 -02:00
  • a55fa89dfd load token data only when it's needed Marcelo Cerri 2012-12-03 14:03:50 -02:00
  • df734295ab attach_shm: move token-specific call into attach_shm Marcelo Cerri 2012-11-29 16:33:14 -02:00
  • 4c86030f40 formatting: fix formatting of utility.c Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0". Marcelo Cerri 2012-11-27 17:06:17 -02:00
  • b027c3eecf conf: pass confname to ST_Initialize Marcelo Cerri 2012-11-26 17:27:43 -02:00
  • e33c4c00f1 conf: pass confname to DL_Load_and_Init Marcelo Cerri 2012-11-26 17:21:37 -02:00
  • 2892a962e2 formatting: fix formatting of api_interface.c Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0". Marcelo Cerri 2012-11-26 17:15:00 -02:00
  • 0a70ec8f12 formatting: fix formatting of apiutil.c Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0". Marcelo Cerri 2012-11-26 17:11:13 -02:00
  • 29a3f5edbf icsf: add token-specific attach_shm call Marcelo Cerri 2012-11-26 10:00:58 -02:00
  • 028970d377 shared memory: update existing tokens to use the new facility Marcelo Cerri 2012-11-26 09:59:36 -02:00
  • 51df74fade shared memory: add a new shared memory facility that can be reused by tokens Marcelo Cerri 2012-11-26 09:57:09 -02:00
  • c2112ab5b3 formatting: indent ica_s390_stdll/Makefile.am similar to other makefiles Marcelo Cerri 2012-11-23 11:18:16 -02:00
  • 6c0e3bc766 formatting: fix indentation in cca_stdll/Makefile.am Marcelo Cerri 2012-11-23 10:39:36 -02:00
  • 49252c32c7 shm: add slot ID to token-specific t_attach_shm calls Marcelo Cerri 2012-11-23 10:31:47 -02:00
  • 00a8f291a4 new_host: move user and group checks to a separated function Marcelo Cerri 2012-11-22 16:17:58 -02:00
  • 4047209818 fix formatting in icsf_stdll/Makefile.am Marcelo Cerri 2012-11-21 14:47:20 -02:00
  • 68a7d0a045 loadsave: make get_pk_dir available outside loadsave.c Marcelo Cerri 2012-11-13 14:24:53 -02:00
  • 51d53ef365 fix formatting for loadsave.c Marcelo Cerri 2012-11-13 14:21:01 -02:00
  • c02360c551 loadsave: fix multi-thread issue with static variable Marcelo Cerri 2012-11-13 14:10:47 -02:00
  • 2fb409beb6 icsf: add basic token-specific functions for ICSF token Marcelo Cerri 2012-11-12 14:51:38 -02:00
  • 958e7aa539 add slot id for init_token token-specific call Marcelo Cerri 2012-11-12 14:50:10 -02:00
  • 250b64ded0 data store: skip master key generation for tokens that doesn't use it Marcelo Cerri 2012-11-12 14:46:21 -02:00
  • 7d63a751f9 icsf: update ICSF token directory Marcelo Cerri 2012-11-08 11:09:54 -02:00
  • ff9224c265 New config tool for icsf token. Lists all the available icsf tokens. Allows user to add one token specifying the token name. Writes a slot entry in existing opencryptoki.conf and creates a /etc/opencryptoki/<token-name>.conf file and writes the token info as well asany authentication info into this conf file. Joy Latten 2012-12-12 00:14:21 -06:00
  • d4cd53285a Add functions for password based key derivation, master key handling and racf protection when using simple auth to bind to ldap server. Joy Latten 2012-12-10 17:41:50 -06:00
  • 74be323985 Move opencryptoki.conf from "{prefix}/etc" to "{prefix}/etc/opencryptoki". Thus have created an opencryptoki directory off of /etc to store the ock related config files. Also moved OCK_CONFDIR from under pkcsslotd so that other opencryptoki utilities can use it too. Joy Latten 2012-11-15 18:04:39 -06:00
  • 73c2746c7a Removed a DEBUG statement that failed to compile key_value is no longer a valid var in the function. Joy Latten 2012-11-30 09:47:51 -06:00
  • 50f839cf9a Added get_mechanism_info for icsf token. Debora V Babb 2012-11-12 15:18:16 -08:00
  • b245509aa0 Added mech_list for icsf token. Also added CKM_SHA384_RSA_PKCS and CKM_SHA512_RSA_PKCS which are two mechanisms not previously defined. Debora V Babb 2012-11-10 22:20:12 -08:00
  • 440a014edf Included headers needed in icsf_specific.c Debora V Babb 2012-11-10 22:03:57 -08:00
  • 0298bdcbea icsf: add function for object listing Marcelo Cerri 2012-11-07 11:24:55 -02:00
  • b052cb733e icsf: add function for object creation Marcelo Cerri 2012-11-07 11:20:58 -02:00
  • 26c62c1de4 icsf: add function for token listing Marcelo Cerri 2012-11-07 11:13:03 -02:00
  • c9bb0e140b icsf: add function for token deletion Marcelo Cerri 2012-11-07 11:10:31 -02:00
  • 4540dcd624 icsf: add function for token creation Marcelo Cerri 2012-11-07 11:04:23 -02:00
  • 6eff2b0932 icsf: add auxiliary macros for argument checking Marcelo Cerri 2012-11-07 10:56:30 -02:00
  • bcdf732ed3 icsf: add function SASL binding Marcelo Cerri 2012-11-07 10:53:26 -02:00
  • 338ff7f3a7 icsf: add function for checking if ICSF extended operation is supported Marcelo Cerri 2012-11-07 10:42:35 -02:00
  • ff956c36de icsf: force LDAP v3 during login LDAP v3 is needed for LDAP extended operations, such as ICSF. Marcelo Cerri 2012-11-07 10:39:33 -02:00
  • dcb7612dd0 iscf: add logout function Marcelo Cerri 2012-11-07 10:37:46 -02:00
  • 9aee4be5a3 icsf: add function for LDAP simple binding Marcelo Cerri 2012-11-07 10:32:44 -02:00
  • fdc6698d57 Make "confname" available in the opencryptoki.config and read by pkcsslotd. This keyword will be used to name token specific config file. Joy Latten 2012-11-06 13:45:42 -06:00
  • 143561385d Task11: various items 1. symmetric crypto calls in common should pass a key object to the token rather than a key_value. Thus removing specifics of keys from common and into the token for symmetric algorithms. 2. This meant that the symmetric calls in loadsave.c needed key objects. 3. SC_InitToken called generate_master_key twice; once directly and again in init_token_data(). Removed the direct call. Only need to call once. 4. SC_InitToken called save_masterkey_so() twice; once directly, and again in init_token_data(). Removed the direct call. Only need to call once. Joy Latten 2012-10-16 16:53:47 -05:00
  • b206bb0f0a Aggregate utility.c - Created token specific call for tokens attaching to shared memory since tpm does it very different. - Create token specific call for create token's spinlock, since tpm does it very different. Joy Latten 2012-10-14 16:20:54 -05:00
  • 03f705c267 Tokenize mech_dsa.c Debora V Babb 2012-10-14 12:25:24 -07:00
  • 6eb7c17eab Aggregate sess_mgr.c Debora V Babb 2012-10-24 14:56:46 -07:00
  • 2698db16e8 Include new ICSF token into opencryptoki This commit basically just creates ICSF token base dir and updates makefiles and the configure.in file. Marcelo Cerri 2012-10-19 15:29:52 -03:00
  • 1cb7c7fff5 Task8: remove tokenlocal.h Marcelo Cerri 2012-10-18 13:36:32 -03:00
  • 83ceb7710a Task8: remove unused and duplicated entries in host_defs.h I chose for keeping in this file all the macros and functions that don't fit to any other header file. Marcelo Cerri 2012-10-18 13:23:25 -03:00
  • 177b71548b Task8: aggregate TPM's host_defs.h to common code This is a refactor to allow TPM token to use the common version of host_defs.h. Marcelo Cerri 2012-10-09 13:46:38 -03:00
  • af6a0630b0 Task8: aggregate CCA's host_defs.h to common code This is a refactor to allow CCA token to use the common version of host_defs.h. Marcelo Cerri 2012-10-09 13:44:12 -03:00
  • ac19dde3b3 Task8: remove unused file c_extern.h Marcelo Cerri 2012-10-09 13:39:19 -03:00
  • c1b5927ba1 Task8: remove unused file c_defs.h Remove c_defs.h and update some comments. Marcelo Cerri 2012-10-09 13:37:38 -03:00
  • 34f522ede9 Task8: aggregate CCA's h_extern.h to common code Marcelo Cerri 2012-10-04 14:42:26 -03:00
  • fffd5deb38 Fix formatting of cca_stdll/Makefile.am Marcelo Cerri 2012-10-04 14:38:58 -03:00
  • 2be2b16c4c Task8: aggregate TPM's h_extern.h to common code This is a refactor to allow TPM token to use the common version of h_extern.h. Marcelo Cerri 2012-10-04 10:43:08 -03:00
  • a48eeb0735 Fix formatting of tpm_stdll/Makefile.am Marcelo Cerri 2012-10-04 10:40:00 -03:00
  • bcb807c890 Task8: update cca_stdll/defs.h to just contain CCA specific definitions This patch changes the CCA's defs.h header to use common/defs.h and redefine just what is necessary. Marcelo Cerri 2012-10-09 13:25:42 -03:00
  • d1d2cb738d Fix: remove unused file cca_stdll/asn1.c Marcelo Cerri 2012-10-04 15:46:41 -03:00
  • 6ed45fc822 Task8: remove unused file args.h Marcelo Cerri 2012-10-04 15:45:59 -03:00
  • d75d57532a Miscellaneous: Fixed whitespaces in several files. Also removed pkcs11_startup and pkcs_slot from configure.in otherwise build problems may occur. Added sysconfdir to opencryptoki manpage. Added cleanfiles to manpage Makefile Joy Latten 2012-10-03 14:25:55 -05:00
  • 61765dd881 Include stdlib.h to shmem.c Marcelo Cerri 2012-10-02 10:43:11 -03:00
  • a686d45088 Add missing function declarations to parser.y Marcelo Cerri 2012-10-02 10:35:35 -03:00
  • acffc74b8b Task6: use a generic mechanism to generate the master key Marcelo Cerri 2012-09-28 19:02:47 -03:00
  • a0d4bc9c5e Fix: replace spaces with tabs in TPM's Makefile Marcelo Cerri 2012-09-28 19:00:54 -03:00
  • 1cb8395382 Fix: include mech_list.c in TPM's Makefile Marcelo Cerri 2012-09-28 19:00:09 -03:00
  • 609bf299c7 Fix: remove warnings Marcelo Cerri 2012-09-28 16:40:22 -03:00
  • bde4c2c416 Task6: aggregate TPM's new_host.c Marcelo Cerri 2012-09-28 16:21:52 -03:00
  • e3a122265c Task6: update loadsave.c to support CCA Marcelo Cerri 2012-09-26 14:58:38 -03:00
  • 5038249a9b Task6: changes in loadsave.c to open and save master keys with different sizes. Marcelo Cerri 2012-09-26 14:44:17 -03:00
  • 78acdd7200 Task5: Update common/loadsave.c to support different kinds of encryption. Marcelo Cerri 2012-09-17 15:54:34 -03:00
  • 5dabf1e811 Fix formatting of common/loadsave.c Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0" Marcelo Cerri 2012-09-11 16:55:35 -03:00
  • 04a2b82098 Fix formatting of cca_stdll/tok_struct.h Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0" Marcelo Cerri 2012-09-11 16:36:17 -03:00
  • a790b8add4 Fix formatting of tpm_stdll/tok_struct.h Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0". Marcelo Cerri 2012-09-11 16:33:29 -03:00
  • 1b59359c81 Fix formatting of soft_stdll/tok_struct.h Used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0". Marcelo Cerri 2012-09-11 16:28:53 -03:00
  • a62cb4dc63 Fix formatting of common/tok_spec_struct.h Moved some comments and used "indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0". Marcelo Cerri 2012-09-11 15:12:13 -03:00
  • 95892641fc Task6: change CCA token code to use common new_host.c Marcelo Cerri 2012-09-04 15:14:08 -03:00
  • 86b23aa817 Change rng to use token_specific structure. Marcelo Cerri 2012-09-04 15:03:55 -03:00
  • a1d162115b Add a man page for opencryptoki.conf and remove the man pages for pkcs_slot and pkcs11_startup. Joy Latten 2012-09-26 14:58:11 -05:00
  • 180b74c471 refactor such that each c file includes only what it needs. Thus allowing to clean up pkcsslotd.h Joy Latten 2012-09-26 14:32:01 -05:00
  • d6469aca8a Remove all reference to AIX message catalogs. Joy Latten 2012-09-26 13:04:20 -05:00
  • 04978922c5 We should always used the code defined by PKCS64. Thus we no longer really need this define, thus removed it from pkcsslotd. Joy Latten 2012-09-26 12:53:50 -05:00
  • 33d0065a54 Remove files that are not being used. Joy Latten 2012-09-26 12:39:15 -05:00
  • 2b904e782f Remove reference to pkcs_slot and pkcs11_startup since we no longer need these. Allow necessary directories and permissions that were created by pkcs11_startup to be created by install. Joy Latten 2012-09-26 12:28:06 -05:00
  • 0023a4f238 Allow pkcsslotd to read opencryptoki.conf to determine slots and slot info instead of reading from pk_config_data. Joy Latten 2012-09-26 12:05:46 -05:00
  • 677dbf12e4 Remove reference to PER_PROCESS_MUTEXES Joy Latten 2012-09-26 11:20:03 -05:00
  • 0c5f440c12 Remove reference to SLOTD_DECLARE_VARs since it is never declared or used and looks to be a carryover from original AIX port. Joy Latten 2012-09-26 11:16:28 -05:00
  • cb8510d4b2 Remove reference to TEST_MUTEXES and TEST_COND_VARS. Joy Latten 2012-09-26 11:09:18 -05:00
  • 5b00ae319a Remove reference to NOODM define. Joy Latten 2012-09-26 11:07:56 -05:00
  • 8cd820cf7d Remove reference to NODAE define. Joy Latten 2012-09-26 10:52:57 -05:00
  • f2dc36d1c9 Added token_keysize to the token_specific_struct. Joy Latten 2012-09-18 17:06:12 -05:00
  • a29507db89 Aggregate key.c and key_mgr.c. Also modified mech_aes.c to take key value from CKA_IBM_OPAQUE for cca. Joy Latten 2012-08-30 19:07:00 -05:00