summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/comp/comp_err.c
diff options
context:
space:
mode:
authortb <>2021-12-28 16:10:47 +0000
committertb <>2021-12-28 16:10:47 +0000
commitc87f465d558fdc4f42c3c42d4046703c6c4fd052 (patch)
tree7a06f27d725169b1d0b56f1bc868a9152f89438e /src/lib/libcrypto/comp/comp_err.c
parent12217f620d74ebc9b8e9a65060dde7c07cf9726c (diff)
downloadopenbsd-c87f465d558fdc4f42c3c42d4046703c6c4fd052.tar.gz
openbsd-c87f465d558fdc4f42c3c42d4046703c6c4fd052.tar.bz2
openbsd-c87f465d558fdc4f42c3c42d4046703c6c4fd052.zip
Convert make_IPAddressFamily to CBS/CBB
The IPAddrBlocks type, which represents the IPAddrBlocks extension, should have exactly one IPAddressFamily per AFI+SAFI combination to be delegated. make_IPAddressFamily() first builds up a search key from the afi and safi arguments and then looks for an existing IPAddressFamily with that key in the IPAddrBlocks that was passed in. It returns that if it finds it or allocates and adds a new one. This diff preserves the current behavior that the afi and *safi arguments are truncated to 2 and 1 bytes, respectively. This may change in the future. ok inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/comp/comp_err.c')
0 files changed, 0 insertions, 0 deletions