summaryrefslogtreecommitdiff
path: root/lib/int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-05-30 13:50:48 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-05-30 15:21:25 +0200
commit7eb760ed9083d5af0b8cd14bd2f26b88691be9ae (patch)
tree14e39ba0594aae296082490ffc8c364f0033bbce /lib/int.h
parentd14caccbe1f54c42437b41e5a1863339f5987fc6 (diff)
downloadlibtasn1-7eb760ed9083d5af0b8cd14bd2f26b88691be9ae.tar.gz
libtasn1-7eb760ed9083d5af0b8cd14bd2f26b88691be9ae.tar.bz2
libtasn1-7eb760ed9083d5af0b8cd14bd2f26b88691be9ae.zip
simplified and optimized asn1_der_decoding_startEnd().
The second pass decoding is now avoided as the start and end values are cached during decoding.
Diffstat (limited to 'lib/int.h')
-rw-r--r--lib/int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/int.h b/lib/int.h
index ab35e5b..82d0d3f 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -59,6 +59,8 @@ struct asn1_node_st
/* values used during decoding/coding */
int tmp_ival;
+ unsigned start; /* the start of the DER sequence - if decoded */
+ unsigned end; /* the end of the DER sequence - if decoded */
};
typedef struct tag_and_class_st