Displaying 1 50 of 514,020 commits (0.040s)

OpenBSD — lib/libssl/src/ssl d1_srvr.c s3_srvr.c

The RSA, DH, and ECDH temporary key callbacks expect the number of keybits
for the key (expressed in RSA key bits, which makes *no sense* for ECDH) as
their second argument, not zero.

(jsing@ notes that the RSA callback is only invoked for 'export' ciphers,
which have been removed from LibreSSL, and for the SSL_OP_EPHEMERAL_RSA
option, which is makes the application non-compliant.  More fuel for the
tedu fire...)

jasper@ noted the breakage and bisected it down to the diff that broke this
ok jsing@ miod@

OpenBSD — regress/lib/libc/arc4random-fork arc4random-fork.c

remove non-portable __progname extern from arc4random unit test.

ok @deraadt

OpenBSD — usr.sbin/httpd Makefile

turn of -Werror, unless you are sure both gcc work...
Delta File
+2 -2 usr.sbin/httpd/Makefile
+2 -2 1 file

OpenBSD — usr.sbin/openssl Makefile

Link dependencies on libssl and libcrypto were missing.
OPENSSL_NO_RC5 is #defined in the #includes, so it's not needed here.

ok deraadt@
Delta File
+3 -2 usr.sbin/openssl/Makefile
+3 -2 1 file

OpenBSD — usr.sbin/pkg_add/OpenBSD State.pm

make sure makewhatis shows error messages without unsightly CODE() refs
Delta File
+7 -1 usr.sbin/pkg_add/OpenBSD/State.pm
+7 -1 1 file

OpenBSD — usr.sbin/pkg_add/OpenBSD PkgCheck.pm

- log libraries in a proper way
- mark wanted libraries, then run the db check.
Gives you a way to figure out when locate db are behind wrt pkgs
Delta File
+19 -1 usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
+19 -1 1 file

OpenBSD — usr.sbin/pkg_add/OpenBSD Log.pm

ensure log stuff happens, even without context
Delta File
+3 -1 usr.sbin/pkg_add/OpenBSD/Log.pm
+3 -1 1 file

OpenBSD — usr.bin/mandoc term_ps.c

code readability; no functional change
Delta File
+6 -8 usr.bin/mandoc/term_ps.c
+6 -8 1 file

OpenBSD — usr.bin/mandoc term_ascii.c

Even for UTF-8 output, a non-breaking space character has the same width
as a normal space character, and not width 0.  Bug reported by bentley@.
Delta File
+7 -2 usr.bin/mandoc/term_ascii.c
+7 -2 1 file

OpenBSD — usr.sbin/httpd server_file.c

Remove redundant slash
Delta File
+2 -2 usr.sbin/httpd/server_file.c
+2 -2 1 file

OpenBSD — sys/kern kern_sched.c

If we're stopping a secondary cpu, don't let sched_choosecpu() short-circuit
and return the current current CPU, otherwise sched_stop_secondary_cpus()
will spin forever trying to empty its run queues.  Fixes hangs during suspend
that many people reported over the last couple of days.

ok bcook@, guenther@
Delta File
+3 -1 sys/kern/kern_sched.c
+3 -1 1 file

OpenBSD — usr.sbin/apmd apmd.c

Revert "adjust -C algorithm to be more aggressive in scaling up" for
the moment, it triggers a race that breaks suspend/resume on some

ok tedu@, deraadt@, jsg@
Delta File
+8 -7 usr.sbin/apmd/apmd.c
+8 -7 1 file

OpenBSD — etc/examples httpd.conf

Add more examples.  Requested by deraadt@
Delta File
+19 -1 etc/examples/httpd.conf
+19 -1 1 file

OpenBSD — usr.sbin/httpd httpd.c

bzero is over, memset is cool.  pointed out by halex@
Delta File
+2 -2 usr.sbin/httpd/httpd.c
+2 -2 1 file

OpenBSD — usr.sbin/dhcpd packet.c

Fix very hard to reach DoS attack vector, which would involve more than
8 billion network packets.  Mixture of many many malformed and proper
packets could result in a division by zero.

ok krw@
Delta File
+4 -3 usr.sbin/dhcpd/packet.c
+4 -3 1 file

OpenBSD — usr.sbin/httpd server.c httpd.h

Differentiate servers by address and port, not just by address.

OpenBSD — usr.sbin/httpd server_http.c

Reset the default Host for each request
Delta File
+3 -1 usr.sbin/httpd/server_http.c
+3 -1 1 file

OpenBSD — usr.sbin/httpd server_http.c server.c

It is recommended to use a URL in the Location header of 3xx
responses.  To accomplish this, add some semantics to retrieve the
server host name of a connection: either IP, IP:PORT (if not 80) or
[IP6]:PORT, or Host value (if valid).

OpenBSD — usr.sbin/httpd server_http.c

Append mandatory Date header to each response.
Delta File
+21 -7 usr.sbin/httpd/server_http.c
+21 -7 1 file

OpenBSD — usr.sbin/httpd server_http.c

New HTTP/1.1 RFC 7231 prefers IMF-fixdate from RFC 5322.
Delta File
+5 -7 usr.sbin/httpd/server_http.c
+5 -7 1 file

OpenBSD — usr.sbin/httpd server_file.c httpd.c

Canonicalize the request path once without the docroot and prepend the
docroot only only when it's needed.  Suggested by deraadt@.

OpenBSD — usr.bin/ssh ssh-agent.c

Clear buffer used for handling messages.  This prevents keys being
left in memory after they have been expired or deleted in some cases
(but note that ssh-agent is setgid so you would still need root to
access them).  Pointed out by Kevin Burns, ok deraadt
Delta File
+2 -1 usr.bin/ssh/ssh-agent.c
+2 -1 1 file

OpenBSD — usr.bin/mandoc cgi.c

Choosing the right encoding is a tricky business...

Printing query strings for URIs *always* needs URI-encoding, and when
embedding the URI into an HTML document, it needs replacement of
the "&" separators by "&" *in addition to that*, not instead.
Delete the function html_primtquery(), it was completely wrong.

You can see the badness by entering "mandoc &sec=2" into the query input
box before this patch and click "Submit".  You come to the right page at
first (...man.cgi?query=mandoc+%26sec%3D2&apropos=0&sec=0&...), but now
the link to mandoc(1) is wrong: ...mandoc.1?query=mandoc &sec=2&...
Clicking on that, the "&sec=2" disappears from the query input box and
suddenly you have the first dropdown set to "2 - System Calls".  Oops.
Delta File
+9 -35 usr.bin/mandoc/cgi.c
+9 -35 1 file

OpenBSD — usr.sbin/httpd server_file.c

Don't leak docroot in the error message if the default index file is missing.

OK florian@
Delta File
+3 -2 usr.sbin/httpd/server_file.c
+3 -2 1 file

OpenBSD — usr.bin/mandoc cgi.c

Sort the URI keys for .Xr links in the same order used by the search form,
and leave out the manpath when it is the default.
For building the HTML formatter options, do not use a static buffer.
Delta File
+13 -8 usr.bin/mandoc/cgi.c
+13 -8 1 file

OpenBSD — usr.bin/mandoc cgi.c

oops, we must not try to validate a manpath we don't have;
fixing an oversight introduced in rev. 1.17
Delta File
+3 -2 usr.bin/mandoc/cgi.c
+3 -2 1 file

OpenBSD — usr.bin/mandoc cgi.c

We cannot easily control the order of the QUERY_STRING keys generated
by the search form, it's just the order of the fields in the form.
Actually, that's not too bad; the generated URI resembles the
generating form.

To minimize confusion for people looking at URIs, give the keys
in the same order when generating URIs for search listings and
search redirections, the latter being used instead of search
listings that would have only one single entry.  Also, if the
manpath is the default, remove it form the generated URIs.
Delta File
+19 -17 usr.bin/mandoc/cgi.c
+19 -17 1 file

OpenBSD — usr.bin/mandoc cgi.c

In generated .Xr links, avoid double encoding of ampersands
and avoid empty arch= keys.
Delta File
+3 -2 usr.bin/mandoc/cgi.c
+3 -2 1 file

OpenBSD — usr.sbin/httpd httpd.conf.5

Add multiple-servers "virtual hosts" example.
Delta File
+27 -5 usr.sbin/httpd/httpd.conf.5
+27 -5 1 file

OpenBSD — distrib/sets/lists/base md.octeon

fix perl5 architecture name

ok deraadt@
Delta File
+462 -462 distrib/sets/lists/base/md.octeon
+462 -462 1 file

OpenBSD — usr.bin/mandoc cgi.c

Even though this is not XHTML yet, remove some gratuitious violations
of XHTML syntax.  Also add some cosmetic newlines to the HTML code.
Delta File
+12 -12 usr.bin/mandoc/cgi.c
+12 -12 1 file

OpenBSD — usr.sbin/httpd parse.y

Add a single line to fix the address matching of multiple server blocks with
non-virtual hosts.  I had this line in a previous diff.
Delta File
+2 -1 usr.sbin/httpd/parse.y
+2 -1 1 file

OpenBSD — usr.bin/mandoc cgi.c

The names of all other struct query memebers match the corresponding
QUERY_STRING keys, so rename "expr" to "query".
Also add some missing function prototypes.
No functional change.
Delta File
+17 -13 usr.bin/mandoc/cgi.c
+17 -13 1 file

OpenBSD — usr.bin/mandoc cgi.c

clean up pg_show() to not modify a string returned from getenv(3)
Delta File
+20 -15 usr.bin/mandoc/cgi.c
+20 -15 1 file

OpenBSD — usr.sbin/httpd httpd.c config.c

Add support for "virtual hosts" aka. server blocks aka. multiple
servers with the same or "overlapping" IP address but a different name.

ok beck@

OpenBSD — usr.bin/mandoc cgi.c

Rewrite http_parse() completely:
1. Make sure the last occurrence of each key is used, even if
it is empty, in which case it resets the value to the default.
2. When there is an HTTP encoding error, skip the affected
key-value pair only, but not all subsequent key-value pairs.
3. Do not modify a string returned from getenv(3).
4. Do not assume the NULL pointer is all null bits.
Delta File
+103 -48 usr.bin/mandoc/cgi.c
+103 -48 1 file

OpenBSD — usr.sbin/httpd parse.y httpd.conf.5

Add and document 'root' configuration option for the docroot.

OpenBSD — lib/libssl/src/crypto/chacha chacha.h, lib/libssl/src/crypto/poly1305 poly1305.h

Add missing year to copyright.

OpenBSD — usr.sbin/httpd server.c server_http.c

Split server and server_config.

OpenBSD — usr.sbin/httpd server.c httpd.h

Rename a field, needed later, no functional change.

OpenBSD — usr.sbin/httpd server_file.c parse.y

Move the docroot into the server block.

OpenBSD — lib/libssl/src/apps enc.c apps.c, lib/libssl/src/crypto/asn1 bio_ndef.c

BIO_free() returns immediately when the sole input is NULL.
Remove unnecessary NULL check.

ok miod@

OpenBSD — share/man/man9 bufq_init.9

document the scheduler types and how to specify them.

some pointers from schwarze@
Delta File
+20 -1 share/man/man9/bufq_init.9
+20 -1 1 file

OpenBSD — usr.bin/ssh ssh.1

Mention UNIX-domain socket forwarding too.  OK jmc@ deraadt@
Delta File
+8 -5 usr.bin/ssh/ssh.1
+8 -5 1 file

OpenBSD — sys/dev/pckbc pckbd.c

Speed up the boot sequence by deferring the scan of xt keyboard code set.

If you were wondering why there's a pause of 5 seconds after loading the
kernel and before seeing the copyright in blue when booting some of your
machines, well this is for you!

mlarkin@ found that this delay is caused by some code probing for xt scan
code tables when pckbd(4) initialize the console keyboard.  So this diff
implements an idea from deraadt@ to only do the scan once, either during
*attach() or if we enter ddb> or ukc> before that!

ok miod@, mlarkin@, deraadt@, shadchin@
Delta File
+23 -24 sys/dev/pckbc/pckbd.c
+23 -24 1 file

OpenBSD — usr.bin/mandoc mansearch.c cgi.c

Sort result pages first by section number, then by name.
By moving the sort from cgi.c to mansearch.c, we get two advantages:
Easier access to the data needed for sorting, in particular the section
number, and the apropos(1) command line utility profits as well.

Feature requested by deraadt@.

OpenBSD — distrib/sparc/ramdisk list.local

Provide eeprom(8) on the sparc installation media. Intended to help diagnosing
installation problems.
``if it fits go for it'' deraadt@ (and it fits)
Delta File
+2 -1 distrib/sparc/ramdisk/list.local
+2 -1 1 file

OpenBSD — distrib/special Makefile

+ eeprom
Delta File
+2 -2 distrib/special/Makefile
+2 -2 1 file

OpenBSD — distrib/special/eeprom Makefile

Build machinery to build eeprom(8) for the installation media on arches where
it matters.
Delta File
+20 -0 distrib/special/eeprom/Makefile
+20 -0 1 file

OpenBSD — usr.sbin/eeprom main.c eehandlers.c

Shunt hwupdate property decoding in sparc's old prom (sun4 only) if