Skip to main content

Creating a Connection to the Key Services in C

Follow the steps listed below to connect to a key service engine:

  1. Call the TEEnvInit() function to initialize the environment
  2. Call the OpenConnection() function to connect to a key service engine. The return value of this function, a connection handle which represents the connection, will be used in many other functions to perform different tasks
  3. Close the connection with the CloseConnection () function when finished working with the connection
  4. Call the TEEnvClose() function to un-initialize the environment before exiting

The following examples illustrates how to make connections.