miod [Sun, 13 Jul 2014 09:30:02 +0000 (09:30 +0000)]
No need to include evp_locl.h in there.
mpi [Sun, 13 Jul 2014 09:28:06 +0000 (09:28 +0000)]
Split config_attach/detach(9) from autoconf(9). Stop talking about
config_deactivate(9), it should die. Mention config_detach_children(9).
Use CONTEXT and RETURN VALUES sections
jasper [Sun, 13 Jul 2014 09:26:08 +0000 (09:26 +0000)]
move putchar() into libsa
"sure" miod@
miod [Sun, 13 Jul 2014 09:09:16 +0000 (09:09 +0000)]
One missing boot -> prsignal(initprocess) conversion
miod [Sun, 13 Jul 2014 09:08:20 +0000 (09:08 +0000)]
These still need <sys/reboot.h> for the RB_ constants.
deraadt [Sun, 13 Jul 2014 08:32:06 +0000 (08:32 +0000)]
sync
beck [Sun, 13 Jul 2014 08:24:20 +0000 (08:24 +0000)]
Take away the use of the address of main as a source of entropy. Causes
distractions to people testing and seeing link errors in some setups.
This will come back in another form
ok deraadt@
tedu [Sun, 13 Jul 2014 08:15:16 +0000 (08:15 +0000)]
more mmap random on 64-bit platforms. noticed in freebsd aslr patches.
miod [Sun, 13 Jul 2014 08:13:07 +0000 (08:13 +0000)]
Add missing atomic primitives and __sync_synchronize to let the kernel
compile again; tested by aoyama@
robert [Sun, 13 Jul 2014 08:07:51 +0000 (08:07 +0000)]
document that rc.conf is not a shell script anymore
ajacoutot [Sun, 13 Jul 2014 07:12:41 +0000 (07:12 +0000)]
Also ignore examplessum.
mpi [Sun, 13 Jul 2014 07:10:58 +0000 (07:10 +0000)]
Bye bye
mpi [Sun, 13 Jul 2014 07:06:23 +0000 (07:06 +0000)]
No need for ezload.h
dlg [Sun, 13 Jul 2014 05:23:24 +0000 (05:23 +0000)]
we dont do per interface accounting in the mbuf layer anymore
bluhm [Sun, 13 Jul 2014 02:01:23 +0000 (02:01 +0000)]
Make the pf_fragment test pass again. pf does not adjust the
checksum of a NATed UDP or TCP packet in the payload of an ICMP
packet anymore. Disable all test that rely on this feature.
Check that the router's interface mtu has been set to 1300.
bluhm [Sun, 13 Jul 2014 01:47:20 +0000 (01:47 +0000)]
Make the pf_forward test pass again. Check that the router's
interface mtu has been set to 1300. New netcat needs -N for shutdown.
The IPv4 and IPv6 addresses for the af-to tests must have corresponding
host numbers.
benno [Sun, 13 Jul 2014 00:32:08 +0000 (00:32 +0000)]
improve log output for relays. adjust regress tests
ok reyk
jsing [Sun, 13 Jul 2014 00:30:07 +0000 (00:30 +0000)]
KNF and some code cleaning.
benno [Sun, 13 Jul 2014 00:18:05 +0000 (00:18 +0000)]
repair matching of headers, add regress test for this error
ok reyk
schwarze [Sun, 13 Jul 2014 00:16:03 +0000 (00:16 +0000)]
update after recent code changes
deraadt [Sun, 13 Jul 2014 00:10:47 +0000 (00:10 +0000)]
remove silly cast
jsing [Sun, 13 Jul 2014 00:08:44 +0000 (00:08 +0000)]
Another large dose of KNF.
deraadt [Sun, 13 Jul 2014 00:01:54 +0000 (00:01 +0000)]
sync
jsing [Sat, 12 Jul 2014 23:59:11 +0000 (23:59 +0000)]
Apply a large dose of KNF.
reyk [Sat, 12 Jul 2014 23:55:35 +0000 (23:55 +0000)]
Use Comic Sans (or Chalkboard) as the default font for HTTP error
messages because we love web hipsters.
ok beck@
jasper [Sat, 12 Jul 2014 23:45:33 +0000 (23:45 +0000)]
- remove CONSPEED from libsa.h
- remove unused define
schwarze [Sat, 12 Jul 2014 23:40:44 +0000 (23:40 +0000)]
Polish the search form using feedback from beck@ and others,
in particular introduce a section dropdown and an architecture dropdown.
jasper [Sat, 12 Jul 2014 23:34:54 +0000 (23:34 +0000)]
unify cnspeed()
reyk [Sat, 12 Jul 2014 23:34:54 +0000 (23:34 +0000)]
Add httpd(8), an attempt to turn the relayd(8) codebase into a simple
web server. It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.
It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.
ok deraadt@
jsg [Sat, 12 Jul 2014 23:31:07 +0000 (23:31 +0000)]
regen
jsg [Sat, 12 Jul 2014 23:30:14 +0000 (23:30 +0000)]
missed the trailing digit
deraadt [Sat, 12 Jul 2014 23:27:43 +0000 (23:27 +0000)]
resurrect this treasure (still needed to build microcode)
jsg [Sat, 12 Jul 2014 23:16:23 +0000 (23:16 +0000)]
Print a line in dmesg to indicate if the aperture driver is
required to run X. This will be used by the installer to decide
what value to set machdep.allowaperture to.
For devices supported by i915 and radeon kms machdep.allowaperture
will be set to 0. Systems that have a graphics device commonly
found in servers (g200e*/aspeed/es1000 etc) will also not have
the aperture enabled as they generally don't need to run X.
ok deraadt@ kettenis@
miod [Sat, 12 Jul 2014 22:47:41 +0000 (22:47 +0000)]
duplicate function names in head1
bluhm [Sat, 12 Jul 2014 22:43:31 +0000 (22:43 +0000)]
Automatically load the required pf rules into the kernel of the
remote test machine.
uebayasi [Sat, 12 Jul 2014 22:37:03 +0000 (22:37 +0000)]
reboot(9), panic(9): Call panic(9) for unrecoverable MD H/W errors (NMIs)
Some architectures have ability to detect hardware sanity and notify system
(NMI, firmware callback, etc.). Handle these hardware severe errors, same
as software errors, with panic(9).
According to miod@, SGI IP27 NMI is triggered by pushing some "hidden" button,
which "usual" users/admins don't know. Pushing such a button is "RB_USERREQ"
(human-triggered) in that the button is pushed by a human, but not "RB_USERREQ"
in that no user intervention in system (== no command input) is done. miod@
agreed that changing these from RB_USERREQ to !RB_USERREQ (== panic(9)) is
not a big problem.
OK miod@ kettenis@
jsing [Sat, 12 Jul 2014 22:33:39 +0000 (22:33 +0000)]
The correct name for EDH is DHE, likewise EECDH should be ECDHE.
Based on changes to OpenSSL trunk.
ok beck@ miod@
jmc [Sat, 12 Jul 2014 22:27:09 +0000 (22:27 +0000)]
some basic formatting fixes;
miod [Sat, 12 Jul 2014 22:26:01 +0000 (22:26 +0000)]
No need to include asn1_mac.h here.
jsg [Sat, 12 Jul 2014 22:17:59 +0000 (22:17 +0000)]
remove double brackets. fixes build with clang.
ok jsing@
espie [Sat, 12 Jul 2014 22:08:23 +0000 (22:08 +0000)]
don't check_security on newer *after* making sure the set doesn't have
errors. Note that the errors are already signaling enough (conflicts, bad
package etc)... And not having any errors mean we actually have proper plists.
problem noticed by zhuk@
ajacoutot [Sat, 12 Jul 2014 22:06:11 +0000 (22:06 +0000)]
egsum -> examplessum
ajacoutot [Sat, 12 Jul 2014 22:05:16 +0000 (22:05 +0000)]
egsum -> examplessum to make it more obvious.
req. by deraadt@
ajacoutot [Sat, 12 Jul 2014 22:03:44 +0000 (22:03 +0000)]
Simplify checksum generation for sysmerge.
no objection from deraadt@
brad [Sat, 12 Jul 2014 22:03:16 +0000 (22:03 +0000)]
Add in missing brswphy(4) and the commented out USB entries.
ok pirofti@
tedu [Sat, 12 Jul 2014 21:58:36 +0000 (21:58 +0000)]
uyap: your call has been disconnected
tedu [Sat, 12 Jul 2014 21:56:56 +0000 (21:56 +0000)]
"Dr. Jones. Again we see there is nothing you can possess which I cannot
take away."
remove uyap. no effect except on hppa where it was strangely enabled.
jasper [Sat, 12 Jul 2014 21:54:57 +0000 (21:54 +0000)]
move getchar() into libsa where applicable
ok miod@
miod [Sat, 12 Jul 2014 21:49:27 +0000 (21:49 +0000)]
Build kernels at -O2 instead of -Os, as done for userland and on all other
architectures.
ok deraadt@
pirofti [Sat, 12 Jul 2014 21:47:04 +0000 (21:47 +0000)]
Fix the last commit by proper dereferencing the disklabel partition.
Found by me, fixed by krw@. Thanks!
deraadt [Sat, 12 Jul 2014 21:44:42 +0000 (21:44 +0000)]
sync
bluhm [Sat, 12 Jul 2014 21:41:49 +0000 (21:41 +0000)]
Teach these pf regress tests to run with obj directory and to fail
softly if the setup is incomplete. Link them to the build.
zhuk [Sat, 12 Jul 2014 21:28:58 +0000 (21:28 +0000)]
Add devel/cmake bits (rotted in my tree for more than a year) and a short
description of x11/kde4 variables. Everyone is welcome to extend&improve.
okay espie@
mpi [Sat, 12 Jul 2014 21:24:33 +0000 (21:24 +0000)]
Kill the last dumb DVACT_DEACTIVATE handlers.
matthew [Sat, 12 Jul 2014 21:21:19 +0000 (21:21 +0000)]
Refactor out dosigsuspend() function
Discussed with guenther and kettenis
miod [Sat, 12 Jul 2014 21:08:53 +0000 (21:08 +0000)]
Remove this sentence:
``The probability that a randomly generated key is weak is -1/2^52,
so it is not really worth checking for them.''
This kind of naively optimistic attitude is not compatible with security.
pirofti [Sat, 12 Jul 2014 21:07:33 +0000 (21:07 +0000)]
Fix USB connect freeze by clearing the host port interrupt.
Connects and disconnects have no affect on the machine, just like before
this driver came into existence.
While at it check for a few more interrupt types.
yasuoka [Sat, 12 Jul 2014 21:06:34 +0000 (21:06 +0000)]
Resize the pcb hashtable automatically. The table size will be doubled
when the number of the hash entries reaches 75% of the table size.
ok dlg henning, 'commit in' claudio
krw [Sat, 12 Jul 2014 21:04:07 +0000 (21:04 +0000)]
Log a warning whenever RTM_DESYNC is seen. Thus giving entrail
investigators some clue why dhclient may have gotten confused when
some RTM_ messages vanish.
sthen@ thinks this is a good start.
tedu [Sat, 12 Jul 2014 21:03:38 +0000 (21:03 +0000)]
revert a few stragglers hiding out
bluhm [Sat, 12 Jul 2014 21:00:46 +0000 (21:00 +0000)]
Use a saner and consistent address layout for my network tests that
run over 4 machines. Add a check-setup target to verify that
interface addresses and routes are properly set up.
mpi [Sat, 12 Jul 2014 20:58:44 +0000 (20:58 +0000)]
teduuuuuudfu(4) it has never been enabled in 5 years.
ok tedu@, deraadt@
tedu [Sat, 12 Jul 2014 20:58:31 +0000 (20:58 +0000)]
revert more free fallout
miod [Sat, 12 Jul 2014 20:56:21 +0000 (20:56 +0000)]
more MLINKS
wouter [Sat, 12 Jul 2014 20:54:49 +0000 (20:54 +0000)]
getentropy on Windows. It compiles but has not been thoroughly tested yet.
OK: beck@
wouter [Sat, 12 Jul 2014 20:41:47 +0000 (20:41 +0000)]
Remove signed/unsigned warning, statement before declaration and
add a function to use function pointers that does not take sizeof(fptr).
OK beck@
jmc [Sat, 12 Jul 2014 20:41:09 +0000 (20:41 +0000)]
zap trailing whitespace;
krw [Sat, 12 Jul 2014 20:38:27 +0000 (20:38 +0000)]
Oops. Correct variable name more likely to compile.
miod [Sat, 12 Jul 2014 20:37:07 +0000 (20:37 +0000)]
We have EVP_CIPH_FLAG_DEFAULT_ASN1 in evp.h; no need to keep constructs to
build on pre-EVP_CIPH_FLAG_DEFAULT_ASN1 codebases.
ok jsing@
jasper [Sat, 12 Jul 2014 20:36:52 +0000 (20:36 +0000)]
- replace main() with mips_init() so we can save the arguments from uboot to
pass it to the kernel later on. also use it to get the clock frequency.
- implement getsecs() so the bootprompt timeout works
input/ok miod@ pirofti@
krw [Sat, 12 Jul 2014 20:36:45 +0000 (20:36 +0000)]
Calculate i/o starts and sizes in 'proper' sectors rather assuming
512-byte sectors. Unlikely to affect CF's in the near future.
ok pirofti@
jasper [Sat, 12 Jul 2014 20:31:52 +0000 (20:31 +0000)]
add guards to just make available to the bootblocks what they need.
prompted by miod@
mpi [Sat, 12 Jul 2014 20:26:33 +0000 (20:26 +0000)]
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set
the 'dying' flag.
uebayasi [Sat, 12 Jul 2014 20:18:08 +0000 (20:18 +0000)]
reboot(9): Shutdown system by signaling init(8) from kernel where appropriate
Some ports watch temperature in MD and try to shutdown system, when overheated,
by calling directly (re)boot(9). Change this to signal init(8) from kernel,
as acpi(4) and acpitz(4) do, which has been more tested. This also helps to
clarify design that ``clean shutdown must be always started by init(8)''.
Note that SIGUSR2 causes init(8) to call reboot(2) with RB_POWERDOWN, as
acpi(4) etc. already does. It is reasonable, pointed out by kettenis@,
considering system is overheated and immediate reboot may be dangerous.
OK deraadt@ miod@
krw [Sat, 12 Jul 2014 20:16:38 +0000 (20:16 +0000)]
Close connections when msgbuf_write() returns 0.
ok claudio@
mpi [Sat, 12 Jul 2014 20:13:48 +0000 (20:13 +0000)]
Protect the freelists of transfer descriptors with the appropriate spl
so that we do not end up allocating two times new descriptors.
This happens if a thread finds an empty list, start allocating, got
interrupted and the interrupt also finds an empty list.
Fix an issue reported by Nils Frohberg.
ok yuo@, pirofti@
miod [Sat, 12 Jul 2014 20:11:45 +0000 (20:11 +0000)]
Remove private_{Camellia,RC4}_set_key FIPS indirection tentacles, as has been
done for other symmetric algorithms recently.
brad [Sat, 12 Jul 2014 20:07:34 +0000 (20:07 +0000)]
Mark the interface down and cancel the watchdog timer in imxenet_stop().
ok matthieu@ rapha@
yasuoka [Sat, 12 Jul 2014 20:07:07 +0000 (20:07 +0000)]
Fix a potential bug. privsep.c didn't check the interface name
correctly if it's pppx.
espie [Sat, 12 Jul 2014 19:58:20 +0000 (19:58 +0000)]
oh well, remove -Q entirely... I'm probably the only one who ever used that.
henning [Sat, 12 Jul 2014 19:58:17 +0000 (19:58 +0000)]
ewps, that giant table has -inet6 twice, for SMALL and !SMALL
no breakage involved, but wasn't correct in the SMALL case either
pirofti [Sat, 12 Jul 2014 19:54:17 +0000 (19:54 +0000)]
Whitespace
espie [Sat, 12 Jul 2014 19:54:15 +0000 (19:54 +0000)]
security check in quirks
espie [Sat, 12 Jul 2014 19:53:43 +0000 (19:53 +0000)]
undocument -Q
espie [Sat, 12 Jul 2014 19:50:43 +0000 (19:50 +0000)]
finish killing old experiment, less confusing code
jasper [Sat, 12 Jul 2014 19:47:38 +0000 (19:47 +0000)]
rename variable to better indicate it's meaning
jsing [Sat, 12 Jul 2014 19:45:53 +0000 (19:45 +0000)]
Provide ssl_version_string() function, which uses one of those modern C
constructs (a switch statement) and returns the appropriate string defined
by SSL_TXT_* for the given version, including support for DTLSv1 and
DTLSv1-bad. Use this function in SSL_get_version() and SSL_SESSION_print().
ok beck@
espie [Sat, 12 Jul 2014 19:44:54 +0000 (19:44 +0000)]
@endfake died a while ago
espie [Sat, 12 Jul 2014 19:39:09 +0000 (19:39 +0000)]
so, pkg_check can now troll thru the whole file system. Either use
a full pkglocatedb, or the system locate dbs...
yasuoka [Sat, 12 Jul 2014 19:34:31 +0000 (19:34 +0000)]
Fix error in previous.
jsing [Sat, 12 Jul 2014 19:31:21 +0000 (19:31 +0000)]
In openssl_startup(), call SSL_library_init() and SSL_load_error_strings().
This allows us to remove the ERR_load_crypto_strings() call, along with
the various SSL_load_error_strings() and OpenSSL_add_ssl_algorithms()
calls scattered around the place.
ok beck@
miod [Sat, 12 Jul 2014 19:31:03 +0000 (19:31 +0000)]
Make the BLOCK_CIPHER_{generic,custom} macros expand to more readable struct
definitions using C99 field initializers. No functional change.
krw [Sat, 12 Jul 2014 19:22:32 +0000 (19:22 +0000)]
msgbuf_write() <= 0 for a few more daemons.
ok claudio@
deraadt [Sat, 12 Jul 2014 19:20:12 +0000 (19:20 +0000)]
sync
tedu [Sat, 12 Jul 2014 19:14:59 +0000 (19:14 +0000)]
guenther (who also should have been credited in previous free size commits)
noticed that i missed committing one file.
lteo [Sat, 12 Jul 2014 19:05:45 +0000 (19:05 +0000)]
Remove the redundant csum_flag variable and just set the checksum flag
in the pkthdr directly.
ok henning@
lteo [Sat, 12 Jul 2014 19:04:29 +0000 (19:04 +0000)]
Protocol checksums have been recalculated on reinjection for a while
now, so there is no need to calculate them before sending them to
userspace.
ok henning@
tedu [Sat, 12 Jul 2014 19:01:49 +0000 (19:01 +0000)]
revert bogus free changes in not kernel files. got a little trigger happy.
deraadt [Sat, 12 Jul 2014 18:57:41 +0000 (18:57 +0000)]
Wrap "thread_private.h" with #ifdef __OpenBSD__ so that other systems
can copy this file (plus chacha_private.h) directly and reuse it
trivially. Well, as long as they have a getentropy() as well..
ok beck
tedu [Sat, 12 Jul 2014 18:51:10 +0000 (18:51 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.