]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Make sure d2i_X509() consumed all data 108/head
authorJob Snijders <job@sobornost.net>
Mon, 5 Feb 2024 19:10:11 +0000 (19:10 +0000)
committerJob Snijders <job@sobornost.net>
Mon, 5 Feb 2024 19:10:11 +0000 (19:10 +0000)
commit1165270e73508b9fb3dfdc0294a5926d56679c75
tree790beac1d098969daf7a58e606f49256962c21a5
parent22785583f07a874e5a6dace27ca13b2d56e02e54
Make sure d2i_X509() consumed all data

An artefact of d2i_*() functions is that once they're satisfied,
there still might be trailing garbage in the field that's being
decoded.

Callers of d2i_*() functions generally should conform that all
data has been consumed.
src/asn1/signed_data.c