summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2023-05-30Convert all of filemode to use the json API as well.Claudio Jeker
Output is mostly the same apart from some space differences. OK tb@ job@
2023-05-30Use error check to ensure we have SignedData in CMSTheo Buehler
CMS_get0_SignerInfos() only returns a non-NULL pointer if the CMS object contains SignedData. The subsequent assert can trigger if we parse an object that is not of this type. Nothing ensures this up to this point, so we have no way of knowing that the assertion is actually true. If we get a CMS object without SignedData, we should ignore it, not abort the rpki-client run. With this check in place it is also clear that we actually check point 1a of the list of things to check in RFC 6488, section 3. ok claudio job
2023-05-29use v5.36, this one is somewhat trivialMarc Espie
2023-05-28Used number of bytes instead of number of 512 byte sectors.ASOU Masato
ok dv@
2023-05-27the solver needs some love for laterMarc Espie
2023-05-27remove the extra local variable (blessing a ref to self DOES work)Marc Espie
accordingly zap the extra blocks that are no longer needed making this look less funky
2023-05-27comment/cosmeticMarc Espie
2023-05-27more commentMarc Espie
2023-05-27yeah, yeah, those names are horribleMarc Espie
2023-05-27finish making this a singleton class (which I don't always likeMarc Espie
and is definitely worthy of a comment)
2023-05-27more descriptive commentMarc Espie
2023-05-27indicate that not having hashes already is just legacy neededMarc Espie
until all old packages are gone
2023-05-27point people towards relevant commentsMarc Espie
2023-05-27a few commentsMarc Espie
explicitly return undef from check, which will prevent casual me from 'fixing' it later
2023-05-27prepare for 5.36: pass $code as @code so that we don't haveMarc Espie
to decide a default right away (I should apply this everywhere I go to read a plist actually)
2023-05-27commentsMarc Espie
2023-05-27document base methodMarc Espie
2023-05-27try/catch to be revisitedMarc Espie
2023-05-27comments/cosmeticsMarc Espie
2023-05-27restore documentation: explain what ArcCheck doesMarc Espie
2023-05-27cosmetic/comments improvementMarc Espie
2023-05-27- make the handling of interactive more regular byMarc Espie
delegating the choice of the class to a separate method - zap/improve meaningless comments - mark ntogo as a focus for improvements
2023-05-27prepare for 5.36, document methods in base classMarc Espie
2023-05-26Properly account del_extra_files and add the value to the json header.Claudio Jeker
OK tb@ (from a larger diff)
2023-05-25In session_process_msg() recheck the validity of the rbuf before movingClaudio Jeker
the remaining data around. There is an improbable case where a NOTIFICATION is received while also reaching the MSG_PROCESS_LIMIT. In this case rbuf is NULL when breaking out of the for loop and hitting this code. sthen@ is the (un)lucky person to hit that improbable case OK tb@ sthen@
2023-05-25Update usage add -P epochClaudio Jeker
2023-05-25Fix repo_cleanup_entry() state machine so that the repository lookupsClaudio Jeker
are done when the full repo path is available. Without this all repo lookups returned NULL and the code did not work as intended. OK tb@
2023-05-25remove two unused definesOmar Polo
last PROC_COUNT use was removed with the switch to fork+exec by eric@ in 2016, CA_FILE with the removal of cert.c two years ago. ok tb@, kn@
2023-05-23don't pass state, we get them from the progressmeterMarc Espie
2023-05-23Convert ASN1_INTEGER_get() to ASN1_INTEGER_get_uint64()Theo Buehler
The former is broken by design and should not be used. The latter allows for unambiguous error checking. Add a few casts to print uint64_t without the PRIu64 monstrosity. ok claudio
2023-05-23Simplify as_id_parse() using ASN1_INTEGER_get_uint64()Theo Buehler
Instead of decoding an ASN1_INTEGER by hand because ASN1_INTEGER_get() is broken by design and would report an error on LP32 architectures for the reserved ASid UINT32_MAX, we can simplify this ugliness and use the ASN1_INTEGER_get_uint64() API, available since LibreSSL 3.6. ok claudio
2023-05-22Convert generalizedtime_to_tm() to ASN1_TIME_to_tm()Theo Buehler
Second step of moving away from ASN1_time_parse(). Being an OpenSSL API, ASN1_TIME_to_tm() supports a variety of things. In this specific case we don't really want it to parse anything but a GeneralizedTime expressed in Zulu time. Unfortunately, OpenSSL make this annoying. So punt on this and only do checks for the correct type and length. LibreSSL only accepts Zulu time, so there is no change of behavior. ok claudio job
2023-05-22Convert x509_get_time() to ASN1_TIME_to_tm()Theo Buehler
Instead of using the LibreSSL-specific ASN1_time_parse(), we can use OpenSSL's ASN1_TIME_to_tm() which LibreSSL provides since 3.6.0. The latter has a few API quirks such as silently falling back to being a timegm() replacement if called with a NULL ASN1_TIME. We don't want that, so just return an error instead. rpki-client portable now needs LibreSSL >= 3.6. This is a small price to pay for rather significant smiplifications in regress and portable (which will be possible after the next commit). Also adjust a couple of error strings. ok claudio job
2023-05-22Avoid use of LibreSSL-specific ASN1_time_tm_cmp() APITheo Buehler
We convert these struct tm into time_t in the next few lines, so we can simply use > instead. ok claudio job
2023-05-22gc unused/old codeMarc Espie
2023-05-22Keep trying LDAP servers until we get full results from one, rather thanJonathan Matthew
just until one accepts the TCP connection. In multi server environments, this makes ypldap more resilient when some servers are misbehaving. While here, add the server address to log messages relating to connection errors to make it easier to identify which server is failing. ok tb@
2023-05-21missed oneMarc Espie
2023-05-21move the interface to SharedLibs to be somewhat object orientedMarc Espie
accordingly, load it "just in time" in State. Most calls get simplified, and we can save more state for later.
2023-05-21document how this is used... There's nothing that actually uses theMarc Espie
export part, and be explicit about how we call code refs.
2023-05-21"fix" for 5.36: pass the possible option value as an extra paramMarc Espie
instead of defined/undefined, so that the code sub is called with the right number of parameters.
2023-05-21v5.36, trivial moveMarc Espie
2023-05-20Don't bother setting the effective group, it doesn't affect file creationMarc Espie
on a BSD system anyhow (duh moment, thx semarie@)
2023-05-19fix markup for `maildir' in smtpd.conf(5)Omar Polo
pathname and junk are both optional, but indipendently so. ok aisha, millert
2023-05-19make Paths fully OO, as it makes some things simplerMarc Espie
2023-05-19this parameter does not existMarc Espie
2023-05-19remove indirect callsMarc Espie
2023-05-18user: handle paths with whitespace / metacharactersTodd C. Miller
Use execv(3) instead of system(3) to run external commands. This avoids problems with whitespace and shell metacharacters in path names. OK op@
2023-05-18adjust style to post v5.36 worldMarc Espie
2023-05-17fix -nMarc Espie
2023-05-17stop using old-style prototypes except where strictly necessaryMarc Espie
(for try/catch) signatures will be much more powerful once I move to 5.36