Skip to main content

Cpp Environment Settings

C++ Sample Folder and File List

 README - readme file which includes the following information.
Makefile - Makefile for Microsoft Visual Studio
Makefile.linux - Makefile for Linux platform using GNU GCC.
admin - contains sample source files for TE administration functions
agent - contains sample source files for TE crypto functions

Usage:

User should create a sub-folder with name release.

Sample code can be built by using make file:

  • [Windows] nmake -f Makefile
  • [Linux] make -f Makefile.linux

Sample environment can be cleaned by:

  • [Windows] nmake -f Makefile clean
  • [Linux] make -f Makefile.linux clean

Some hardcoded settings in samples:

  • Pi Soft kS  Name:        sampleserver
  • Pi Soft kS Admin Port:          8888
  • Administrator's Name:           admin
  • Administrator's Password:       admin
  • Encryptor's Name:               ls
  • Encryptor's Password:           password

Users should change these settings to make samples work.

Header Files

Depending on the platform, different files are provided for the implementation of the Pi Soft kS C++ API. The environment settings will differ based on the platforms and development tools in use.

The following header files are provided.

  • platform.h

  • teacl.h

  • teacl_template.h

  • teadmin.h

  • teadmin_acl.h

  • teadmin_certificate.h

  • teadmin_config.h

  • teadmin_efefs.h

  • teadmin_local.h

  • teadmin_log.h

  • teadmin_query.h

  • teadmin_trustedserver.h

  • teagent.h

  • teauthcodectx.h

  • teauthcookiectx.h

  • teauthctx.h

  • teauthldapctx.h

  • teauthnisctx.h

  • teconnectionpool.h

  • teauthsslmctx.h

  • teauthuserctx.h

  • teauthuserctx_v1.h

  • teauthwinctx.h

  • tebase.h

  • tecertobj.h

  • teconnection.h

  • teefefs_securefolder.h

  • teeventlog.h

  • teexception.h

  • tegroup.h

  • tekey.h

  • teldapprincipal.h

  • temsgprincipal.h

  • teobjcontainer.h

  • tecipher.h

  • teobjreference

  • teobject.h

  • teoperation.h

  • teparameter.h

  • teparameter_re.h

  • teprincipal.h

  • teprincipaltrustmatrix.h

  • tequery.h

  • terole.h

  • tetemplateddirectory.h

  • tetransport.h

  • tetrustserver.h

  • teunixprincipal.h

  • teupdobject.h

  • teuser.h

  • teuser_v1.h

  • teutil_keycert.h

  • tewinprincipal.h

  • teauthcertctx.h

  • tecert_pkey.h


Windows

For the Windows platform working with Microsoft Visual C++, the following files are provided.

  • te_agent.lib
  • te_agent.dll

For a Microsoft Visual C++ project, set the environment as follows to compile, link and run the project.

  1. Include the necessary header files, such as teconnection.h, teagent.h, teexception.h and so on.
  2. All TE SDK classes are in namespace ERUCES. Developers should either specify using namespace ERUCES before refer any TE classes or prefix TE classes with ERUCES namespace.
  3. Link with te_agent.lib
  4. Use run-time library Debug Multithreaded DLL or Multithreaded DLL.
  5. Run with te_agent.dll