added pcphash_cleanpub() to free local pubkey hashes, which are not attached to any context

This commit is contained in:
TLINDEN
2014-08-07 21:32:48 +02:00
parent 3778b3f44e
commit e8f6a8635c
2 changed files with 12 additions and 1 deletions

View File

@@ -88,9 +88,12 @@
*/
void pcphash_del(PCPCTX *ptx, void *key, int type);
/** Free memory used by key hashes. */
/** Free memory used by key global ptx-attached hashes. */
void pcphash_clean(PCPCTX *ptx);
/** Free memory by local pubkey hash */
void pcphash_cleanpub(pcp_pubkey_t *pub);
/** Check if a secret key with a given key-id exists in the hash.
\param[in] PCP Context object.