• Harald Welte's avatar
    Add check-APER-INTEGER.c to achieve some unit test coverage · e818e32e
    Harald Welte authored
    While the historic asn1c code base has always had unit tests for not
    just the ASN.1 parser but also the encoding rules, this doesn't seem
    to hold true for the APER support in the various forks.
    
    Unfortunately this has proven troublesome as over time patches were
    merged supposedly fixing corner cases while in reality breaking behavior
    that was perfectly in-line with the spec (ITU-T X.691).
    
    Let's start by at least add some very basic coverage for the INTEGER
    type in APER.
    e818e32e
check-APER-INTEGER.c 5.04 KB