summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-08Surprisingly, every escape sequence can also be used as an argumentIngo Schwarze
delimiter for an outer escape sequence, in which case the delimiting escape sequence retains its syntax but usually ignores its argument and loses its inherent effect. Add rudimentary support for this syntax quirk in order to improve parsing compatibility with groff.
2022-06-08syncStuart Henderson
2022-06-08stfpinctrl(4)Mark Kettenis
2022-06-08Add a new option which allows to set an alternative base-directory toMarcus Glocker
download the installation files to. This is helpful if the default base-directory /home isn't available for writing, i.e. when using auto mounted home directories. Discussed with and input received from florian@, jmc@, sthen@, schwarze@, and ajacoutot@. OK florian@, jmc@, sthen@
2022-06-08Add stfpinctrl(4).Mark Kettenis
2022-06-08Add stfpinctrl(4), a driver for the pinctrl/gpio block found on theMark Kettenis
StarFive JH7100 SoC. ok jsg@
2022-06-08syncStuart Henderson
2022-06-07fixes potential memory leak. if_vinput() should always consume packetAlexandr Nedvedicky
by either passing it further or releasing it. OK mvs@
2022-06-07fixes NULL pointer dereference panic triggered by relayd.Alexandr Nedvedicky
same panic can be triggered when address table is part of anchor loaded by 'load anchor ... from ..,' statement. pf_find_or_create_ruleset() function called by pfr_add_tables() must receive ruleset name which comes from pre-allocated root table. OK claudio@ dlg@
2022-06-07Enable stfclock(4) and make xhci(4) attach to fdt.Mark Kettenis
2022-06-07Fix format strings: change %i, %li, %lli to %d, %ld, %lld and switch toTheo Buehler
%zu for master_key_length, session_id_length and sid_ctx_length, which are now size_t.
2022-06-07Change the loop index from an unsigned int to size_t now that allTheo Buehler
upper bounds are known to be size_t. ok jsing
2022-06-07Simplify another CBS_write_bytes() call in d2i_SSL_SESSION()Theo Buehler
ok jsing
2022-06-07Switch sid_ctx_length in SSL, SSL_CTX and SSL_SESSION to a size_tTheo Buehler
ok jsing
2022-06-07Use CBS_write_bytes() instead of manual unpacking of a CBS and assigningTheo Buehler
length and using memcpy(). This also provides a missing overflow check (which is done by the only caller, however). ok jsing
2022-06-07Simplify various CBS_write_bytes() callsTheo Buehler
Now that session_id_length is a size_t, we can pass it directly to CBS_write_bytes() instead of using a temporary variable. ok jsing
2022-06-07Switch SSL_SESSION's session_id_length to a size_tTheo Buehler
ok jsing
2022-06-07Add missing error check call in ssl3_get_new_session_ticket()Theo Buehler
EVP_Digest() can fail, so handle failure appropriately and prepare switch of session_id_length to a size_t. ok jsing
2022-06-07Another small readability tweak: compare explicitly against 0 and NULL,Theo Buehler
respectively ok jsing
2022-06-07Tweak readability of a test: compare tmp explicitly against 0 and dropTheo Buehler
redundant parentheses. ok jsing
2022-06-07Add a cast to SSL_SESSION_get_id() to indicate that session_id_lengthTheo Buehler
is deliberately reduced to an unsigned int. Since the session_id is at most 32 bytes, this is not a concern. ok jsing
2022-06-07fix indentTheo Buehler
2022-06-07Unindent and simplify remove_session_lock()Theo Buehler
ok jsing (who informs me he had the same diff in his jungle)
2022-06-07Drop an unnecessary castTheo Buehler
ok jsing
2022-06-07Simplify CBS_write_bytes() invocationTheo Buehler
Now that master_key_length is a size_t, we no longer have to fiddle with data_len. We can rather pass a pointer to it to CBS_write_bytes(). ok jsing
2022-06-07The master_key_length can no longer be < 0Theo Buehler
ok jsing
2022-06-07Switch the SSL_SESSION's master_key_length to a size_tTheo Buehler
ok jsing
2022-06-07Add error checking to tls_session_secret_cb() callsTheo Buehler
Failure of this undocumented callback was previously silently ignored. Follow OpenSSL's behavior and throw an internal error (for lack of a better choice) if the callback failed or if it set the master_key_length to a negative number. Unindent the success path and clean up some strange idioms. ok jsing
2022-06-07Try to be more precise with rtlabelid tracking.Claudio Jeker
By moving the rtlabel_unref into kroute_remove the unref is more reliable. There are still places where handling is not quite right but it is a step in the right direction. OK tb@
2022-06-07uint8_t not u_int8_t. Damn finger memory.Claudio Jeker
2022-06-07Retire F_RTLABEL it was not used for anything.Claudio Jeker
Also cleanup some redundant if statements. OK tb@
2022-06-07merge unbound 1.16.0Stuart Henderson
2022-06-07update to unbound 1.16.0, discussed with florian@, test from Renaud AllardStuart Henderson
2022-06-07Remove uvm_km_valloc_prefer_wait(9) and uvm_km_free_wakeup(9) now thatMark Kettenis
nothing uses these functions anymore. ok mpi@
2022-06-07Remove redundant check for free pages. The pmemrange code that is calledMark Kettenis
by uvm_pglistalloc(9) does a similar check already. ok mpi@
2022-06-07Expand arguments to some commands where it makes sense, GitHub issueNicholas Marriott
3204 from Anindya Mukherjee.
2022-06-07Split the excessively generic diagnostic message "invalid escape sequence"Ingo Schwarze
into the more specific messages "invalid escape argument delimiter" and "invalid escape sequence argument".
2022-06-07Purge duplicate error reporting from the .tr request parser:Ingo Schwarze
the error was already reported earlier when roff_expand() called roff_escape().
2022-06-07Fix path validation of AS numbersTheo Buehler
If a certificate along the chain does not have an AS numbers extension, this is a failure condition according to RFC 3779, section 3.3. ok job
2022-06-06stfclock(4)Mark Kettenis
2022-06-06bump pbuild's datasize-cur from 2G to 3G on i386, this or close to itStuart Henderson
is needed to build some important ports. ok tb@
2022-06-06To better match groff parsing, reject digits and some mathematicalIngo Schwarze
operators as argument delimiters for some escape sequences that take numerical arguments, in the same way as it had already been done for \h. Argument delimiter parsing for escape sequences taking numerical arguments is not perfect yet. In particular, when a character representing a scaling unit is abused as the argument delimiter, parsing for that character becomes context-dependent, and it is no longer possible to find the end of the escape sequence without calling the full numerical expression parser, which i refrain from attempting in this commit. For now, continuing to misparse insane constructions like \Bc1c+1cc (which is valid in groff and resolves to "1" because 1c+1c = two centimeters is a valid numerical expression and 'c' is also a valid delimiter) is a small price to pay for keeping complexity at bay and for not losing focus in the ongoing series of refinements.
2022-06-06Use SSL3_CK_VALUE_MASK instead of hardcoded 0xffff and remove someTheo Buehler
SSLv2 remnants. ok jsing
2022-06-06Tweak comment describing the SSL_SESSION ASN.1Theo Buehler
ok jsing
2022-06-06Minor style cleanup in ssl_txt.cTheo Buehler
Wrap long lines and fix a bug where the wrong struct member was checked for NULL. ok jsing
2022-06-06Enable stfclock(4) and make xhci(4) attach to fdt.Mark Kettenis
2022-06-06Add stfclock(4), a driver for the clock controller found on the StarFiveMark Kettenis
JH7100 SoC. ok jsg@
2022-06-06Simplify solock() and sounlock(). There is no reason to return a valueClaudio Jeker
for the lock operation and to pass a value to the unlock operation. sofree() still needs an extra flag to know if sounlock() should be called or not. But sofree() is called less often and mostly without keeping the lock. OK mpi@ mvs@
2022-06-06Remove unused prototype.Mark Kettenis
Fix a whitespace issue.
2022-06-06Fix comment + spacing.Theo Buehler
Apparently 60 * 5 + 4 seconds is 5 minutes. Presumably this is the case with sufficiently potent crack, which would explain a few things in here.