diff options
author | jsing <> | 2022-08-28 17:49:25 +0000 |
---|---|---|
committer | jsing <> | 2022-08-28 17:49:25 +0000 |
commit | fc40a94c1070698fc2309e20e5f331b5152f85b5 (patch) | |
tree | 069494453f9add0f2e422ad624f7019e1b4900ce /src/regress/lib/libcrypto/asn1/asn1basic.c | |
parent | d41edc9b0d24a1228f0d3bbfaf3d70c6be7efbe7 (diff) | |
download | openbsd-fc40a94c1070698fc2309e20e5f331b5152f85b5.tar.gz openbsd-fc40a94c1070698fc2309e20e5f331b5152f85b5.tar.bz2 openbsd-fc40a94c1070698fc2309e20e5f331b5152f85b5.zip |
Encode an ASN.1 INTEGER with NULL data to value of zero.
When an ASN1_INTEGER is created it has NULL data until a value is set -
previously, an ASN1_INTEGER in this state encoded to an ASN.1 INTEGER with
a value of 0, rather than being treated as an error. While code should
really set values, the historical behaviour has not required this.
Found the hard way by sthen@ with acme-client.
ok tb@
Diffstat (limited to 'src/regress/lib/libcrypto/asn1/asn1basic.c')
0 files changed, 0 insertions, 0 deletions