summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-13Kill last user of ASN1_time_parse() in the treeTheo Buehler
ASN1_time_parse() was useful while OpenSSL didn't have something sort of equivalent, but now they do. Let's retire ASN1_time_parse() to internal. This will require some patching in ports, but shrug. ok beck
2023-11-13Check notBefore/notAfter validity with ASN1_TIME_to_tm(3)Theo Buehler
ok beck
2023-11-13Replace ASN1_time_parse() with ASN1_TIME_to_tm()Theo Buehler
Like in libtls, we use ASN1_GENERALIZEDTIME_check() to ensure we actually have a GeneralizedTime. ok beck
2023-11-13Bump datasize for staff to match amd64Jeremie Courreges-Anglas
Suggested by jsing@, ok tb@
2023-11-13syncJonathan Gray
2023-11-13Remove last caller of ASN1_time_parse(3) in libtlsTheo Buehler
This one is slightly annoying since ASN1_TIME_to_tm(3) doesn't provide a direct check for a GeneralizedTime, so call ASN1_GENERALIZEDTIME_check() as well. This means LibreSSL parses the time twice. Shrug. ok beck
2023-11-13Remove ASN1_time_parse() dependency in tls_conninfo.cTheo Buehler
During r2k22 ported some of the missing OpenSSL ASN.1 time API. This is a step towards removing the dependency of libtls on ASN1_time_parse(). The latter grew a dependency on CBS/CBB, and thus the choice is to pull in all this code or to use a no longer maintained version of the API. Both options are unappealing. ok beck
2023-11-13Eliminate the timegm(3) dependency in libcryptoTheo Buehler
timegm(3) is not available on some operating systems we support in portable. We currently use musl's implementation, for which gcc-13 decided to emit warnings (which seem incorrect in general and are irrelevant in this case anyway). Instead of patching this up and diverge from upstream, we can avoid reports about compiler warnings by simply not depending on this function. Rework the caching of notBefore and notAfter by replacing timegm(3) with asn1_time_tm_to_time_t(3). Also make this API properly error checkable since at the time x509v3_cache_extensions(3) is called, nothing is known about the cert, in particular not whether it isn't malformed one way or the other. suggested by and ok beck
2023-11-13Add 2 tests to make sure getbulkrequests return the correct error index.Martijn van Duren
2023-11-13struct appl_varbind_internal's avi_index is used to give the index toMartijn van Duren
the original varbindlist's index. In the case of a GetBulkRequest this must never be larger than the length of the original varbindlist. OK tb@
2023-11-13adjust `regress' description since REGRESS_FAIL_EARLY is yes nowOmar Polo
ok plus various improvements to the text by tb@
2023-11-13syncJonathan Gray
ok robert@
2023-11-13Make sure sftp_get_limits() only returns 0 if 'limits' was initialized.Tobias Heider
This fixes a potential uninitialized use of 'limits' in sftp_init() if sftp_get_limits() returned early because of an unexpected message type. ok djm@
2023-11-12Bump datasize for the default login class, needed to build clang-16Jeremie Courreges-Anglas
2023-11-12Declare global variable zeroin46_addr as const.Alexander Bluhm
OK mvs@ jca@
2023-11-12Also bump the default limit on riscv64Jeremie Courreges-Anglas
Reported by jsing@
2023-11-12append ExtensionDependencies.inc to CLEANFILES only if .OBJDIR != .CURDIRRobert Nagy
2023-11-12Move struct oid from snmpd.h into smi.c and trim a lot of the now unusedMartijn van Duren
fat. This includes all the o_flags member related defines. if it compiles ship it/OK tb@
2023-11-12Remove a bunch of unused smi_ functions and move a couple of definitionsMartijn van Duren
out of snmpd.h, which aren't used outside of smi.c OK tb@
2023-11-12Now that smi_oid_cmp() is only used by the oidtree RB-tree, and nothingMartijn van Duren
fancy is using it, we can simply rely on ober_oid_cmp(). OK tb@
2023-11-12Now that MIBDECL() fills in bo_n, no need to call smi_oidlen() anymore.Martijn van Duren
OK tb@
2023-11-12Let MIBDECL() make use of OID(). This gives use bo_n for free and weMartijn van Duren
won't have to rely on error-prone smi_oidlen. OK tb@
2023-11-12Now that smi.c is basically an oid/name translator, let smi_insert()Martijn van Duren
create the struct oid and let parse.y supply the arguments. OK tb@
2023-11-12No need to use struct oid to compare two struct ber_oids. Just callMartijn van Duren
ober_oid_cmp() directly. OK tb@
2023-11-12Printing all known objects inside smi when build with -DDEBUG has noMartijn van Duren
benefit. Remove it and the last consumer of smi_foreach(). OK tb@
2023-11-12No reason to call (error-prone) smi_scalar_oidlen when we include theMartijn van Duren
scalar .0 ourselves. OK tb@
2023-11-12revert https://reviews.llvm.org/D135402 for now to shut lld up until we fixRobert Nagy
all the symbol lists
2023-11-12Bump NTP era if the offset we receive is small, in a similar mannerOtto Moerbeek
as ntpd. ok deraadt@
2023-11-12Use constant sockaddr in route lookup.Alexander Bluhm
In rtalloc() and rtalloc_mpath() declare the parameter dst as const sockaddr. This makes MP safe route lookup easier as the destination address is definitely not modified during the operation. Array rti_info, the central data structure with addresses for route matching, contains constant sockaddr now. OK mvs@ dlg@
2023-11-12sync path to libclang_rt*.aJeremie Courreges-Anglas
2023-11-12Fix install path, reminded by otto@Jeremie Courreges-Anglas
2023-11-12Mechanical lib/clang/13.0.0/include -> lib/clang/16/includeJeremie Courreges-Anglas
The actual headers list still needs to be fixed on !(amd64)
2023-11-12+/usr/include/llvm/Config/TargetMCAs.defJeremie Courreges-Anglas
2023-11-12syncJeremie Courreges-Anglas
2023-11-12sync (libLLVM bump)Jeremie Courreges-Anglas
2023-11-12Bump MAXDSIZ to 2G on armv7. Needed for llvm-16.Mark Kettenis
ok deraadt@
2023-11-12Fix parsing of branch target protection options on arm64 to enableMark Kettenis
BTI and PAC again by default on OpenBSD. ok robert@
2023-11-12Do not modify route info sockaddr in rtm_xaddrs().Alexander Bluhm
The rti_info array is used to describe routes that should be found by lookup. Modifying the addreses in it is not a good idea. There were places where rtm_xaddrs() tried to fix the address family instead of validating it. Replace the modification with a check and error out with EAFNOSUPPORT on failure. Route labels always have AF_UNSPEC and the other types are not used anyway. OK kn@
2023-11-12Now that the last consumer of mps.c is gone, remove it and itsMartijn van Duren
application_legacy.c companion. OK tb@
2023-11-12Move snmpd.conf's oid keyword into application_internal.c. These objectsMartijn van Duren
get registered under their own backend name, so that they can't overlap with the internal regions. This removes the last consumer of mps.c OK tb@
2023-11-12rt_gateway and rt_gwroute use X protections now.David Gwynne
pointed out by bluhm@
2023-11-12rt_setgate performs a series of tweaks to an rtable and the routes inDavid Gwynne
the rtable which should be serialised to ensure they're consistent. unfortunately, rt_setgate is called from the network stack while it's only holding shared NET_LOCK. this uses the [X] protections as described in route.h to serialise the changes, and reworks the code to try and keep enough stuff linked up properly during the changes that it will still work if another cpu is still using the rtentry structs while they still have shared net lock. tested by and ok bluhm@
2023-11-12fix the signal numbers passed to siginterrupt.David Gwynne
from dhill@
2023-11-12bump datasize to 1536M for the default login class to allow the buildRobert Nagy
user to generate the AMDGPU includes in llvm-16 discussed with deraadt@
2023-11-12TargetMCAs.def is required to be installed in the llvm include dirRobert Nagy
so instead of shipping the file internally, let's generate it and install it with the rest of the headers; unbreaks xenocara build
2023-11-12Add support for the Rockchip RK8602 and RK8603 voltage regulators.Patrick Wildt
ok dlg@
2023-11-12flip the ignoreFunctionAddressEquality flag; lost in merging changes from ↵Robert Nagy
llvm-13
2023-11-12split the Symbols.list up so that arch specific symbols do not end up everywhereRobert Nagy
ok tb@
2023-11-12the ws in wscons is short for workstationDavid Gwynne
2023-11-11Fix variable name in commentJeremie Courreges-Anglas
Mostly a dummy commit so that the last llvm commit ends up in the git export. (No idea whether it's actually/still needed but it can't hurt.)