diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_enc.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_enc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_enc.c b/src/lib/libcrypto/asn1/tasn_enc.c index 7d90c68c85..f3341901fe 100644 --- a/src/lib/libcrypto/asn1/tasn_enc.c +++ b/src/lib/libcrypto/asn1/tasn_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tasn_enc.c,v 1.20 2016/05/04 15:00:24 tedu Exp $ */ | 1 | /* $OpenBSD: tasn_enc.c,v 1.21 2016/12/30 16:04:34 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 | */ |
@@ -330,7 +330,7 @@ asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | |||
330 | for (i = 0; i < sk_ASN1_VALUE_num(sk); i++) { | 330 | for (i = 0; i < sk_ASN1_VALUE_num(sk); i++) { |
331 | skitem = sk_ASN1_VALUE_value(sk, i); | 331 | skitem = sk_ASN1_VALUE_value(sk, i); |
332 | skcontlen += ASN1_item_ex_i2d(&skitem, NULL, | 332 | skcontlen += ASN1_item_ex_i2d(&skitem, NULL, |
333 | ASN1_ITEM_ptr(tt->item), -1, iclass); | 333 | tt->item, -1, iclass); |
334 | } | 334 | } |
335 | sklen = ASN1_object_size(ndef, skcontlen, sktag); | 335 | sklen = ASN1_object_size(ndef, skcontlen, sktag); |
336 | /* If EXPLICIT need length of surrounding tag */ | 336 | /* If EXPLICIT need length of surrounding tag */ |
@@ -349,7 +349,7 @@ asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | |||
349 | /* SET or SEQUENCE and IMPLICIT tag */ | 349 | /* SET or SEQUENCE and IMPLICIT tag */ |
350 | ASN1_put_object(out, ndef, skcontlen, sktag, skaclass); | 350 | ASN1_put_object(out, ndef, skcontlen, sktag, skaclass); |
351 | /* And the stuff itself */ | 351 | /* And the stuff itself */ |
352 | asn1_set_seq_out(sk, out, skcontlen, ASN1_ITEM_ptr(tt->item), | 352 | asn1_set_seq_out(sk, out, skcontlen, tt->item, |
353 | isset, iclass); | 353 | isset, iclass); |
354 | if (ndef == 2) { | 354 | if (ndef == 2) { |
355 | ASN1_put_eoc(out); | 355 | ASN1_put_eoc(out); |
@@ -363,7 +363,7 @@ asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | |||
363 | if (flags & ASN1_TFLG_EXPTAG) { | 363 | if (flags & ASN1_TFLG_EXPTAG) { |
364 | /* EXPLICIT tagging */ | 364 | /* EXPLICIT tagging */ |
365 | /* Find length of tagged item */ | 365 | /* Find length of tagged item */ |
366 | i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item), | 366 | i = ASN1_item_ex_i2d(pval, NULL, tt->item, |
367 | -1, iclass); | 367 | -1, iclass); |
368 | if (!i) | 368 | if (!i) |
369 | return 0; | 369 | return 0; |
@@ -372,7 +372,7 @@ asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | |||
372 | if (out) { | 372 | if (out) { |
373 | /* Output tag and item */ | 373 | /* Output tag and item */ |
374 | ASN1_put_object(out, ndef, i, ttag, tclass); | 374 | ASN1_put_object(out, ndef, i, ttag, tclass); |
375 | ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), | 375 | ASN1_item_ex_i2d(pval, out, tt->item, |
376 | -1, iclass); | 376 | -1, iclass); |
377 | if (ndef == 2) | 377 | if (ndef == 2) |
378 | ASN1_put_eoc(out); | 378 | ASN1_put_eoc(out); |
@@ -381,7 +381,7 @@ asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, | |||
381 | } | 381 | } |
382 | 382 | ||
383 | /* Either normal or IMPLICIT tagging: combine class and flags */ | 383 | /* Either normal or IMPLICIT tagging: combine class and flags */ |
384 | return ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), | 384 | return ASN1_item_ex_i2d(pval, out, tt->item, |
385 | ttag, tclass | iclass); | 385 | ttag, tclass | iclass); |
386 | } | 386 | } |
387 | 387 | ||