libisdn: ASN.1, part 2
Hey wow, it’s been more then a year already, anyway… here’s the current state:
ber_encode_oid(): unimplemented! successfully encoded 53 octets ASN.1 BER data ------ dump (53 octets) ------ [ bf 7f 32 02 02 02 f5 06 06 04 00 85 69 01 03 30 24 a1 06 80 04 31 30 30 31 a2 03 0a 01 01 a3 03 02 01 00 a4 06 80 04 31 30 30 31 a6 08 30 06 02 01 00 0a 01 01 ] ------ dump (53 octets) ------ [ bf 7f 32 02 02 02 f5 06 06 00 00 00 00 00 00 30 24 a1 06 80 04 31 30 30 31 a2 03 0a 01 01 a3 03 02 01 00 a4 06 80 04 31 30 30 31 a6 08 30 06 02 01 00 0a 01 01 ] compare: 5 octets mismatch duration 0 seconds, 14701 nanoseconds
Encoding is a lot faster than decoding, even though it has to walk the whole tree twice (maybe malloc is the culprit here, will have to investigate further). Next step is to implement the missing ber_encode_oid() function and the usual cleanups, etc.
