resetEncryptionInfo()

This function frees the memory allocated by encryptionInfo(). You can reuse a KVPanopticonEncryptionInfo structure after you have passed it to resetEncryptionInfo().

Syntax

KVPanopticonError resetEncryptionInfo(
   KVPanopticonContext* const context,
   KVPanopticonEncryptionInfo* const encryptionInfo
);

Arguments

context

A pointer to KVPanopticonContext, initialized by calling init().

encryptionInfo

A pointer to a KVPanopticonEncryptionInfo. If the function completes successfully, it resets this structure, freeing all the memory allocated by encryptionInfo().

You must initialize the KVStructHead structure by using the macro KVStructInit.

Returns

If the function was successful, it returns KVP_Success. Otherwise, it returns a KVPanopticonError value describing the problem.