aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/tasn_utl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-10-03 12:38:52 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-10-03 12:38:52 +0000
commit230fd6b7b66f0b72b1cf7fc300652a1adf94ba1a (patch)
tree0b44fcc6a6e1bd9cb4de4fb5d5a9939b3768b4c5 /crypto/asn1/tasn_utl.c
parent20b33a015f1ea8b0927aa5057d2e6abe053b902f (diff)
downloadopenssl-230fd6b7b66f0b72b1cf7fc300652a1adf94ba1a.tar.gz
Preliminary streaming ASN1 encode support.
Diffstat (limited to 'crypto/asn1/tasn_utl.c')
-rw-r--r--crypto/asn1/tasn_utl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/tasn_utl.c b/crypto/asn1/tasn_utl.c
index 8996ce8c13..2a3f5db8f3 100644
--- a/crypto/asn1/tasn_utl.c
+++ b/crypto/asn1/tasn_utl.c
@@ -102,7 +102,8 @@ int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it)
{
const ASN1_AUX *aux;
int *lck, ret;
- if(it->itype != ASN1_ITYPE_SEQUENCE) return 0;
+ if((it->itype != ASN1_ITYPE_SEQUENCE)
+ && (it->itype != ASN1_ITYPE_NDEF_SEQUENCE)) return 0;
aux = it->funcs;
if(!aux || !(aux->flags & ASN1_AFLG_REFCOUNT)) return 0;
lck = offset2ptr(*pval, aux->ref_offset);