]> git.ipfire.org Git - thirdparty/suricata.git/commit
decode ASN.1: Factorize value reading
authorEric Leblond <eric@regit.org>
Tue, 8 Nov 2011 14:46:59 +0000 (15:46 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Mar 2012 11:12:24 +0000 (12:12 +0100)
commitafba81bb27c8c2fc1cd5c9ccb68cf67da5687d67
treee9d000022b3f537970c0aca7a52a1fc8f3c32189
parent53e5421a24621b5b37bf6c85ca68b903a82006bf
decode ASN.1: Factorize value reading

This patch factorizes the reading of integer value and fix some
indentation. By convention, a value of 0xffffffff is returned
if the size of the integer is too big. In this case, the hexadecimal
value (which is also read) must be used.
src/util-decode-der-get.c
src/util-decode-der.c