diff options
| author | jsing <> | 2021-12-15 17:53:36 +0000 |
|---|---|---|
| committer | jsing <> | 2021-12-15 17:53:36 +0000 |
| commit | abe7564b025a1b860ea2fa1f318844d01e7438c5 (patch) | |
| tree | 98d7be6a8db173076aeab065b5bff99e277e5f33 /src | |
| parent | 928185f8e7c4d32c9ffc92c013923547eb3c6371 (diff) | |
| download | openbsd-abe7564b025a1b860ea2fa1f318844d01e7438c5.tar.gz openbsd-abe7564b025a1b860ea2fa1f318844d01e7438c5.tar.bz2 openbsd-abe7564b025a1b860ea2fa1f318844d01e7438c5.zip | |
unifdef -U CRYPTO_MDEBUG -m tasn_new.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_new.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_new.c b/src/lib/libcrypto/asn1/tasn_new.c index 7c9bb98974..231d5f66ce 100644 --- a/src/lib/libcrypto/asn1/tasn_new.c +++ b/src/lib/libcrypto/asn1/tasn_new.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_new.c,v 1.18 2019/04/01 15:48:04 jsing Exp $ */ | 1 | /* $OpenBSD: tasn_new.c,v 1.19 2021/12/15 17:53:36 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -103,10 +103,6 @@ asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) | |||
| 103 | if (!combine) | 103 | if (!combine) |
| 104 | *pval = NULL; | 104 | *pval = NULL; |
| 105 | 105 | ||
| 106 | #ifdef CRYPTO_MDEBUG | ||
| 107 | if (it->sname) | ||
| 108 | CRYPTO_push_info(it->sname); | ||
| 109 | #endif | ||
| 110 | 106 | ||
| 111 | switch (it->itype) { | 107 | switch (it->itype) { |
| 112 | case ASN1_ITYPE_EXTERN: | 108 | case ASN1_ITYPE_EXTERN: |
| @@ -136,10 +132,6 @@ asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) | |||
| 136 | if (!i) | 132 | if (!i) |
| 137 | goto auxerr; | 133 | goto auxerr; |
| 138 | if (i == 2) { | 134 | if (i == 2) { |
| 139 | #ifdef CRYPTO_MDEBUG | ||
| 140 | if (it->sname) | ||
| 141 | CRYPTO_pop_info(); | ||
| 142 | #endif | ||
| 143 | return 1; | 135 | return 1; |
| 144 | } | 136 | } |
| 145 | } | 137 | } |
| @@ -160,10 +152,6 @@ asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) | |||
| 160 | if (!i) | 152 | if (!i) |
| 161 | goto auxerr; | 153 | goto auxerr; |
| 162 | if (i == 2) { | 154 | if (i == 2) { |
| 163 | #ifdef CRYPTO_MDEBUG | ||
| 164 | if (it->sname) | ||
| 165 | CRYPTO_pop_info(); | ||
| 166 | #endif | ||
| 167 | return 1; | 155 | return 1; |
| 168 | } | 156 | } |
| 169 | } | 157 | } |
| @@ -183,27 +171,15 @@ asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) | |||
| 183 | goto auxerr; | 171 | goto auxerr; |
| 184 | break; | 172 | break; |
| 185 | } | 173 | } |
| 186 | #ifdef CRYPTO_MDEBUG | ||
| 187 | if (it->sname) | ||
| 188 | CRYPTO_pop_info(); | ||
| 189 | #endif | ||
| 190 | return 1; | 174 | return 1; |
| 191 | 175 | ||
| 192 | memerr: | 176 | memerr: |
| 193 | ASN1error(ERR_R_MALLOC_FAILURE); | 177 | ASN1error(ERR_R_MALLOC_FAILURE); |
| 194 | #ifdef CRYPTO_MDEBUG | ||
| 195 | if (it->sname) | ||
| 196 | CRYPTO_pop_info(); | ||
| 197 | #endif | ||
| 198 | return 0; | 178 | return 0; |
| 199 | 179 | ||
| 200 | auxerr: | 180 | auxerr: |
| 201 | ASN1error(ASN1_R_AUX_ERROR); | 181 | ASN1error(ASN1_R_AUX_ERROR); |
| 202 | ASN1_item_ex_free(pval, it); | 182 | ASN1_item_ex_free(pval, it); |
| 203 | #ifdef CRYPTO_MDEBUG | ||
| 204 | if (it->sname) | ||
| 205 | CRYPTO_pop_info(); | ||
| 206 | #endif | ||
| 207 | return 0; | 183 | return 0; |
| 208 | 184 | ||
| 209 | } | 185 | } |
| @@ -257,10 +233,6 @@ ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) | |||
| 257 | *pval = NULL; | 233 | *pval = NULL; |
| 258 | return 1; | 234 | return 1; |
| 259 | } | 235 | } |
| 260 | #ifdef CRYPTO_MDEBUG | ||
| 261 | if (tt->field_name) | ||
| 262 | CRYPTO_push_info(tt->field_name); | ||
| 263 | #endif | ||
| 264 | /* If SET OF or SEQUENCE OF, its a STACK */ | 236 | /* If SET OF or SEQUENCE OF, its a STACK */ |
| 265 | if (tt->flags & ASN1_TFLG_SK_MASK) { | 237 | if (tt->flags & ASN1_TFLG_SK_MASK) { |
| 266 | STACK_OF(ASN1_VALUE) *skval; | 238 | STACK_OF(ASN1_VALUE) *skval; |
| @@ -277,10 +249,6 @@ ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) | |||
| 277 | /* Otherwise pass it back to the item routine */ | 249 | /* Otherwise pass it back to the item routine */ |
| 278 | ret = asn1_item_ex_combine_new(pval, it, tt->flags & ASN1_TFLG_COMBINE); | 250 | ret = asn1_item_ex_combine_new(pval, it, tt->flags & ASN1_TFLG_COMBINE); |
| 279 | done: | 251 | done: |
| 280 | #ifdef CRYPTO_MDEBUG | ||
| 281 | if (it->sname) | ||
| 282 | CRYPTO_pop_info(); | ||
| 283 | #endif | ||
| 284 | return ret; | 252 | return ret; |
| 285 | } | 253 | } |
| 286 | 254 | ||
