Recompiling with CADP for C Library
For Linux
Note
Ensure that the library name is different in ProtectApp ICAPI - libICAPI.so
.
Perform the following steps to recompile with the CADP for C library:
Create a backup of samples and properties file using
-d
option in the installer while installing the CADP for C../install.sh -d
(already installed capi path)The samples and properties file are backed up on a specified path
<path provided by user>/CipherTrust/CADP_for_C/backup
.
Note
You can specify the path for installation of CADP for C. The default path is -
/opt/CipherTrust/CADP_for_C
.Change the path in the application's Makefile or Toolchain according to the new library location. CAPI library name is changed from
libCAPI.so
tolibcadp_capi.so
(CADP for C).Rename the following header files in your application:
icapi.h to cadp_capi.h
crypto.h to cadp_capi_crypto.h
icapierr.h to cadp_capi_err.h
icapi_kmipkeymgmt.h to cadp_capi_kmipkeymgmt.h
icapi_naekeymgmt.h to cadp_capi_naekeymgmt.h
Recompile the application.
For Windows
Perform the following steps to recompile with a CADP for C library file:
Specify the path for installation of CADP for C. The default path is
C:\Program Files\CipherTrust\CADP_for_C
.Backup of samples and properties file are created by CADP for C installer, if required.
The samples and properties file are backed up on the specified path
C:\Program Files\CipherTrust\CADP_for_C\backup
.
Change the path in the application's Solution file or Toolchain according to new library location. CAPI library name is changed from
capi.lib
andcapi.dll
tolibcadp_capi.dll
andlibcadp_capi.lib
.Rename the following header files in your application:
icapi.h to cadp_capi.h
crypto.h to cadp_capi_crypto.h
icapierr.h to cadp_capi_err.h
icapi_kmipkeymgmt.h to cadp_capi_kmipkeymgmt.h
icapi_naekeymgmt.h to cadp_capi_naekeymgmt.h
Recompile the application.
Important points:
New Properties or Configuration file name for CADP for C will be
CADP_CAPI.properties
.There is no lib folder present as it used to be in the earlier versions. The current path of the libraries is
/opt/CipherTrust/CADP_for_C
.