From 7eb760ed9083d5af0b8cd14bd2f26b88691be9ae Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 30 May 2014 13:50:48 +0200 Subject: simplified and optimized asn1_der_decoding_startEnd(). The second pass decoding is now avoided as the start and end values are cached during decoding. --- lib/int.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/int.h') 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 -- cgit v1.2.3