summaryrefslogtreecommitdiff
path: root/src/lib/libssl/pqueue.c
diff options
context:
space:
mode:
authortb <>2026-04-26 17:58:58 +0000
committertb <>2026-04-26 17:58:58 +0000
commit6dd7ca7383df89a74220119e1a3d69460ec22921 (patch)
tree2c9dd223b4249e8bb95a39d6ad61dee88e93280d /src/lib/libssl/pqueue.c
parent38105b7cb94d5e0839470521c269b2c565624ff1 (diff)
downloadopenbsd-6dd7ca7383df89a74220119e1a3d69460ec22921.tar.gz
openbsd-6dd7ca7383df89a74220119e1a3d69460ec22921.tar.bz2
openbsd-6dd7ca7383df89a74220119e1a3d69460ec22921.zip
make_addressRange: unused bits in max must be zero
X509v3_addr_add_range() requires that min and max of an address range have network encoding. In the RFC 3779 encoding of an actual address range (as opposed to a prefix) as a SEQUENCE OF two ASN.1 BIT STRINGs, the trailing one bits of the maximum become unused bits and therefore must be DER encoded as zeroes. The DER encoder will clear them via i2d but these trailing ones are annoying. Make a copy in which the unused bits are cleared. ok kenjiro
Diffstat (limited to 'src/lib/libssl/pqueue.c')
0 files changed, 0 insertions, 0 deletions