Creating a Connection to the Key Services in C
Follow the steps listed below to connect to a key service engine:
- Call the TEEnvInit() function to initialize the environment
- 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
- Close the connection with the CloseConnection () function when finished working with the connection
- Call the TEEnvClose() function to un-initialize the environment before exiting
The following examples illustrates how to make connections.