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

Commit Graph

  • bcd06629fe Cleanup and unify traces in new_host.c Harald Freudenberger 2017-05-12 18:24:36 +02:00
  • c9955a631f Autotools check if libitm is installed v3.7.0 Eduardo Barretto 2017-04-28 15:20:32 -03:00
  • 90a9103d36 Bumping up to version-3.7.0 Eduardo Barretto 2017-04-26 14:07:08 -03:00
  • 0d70593002 Update example spec file Eduardo Barretto 2017-04-26 11:36:51 -03:00
  • 48794526a5 Remove unnecessary mutexes from ICSF Eduardo Barretto 2017-04-10 19:34:49 -03:00
  • ec64aba002 Remove unnecessary mutexes from EP11 Eduardo Barretto 2017-04-10 19:34:15 -03:00
  • 807285c7a7 Remove/Replace unnecessary mutexes from common code Eduardo Barretto 2017-04-10 19:33:47 -03:00
  • fb275c7242 Remove/replace mutexes on object manager Eduardo Barretto 2017-04-10 18:16:04 -03:00
  • 1f5ea17fc4 eplace/remove mutexes on session manager Eduardo Barretto 2017-04-10 18:15:31 -03:00
  • 594b3daaf6 Change btree functions to be atomic transactions Eduardo Barretto 2017-04-06 15:00:59 -03:00
  • 46b51109c7 Enable transactional memory build and linking Eduardo Barretto 2017-04-24 16:00:01 -03:00
  • 094474be5a Add notification config into travis.yml Paulo Vital 2017-04-12 14:33:48 -03:00
  • 966d1e78cc ep11 token: fix wrong declared inline function Harald Freudenberger 2017-04-03 20:42:46 +02:00
  • 92d84985ac testcases: fix wrong testcase and ber en/decoding for integers Harald Freudenberger 2017-04-05 14:00:03 -03:00
  • d509a33528 ep11 token, cca token: Add ECDSA SHA2 support Ingo Franzki 2017-04-03 21:31:51 +02:00
  • 39c514a076 Check for 'flex' and 'YACC' on configure. Paulo Vital 2017-04-04 18:31:31 -03:00
  • 0148e04524 Update .gitignore Eduardo Barretto 2017-03-31 16:40:32 -03:00
  • da3d53da7f Changed inline function to static inline to be used in the same translation unit only Paulo Vital 2017-03-28 12:59:06 -03:00
  • 64d9f2a298 Add enable-debug on travis build Paulo Vital 2017-03-27 16:43:41 -03:00
  • 2f22f66902 ep11 token: ep11tok config file parsing rework Harald Freudenberger 2017-03-21 12:15:06 +01:00
  • ea8755025d Add new testcase for C_GetOperationState/C_SetOperationState. Eduardo Barretto 2017-03-24 14:35:01 -03:00
  • 25a05a8209 Remove unecessary CVS header content Paulo Vital 2017-03-15 12:07:11 -03:00
  • 5d07bbac11 Changed license of some source code file from Licensed materials to CPL-1.0 Paulo Vital 2017-03-15 11:45:35 -03:00
  • 54eb5f946a Add CPL-1.0 license header to source code files. Paulo Vital 2017-03-14 17:38:55 -03:00
  • d0874c2fc1 Update license header of source code files to CPL-1.0 Paulo Vital 2017-03-13 16:43:19 -03:00
  • fa56bba8c6 Changed license of ock_tests.sh from GPL-2 to CPL-1.0 Paulo Vital 2017-03-09 12:55:43 -03:00
  • 869ba187ba Add CPL-1.0 license header into Shell Script files. Paulo Vital 2017-03-09 12:48:18 -03:00
  • e892002372 Upgrade License to CPL-1.0 Paulo Vital 2017-03-09 12:35:27 -03:00
  • 744b1023ea Ica token: fix openssh/ibmpkcs11 engine/libica crash Harald Freudenberger 2017-03-08 15:40:47 +01:00
  • 89928620e3 Fix segfault and logic in hardware feature test Eduardo Barretto 2017-02-24 13:15:15 -03:00
  • e11a638de3 Fix spelling of documentation and manuals Paulo Vital 2017-03-03 10:30:44 -03:00
  • b7f2b148f1 Fix the retrieval of p from a generated rsa key Eduardo Barretto 2017-02-28 11:03:37 -03:00
  • 8bcb4e3e85 Coverity scan fixes - incompatible pointer type and unused variables Sinny Kumari 2017-02-21 14:35:39 +05:30
  • 1cc428a1c9 Bumping up to version-3.6.2 v3.6.2 Eduardo Barretto 2017-02-17 10:33:35 -02:00
  • 72250288b0 Check return code of each test on ock_tests.sh Paulo Vital 2017-02-15 14:33:53 -02:00
  • 2586cdc808 Check if token is already initialized in ock_tests.sh Paulo Vital 2017-02-15 13:37:03 -02:00
  • 4889e2dca4 Fix indentation of ock_tests.sh.in Paulo Vital 2017-02-10 17:02:53 -02:00
  • 236f775281 Fixed a segfault when an invalid session handle is passed in Derek D. Miller 2016-01-20 19:10:50 -06:00
  • 6bf34f7eee Update .gitignore Eduardo Barretto 2017-02-10 12:35:12 -02:00
  • de0f273fc3 Add backward compatibility to openssl older versions Eduardo Barretto 2017-02-10 12:18:37 -02:00
  • ab26ea0305 Add Travis CI support Paulo Vital 2017-02-09 11:54:46 -02:00
  • 2c5cc0455f Changed configure.in to configure.ac in some files Paulo Vital 2017-02-10 10:04:10 -02:00
  • 3fede173f7 Update autotools scripts. Paulo Vital 2017-02-08 15:55:38 -02:00
  • 974b601679 Merge pull request #1 from ppaz/update_readme Eduardo dos Santos Barretto 2017-02-07 16:54:13 -02:00
  • d9beb7be58 Update README and .gitignore Paulo Vital 2017-02-07 16:35:07 -02:00
  • 6b8682fdb1 Fixes on testcases found during test on ep11 token. Harald Freudenberger 2017-01-13 15:34:53 +01:00
  • fdf66b0e53 Bumping up to version-3.6.1 v3.6.1 Eduardo Barretto 2016-12-30 15:40:52 -02:00
  • 41a619560e SOFT: Free the context to improve code reading and maintenance Eduardo Barretto 2016-12-29 08:53:58 -02:00
  • cfd2072eba SOFT: Remove unnecessary else and add missing attribution Eduardo Barretto 2016-11-23 18:57:21 -02:00
  • e27aa8b38c SOFT: Fix soft token implementation of digest functions Eduardo Barretto 2016-11-08 17:40:48 -02:00
  • ee0fd89f60 TPM: Replace openssl-1.1 APIs that were removed Eduardo Barretto 2016-12-12 15:37:37 -02:00
  • 53bafb6214 CCA: Add support to EVP_MD_CTX API of openssl-1.1 Eduardo Barretto 2016-12-02 17:19:57 -02:00
  • 6f31581fe0 SOFT: Add support to openssl-1.1 RSA functions Eduardo Barretto 2016-12-02 17:05:58 -02:00
  • 5607dd1f85 ICSF: Add support to new EVP_CIPHER_CTX API (openssl-1.1) Eduardo Barretto 2016-12-02 17:03:41 -02:00
  • 31a3e0c541 Common: Substitute old DES API to newest DES API (openssl-1.1) Eduardo Barretto 2016-12-02 17:02:30 -02:00
  • 13360dfedf Bumping up to version-3.6 v3.6 Eduardo Barretto 2016-10-21 14:03:56 -02:00
  • 4d657914b0 Replaced deprecated libica interfaces Patrick Steuer 2016-09-21 22:04:06 -03:00
  • 60a5368d0d Bumping up to version-3.5.1 with some fixes v3.5.1 Eduardo Barretto 2016-08-31 15:25:37 -03:00
  • f9fbfd1c50 PKCSCCA: Fix symbol name to get the correct address Eduardo Barretto 2016-08-30 16:46:40 -03:00
  • f0fb4ee54c Bumping up to version-3.5.1 with some fixes Eduardo Barretto 2016-08-31 15:25:37 -03:00
  • 814e586170 PKCSCCA: Fix symbol name to get the correct address Eduardo Barretto 2016-08-30 16:46:40 -03:00
  • ddc45468df Make ica token mechanism list initialization thread safe Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Ingo Tuchscherer 2016-07-20 16:19:48 -04:00
  • c3e7a641db rsa block formatting performance improvement in ica token Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Ingo Tuchscherer 2016-07-20 15:52:45 -04:00
  • 5e3d763d5d Documentation on system resources used by opencryptoki Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-07-20 14:54:37 -04:00
  • 7d1d3131fd coverity scan fixes - memory leak and variable initialization Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-07-20 11:05:06 -04:00
  • aeea198cb8 create missing tpm lock directory from tpm stdll. tpm token does not use common/utility function to create token lock directory. Hence the patch to create missing lock directories was not working on tpm token. Modified the tpm stdll code to create the token lock directory if it is missing on the system. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-07-18 15:41:24 -04:00
  • a5290f7d2e dh testcase improvement: autodetect secure key token Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Harald Freudenberger 2016-06-29 17:50:07 -04:00
  • ca61c6e68e Coverity:Check for NULL returns Signed-off-by: Jakub Jelen <jjelen@redhat.com> Jakub Jelen 2016-06-28 16:23:06 -04:00
  • f45ddf572c Added support for rc=8, reasoncode=2028 in icsf token bz#142190 Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-06-21 17:06:25 -04:00
  • 2d03c60998 Fix for session handle not set in session issue. bz142186 icsf token uses the session handle for a session as the session_id in its own internal session state structure. The session handle is an index into the session btree and is not set in the SESSION structure after a new session is created. This causes session_handle to be always 0 and session_id to be always set to 0, causing issues when multiple sessions are active. This affects icsf token as it stores and uses session handle internally unlike other tokens. This patch sets the session handle into the session structure for all SC_API calls. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-06-21 16:43:53 -04:00
  • 8962d298d9 1) Create lock and log directories from pkcsslotd when they are not available on the system. 2) The patch also does basic sanity checks of asserting the presence of pkcs11 group, euid, gid of the process running pkcsslotd. 3) The patch also checks if token directories are available on the system. 4) The token lock sub-directories are created from opencryptoki while the token is configured via pkcsconf or when the first call to the token is made via C_Initialize. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Vineetha Pai 2016-06-03 16:34:54 -04:00
  • 786b6a4223 Downgraded a syslog error to warning Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-05-31 15:15:14 -04:00
  • 54013d80a2 icsftok memory leak fix identified in coverity scan Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Jakub Jelen 2016-05-19 17:05:46 -04:00
  • 165a1020da Added pkcs11 mapping for icsf reason code 72 for return code 8 Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-05-19 16:46:51 -04:00
  • e53bb8fbfb Bumping up to version-3.5 Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> v3.5 Vineetha Pai 2016-04-29 13:18:36 -04:00
  • 810ff32969 1. Minor test case fix and 2. Removed duplicate call Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-29 12:17:09 -04:00
  • 49ba45a7aa Making socket read more robust and using dynamically allocated buffer for socket read Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Harald Freudenberger 2016-04-25 16:57:15 -04:00
  • 3f12ca3538 Fix few more compiler warnings Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-22 16:00:32 -04:00
  • cd14381ba1 Updated the file permissions on csulincl.h header Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-21 12:22:36 -04:00
  • 1d0d2e17fe Replaced the csulincl.h header with xxx_32 bit API declarations with the latest one from CCA version 5 rpm. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-21 12:15:45 -04:00
  • b483298fc5 Fix symbol resolution error seen in Fedora 22 and 23 for ep11 and cca tokens With these changes the symbol resolution from the host DLL's (libep11 and libcsulcca) is done in a clean way. Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Ingo Tuchscherer 2016-04-21 12:10:36 -04:00
  • 2ae630da4d Fix for C_GetOperationState() failing in icsf token. Multi-part encryption and decryption operation in icsf token were not saving the context_len in the encr/decr_ctx in session. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-13 23:35:31 -04:00
  • 6687261399 Added few missing pkcs11#v2.2 constants Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-12 21:30:24 -04:00
  • a4358baa77 Remove global read permissions on token directory files MK_SO, MK_USER, NVTOK.DAT Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-12 20:48:26 -04:00
  • 59d1af210a Added mechanism parameter length validation in icsf token during C_WrapKey and C_UnWrapKey operations to make it consistent with other tokens. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-12 16:20:36 -04:00
  • e30d15e947 Fix inconsistency in icsf token by validating mechanism parameter lengths in encrypt/decrypt_init operations Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-04-08 15:54:49 -04:00
  • 927b72f7d6 Fix the misleading indentation found using gcc6 flag [-Wmisleading-indentation] Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-03-30 13:14:25 -04:00
  • 9ce16e0bb0 Coverity full scan fixes Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Jakub Jelen 2016-03-30 13:07:02 -04:00
  • 7f2a76ca05 Added support for icsf reason code 11028 and mapped to PKCS11 CKR_SIGNATURE_INVALID. bz#138946 Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-03-28 14:29:52 -04:00
  • 0dcf1890f9 Fix a bug in previous commit. Do not return with a locked Mutex. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-03-28 13:31:45 -04:00
  • 1c21a040ba Fixes for Coverity scan results Signed-off-by: Jakub Jelen <jjelen@redhat.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Jakub Jelen 2016-03-23 17:12:04 -04:00
  • 03540d8512 Fix memory leak by closing the lock file descriptor in C_Finalize Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-03-02 15:24:48 -05:00
  • b41eac3563 Fixed few compiler warnings Signed-off by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Harald Freudenberger 2016-03-01 13:32:03 -05:00
  • c018408289 Fix Segfault when trace in enabled in api_interface.c and fix a printf format. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-02-24 15:07:23 -05:00
  • f25d4596a7 Updated the outdated opencryptoki overview link to new one in README Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-02-15 15:55:13 -05:00
  • ad3f993454 Fixed one wrong icsf to ock reason code mapping and removed a wrong reason code. Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-02-02 17:17:03 -05:00
  • b5f27d345e Support C_GetObjectSize in icsf token. Added a test for testing the pkcs11 api C_GetobjectSize Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-02-01 17:12:39 -05:00
  • 25eb7797bb Adding minimum trace info to token init and finalize Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Harald Freudenberger 2016-02-01 15:23:54 -05:00
  • 3d70b4b759 Fix for openCryptoki ICSF token failure with CKR_MECHANISM_INVALID in C_SignInit when either CKM_DSA_SHA1 or CKM_ECDSA_SHA1 are used. bz#135290, bz#135293 Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Vineetha Pai 2016-01-15 11:43:28 -05:00
  • 90129185f8 Fixed sess_mgnt testcase failure on CCA and EP11 tokens Signed-off-by:Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Harald Freudenberger 2016-01-11 15:06:52 -05:00