diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-01-24 19:39:54 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-01-24 19:39:54 +0100 |
commit | a43cf9fae96175ee91da08aa523c508c3d3e6dde (patch) | |
tree | 5d17c0c155d2ad589b6dda1bf6bb32812d8d7ec6 /crypto/pkcs12/p12_init.c | |
parent | Update "OAEP reconsidered" comment (diff) | |
download | openssl-a43cf9fae96175ee91da08aa523c508c3d3e6dde.tar.xz openssl-a43cf9fae96175ee91da08aa523c508c3d3e6dde.zip |
Add debugging info to new ASN1 code to trace memory leaks.
Fix PKCS7 and PKCS12 memory leaks.
Initialise encapsulated content type properly.
Diffstat (limited to 'crypto/pkcs12/p12_init.c')
-rw-r--r-- | crypto/pkcs12/p12_init.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crypto/pkcs12/p12_init.c b/crypto/pkcs12/p12_init.c index d5d4884c82..eb837a78cf 100644 --- a/crypto/pkcs12/p12_init.c +++ b/crypto/pkcs12/p12_init.c @@ -69,15 +69,7 @@ PKCS12 *PKCS12_init (int mode) PKCS12err(PKCS12_F_PKCS12_INIT,ERR_R_MALLOC_FAILURE); return NULL; } - if (!(pkcs12->version = M_ASN1_INTEGER_new ())) { - PKCS12err(PKCS12_F_PKCS12_INIT,ERR_R_MALLOC_FAILURE); - return NULL; - } ASN1_INTEGER_set(pkcs12->version, 3); - if (!(pkcs12->authsafes = PKCS7_new())) { - PKCS12err(PKCS12_F_PKCS12_INIT,ERR_R_MALLOC_FAILURE); - return NULL; - } pkcs12->authsafes->type = OBJ_nid2obj(mode); switch (mode) { case NID_pkcs7_data: |