Deleted Added
full compact
tasn_new.c (325335) tasn_new.c (325337)
1/* tasn_new.c */
2/*
3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
4 * 2000.
5 */
6/* ====================================================================
7 * Copyright (c) 2000-2004 The OpenSSL Project. All rights reserved.
8 *

--- 49 unchanged lines hidden (view full) ---

58 */
59
60#include <stddef.h>
61#include <openssl/asn1.h>
62#include <openssl/objects.h>
63#include <openssl/err.h>
64#include <openssl/asn1t.h>
65#include <string.h>
1/* tasn_new.c */
2/*
3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
4 * 2000.
5 */
6/* ====================================================================
7 * Copyright (c) 2000-2004 The OpenSSL Project. All rights reserved.
8 *

--- 49 unchanged lines hidden (view full) ---

58 */
59
60#include <stddef.h>
61#include <openssl/asn1.h>
62#include <openssl/objects.h>
63#include <openssl/err.h>
64#include <openssl/asn1t.h>
65#include <string.h>
66#include "asn1_int.h"
66
67static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
68 int combine);
69static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
70static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
71static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
72
73ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it)

--- 120 unchanged lines hidden (view full) ---

194 }
195#ifdef CRYPTO_MDEBUG
196 if (it->sname)
197 CRYPTO_pop_info();
198#endif
199 return 1;
200
201 memerr2:
67
68static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
69 int combine);
70static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
71static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
72static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
73
74ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it)

--- 120 unchanged lines hidden (view full) ---

195 }
196#ifdef CRYPTO_MDEBUG
197 if (it->sname)
198 CRYPTO_pop_info();
199#endif
200 return 1;
201
202 memerr2:
202 ASN1_item_ex_free(pval, it);
203 asn1_item_combine_free(pval, it, combine);
203 memerr:
204 ASN1err(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW, ERR_R_MALLOC_FAILURE);
205#ifdef CRYPTO_MDEBUG
206 if (it->sname)
207 CRYPTO_pop_info();
208#endif
209 return 0;
210
211 auxerr2:
204 memerr:
205 ASN1err(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW, ERR_R_MALLOC_FAILURE);
206#ifdef CRYPTO_MDEBUG
207 if (it->sname)
208 CRYPTO_pop_info();
209#endif
210 return 0;
211
212 auxerr2:
212 ASN1_item_ex_free(pval, it);
213 asn1_item_combine_free(pval, it, combine);
213 auxerr:
214 ASN1err(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW, ASN1_R_AUX_ERROR);
215#ifdef CRYPTO_MDEBUG
216 if (it->sname)
217 CRYPTO_pop_info();
218#endif
219 return 0;
220

--- 164 unchanged lines hidden ---
214 auxerr:
215 ASN1err(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW, ASN1_R_AUX_ERROR);
216#ifdef CRYPTO_MDEBUG
217 if (it->sname)
218 CRYPTO_pop_info();
219#endif
220 return 0;
221

--- 164 unchanged lines hidden ---