Remove openssl/4.0
We don't need three OpenSSLs in ports. 3.5 is the LTS branch which
we'll use until 4.2 LTS is out and has been proven not to be too
terrible. 4.1 is the branch we use in preparation of that.
Update to OpenSSL 4.1.1, merge openssl/4.0 into openssl/4.1
The update contains a bunch of relatively minor security fixes, mostly in
the big ticket items ECH, DTLS 1.3 and QUIC, and of course the usual share
of ASN.1 and CMS nonsense.
rpki-client: remove min/max arrays from struct roa_ip
struct roa_ip, representing a ROAIPaddress (afi, prefix, maxLength) of
a ROA, contains a copy of ->addr.addr in min and the corresponding upper
bound of the prefix in max. Both members were only accessed once when
checking against the EE cert's resources via ip_addr_check_covered().
We may as well compute the upper bound on the fly.
So: inline valid_roa() in roa_validate() and inline the still needed half
of ip_roa_compose_ranges() and drop these nearly useless members.
This reduces the struct from 56 bytes to 24 bytes with only one byte of
padding remaining. While struct roa isn't super long lived in either of
the two processes where it is used, this still reduces the memory foot
print a bit (the largest roa, AS9808.roa, has 20653 prefixes, so this saves
about 650 KiB for that one alone).
ok claudio
Introduce a Symbols.map for libpcap
Try to expose only those symbols that should be used. Mostly based on
what libpcap upstream exposes.
Use __{BEGIN,END}_HIDDEN_DECLS to expose less in the static library but
especially the flex and yacc generated code still leaks many symbols out.
Switch the flex yacc code to use _pcap_yy as prefix but more is needed
to hide those symbols properly.
OK tb@
Drop the public bpf_filter and _bpf_filter prototypes from bpf.h
Rename bpf_lfilter() to bpf_filter() and enforce all users to
pass in number of bpf instructions. Expose bpf_validate outside of
_KERNEL with the exception of the bpf_maxbufsize check which is
kernel only. bpf_validate will be used in libpcap in a follow up
commit.
OK tb@
rpki-client: skip a few things for a duplicate manifest
If a duplicate manifest is detected, it is currently still inserted into
the CCR via ccr_insert_mft() (which whines) and its filepath is added via
filepath_add() (which errors out). Skip these two bits. There are plans
to improve on this, but for now this seems a sensible solution.
found/tested by job
ok claudio
allow enabling AKM SHA256-802.1x with ifconfig
The kernel and some wifi drivers already support this feature but there
was no way to enable it with ifconfig. Putting this in now so it can
be easily tested by people with access to a WPA Enterprise setup.