summaryrefslogtreecommitdiffstats
path: root/ckpem.h
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2009-05-27 16:30:12 +0200
committerRob Crittenden <rcritten@redhat.com>2009-05-29 12:55:51 -0400
commit68e1f0edb82cb86f42bcae0fc87d7aa800f255ee (patch)
tree305e786beb52ee0aaa9aad52e2a26a525a387680 /ckpem.h
parentda87c4bc3df8f8f10b147a25c9c39321c3528d39 (diff)
downloadpemnss-68e1f0edb82cb86f42bcae0fc87d7aa800f255ee.zip
pemnss-68e1f0edb82cb86f42bcae0fc87d7aa800f255ee.tar.gz
pemnss-68e1f0edb82cb86f42bcae0fc87d7aa800f255ee.tar.xz
Fix various memory leaks and free internal objects on module unload.
Elio helped me to complete the patch. 501080
Diffstat (limited to 'ckpem.h')
-rw-r--r--ckpem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ckpem.h b/ckpem.h
index 5587333..866d0ea 100644
--- a/ckpem.h
+++ b/ckpem.h
@@ -116,7 +116,6 @@ struct pemInternalObjectStr {
CK_OBJECT_CLASS objClass;
NSSItem hashKey;
NSSItem id;
- void *idData;
unsigned char hashKeyData[128];
SECItem *derCert;
char *nickname;
@@ -225,6 +224,8 @@ pemInternalObject *
CreateObject(CK_OBJECT_CLASS objClass, pemObjectType type, SECItem *certDER,
SECItem *keyDER, char *filename, int objid, CK_SLOT_ID slotID);
+void pem_DestroyInternalObject (pemInternalObject *io);
+
/* prsa.c */
unsigned int pem_PrivateModulusLen(pemLOWKEYPrivateKey *privk);