Add initial test coverage for RFC 3779 code.
authortb <tb@openbsd.org>
Fri, 24 Dec 2021 03:00:37 +0000 (03:00 +0000)
committertb <tb@openbsd.org>
Fri, 24 Dec 2021 03:00:37 +0000 (03:00 +0000)
commit4defbdf563e50ad895d5cd1af1e5ea7287d3430e
tree30eefe47a19baabc8134d3d9ae564e9bb7a43e64
parent5f2eabbbce48ad8c794c6923b8e985ef442b88dc
Add initial test coverage for RFC 3779 code.

This exercises the code paths that are reached from the validator
and also tests that the public API behaves as expected. There is a
lot more that could be done here, but this test is already big enough.

Missing are tests for X509v3_{addr,asid}_validate_{path,resource_set}()
themselves.

One test failure is ignored and will be fixed in the near future
when a bad logic error in range_should_be_prefix() is fixed.
A consequence of this bug is that we will currently accept and generate
DER that doesn't conform to RFC 3779.
regress/lib/libcrypto/x509/rfc3779/Makefile [new file with mode: 0644]
regress/lib/libcrypto/x509/rfc3779/rfc3779.c [new file with mode: 0644]