openssl/openssl

Not possible to get the SAFI from IPAddressFamily

Open

#18,529 opened on Jun 10, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C (11,262 forks)batch import
good first issuehelp wantedtriaged: feature

Repository metrics

Stars
 (30,157 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Reported by @botovq:

The public API exposes the AFI using X509v3_addr_get_afi(), but doesn't expose the SAFI. The SAFI can only be fed into the API but not be read from it. Another unfortunate thing about X509v3_addr_get_afi() is that it uses the reserved AFI 0 as an in-band error. It does not care about the reserved AFI 65535.

Contributor guide