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.
tedu [Sat, 12 Jul 2014 18:50:41 +0000 (18:50 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:50:25 +0000 (18:50 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:50:00 +0000 (18:50 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:48:51 +0000 (18:48 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:48:17 +0000 (18:48 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:44:40 +0000 (18:44 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:44:22 +0000 (18:44 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:44:01 +0000 (18:44 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:43:52 +0000 (18:43 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
tedu [Sat, 12 Jul 2014 18:43:32 +0000 (18:43 +0000)]
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
jsing [Sat, 12 Jul 2014 18:37:28 +0000 (18:37 +0000)]
Remove extra parenthesis.
jsing [Sat, 12 Jul 2014 18:10:21 +0000 (18:10 +0000)]
need_cert is now always true, so remove the variable and associated
conditionals.
ok miod@
jsing [Sat, 12 Jul 2014 18:09:21 +0000 (18:09 +0000)]
More KNF.
schwarze [Sat, 12 Jul 2014 18:05:50 +0000 (18:05 +0000)]
No need for run-time configuration, add minimal compile-time
configuration facilities, just two paths and two HTML strings.
Show the title on all pages, not just the index page.
jsing [Sat, 12 Jul 2014 18:00:20 +0000 (18:00 +0000)]
Remove #ifndefs for OPENSSL_NO_DH, OPENSSL_NO_ECDH and
OPENSSL_NO_X509_VERIFY. We're not going to build with these and the same
removal has already been done for libssl.
mpi [Sat, 12 Jul 2014 17:57:26 +0000 (17:57 +0000)]
No INET6 in ramdisk, fix the tree.
jsing [Sat, 12 Jul 2014 17:54:31 +0000 (17:54 +0000)]
openssl(1) is only built as a single monolithic binary, so just call
load_config() once when we start.
ok miod@
pirofti [Sat, 12 Jul 2014 17:53:45 +0000 (17:53 +0000)]
Fix root hub descriptors by matching ehci(4)'s descriptors.
Reminded by mpi@, thanks!
On a side note usb sticks don't get fried anymore, they "just"
freeze the system.
jsing [Sat, 12 Jul 2014 17:50:36 +0000 (17:50 +0000)]
Remove the temporary dospartoff work around.
From Markus Mueller.
ok krw@ miod@ tedu@
yuo [Sat, 12 Jul 2014 17:38:51 +0000 (17:38 +0000)]
To enable Intel XHCI host controller, re-route all of usb port to xhci
instead of connected to ehci.
ok mpi@
jmc [Sat, 12 Jul 2014 17:38:19 +0000 (17:38 +0000)]
provide a missing rfc number;
From: Josh Grosse
i've actually just whacked the titles to keep it brief
and avoid the mess of the punctuation added by these macros.
deraadt [Sat, 12 Jul 2014 17:35:23 +0000 (17:35 +0000)]
jsing and I are investigating removal of all? most? 'getenv from library'
instances. This one for OPENSSL_ALLOW_PROXY_CERTS gets turned off first,
especially since it had this special comment:
/* A hack to keep people who don't want to modify their software happy */
ok beck jsing
jmc [Sat, 12 Jul 2014 17:26:20 +0000 (17:26 +0000)]
more accept_rtadv removal;
schwarze [Sat, 12 Jul 2014 17:18:13 +0000 (17:18 +0000)]
Simplify: Delete 74 lines of code including one enum type, one
global lookup table, two functions, two function arguments, one
struct member, one local variable, and the "search/" and "show/"
part of the URIs, all without losing functionality.
deraadt [Sat, 12 Jul 2014 17:15:43 +0000 (17:15 +0000)]
sync
jmc [Sat, 12 Jul 2014 17:10:51 +0000 (17:10 +0000)]
some basic formatting tweaks;
jmc [Sat, 12 Jul 2014 17:06:06 +0000 (17:06 +0000)]
tweak previous;
henning [Sat, 12 Jul 2014 17:03:47 +0000 (17:03 +0000)]
andone last (i hope) accept_rtadv sysctl remnant, also found by jmc
henning [Sat, 12 Jul 2014 17:00:43 +0000 (17:00 +0000)]
no more net.inet6.ip6.accept_rtadv
no idea how jmc finds these, but I'm very glad he does
henning [Sat, 12 Jul 2014 16:59:06 +0000 (16:59 +0000)]
jmc points out this babbled about the accept_rtadvd sysctl which is no more
pirofti [Sat, 12 Jul 2014 16:43:31 +0000 (16:43 +0000)]
Implement Set Port Feature request support.
Port reset doesn't need the spl dance, as discussed with mpi@
miod [Sat, 12 Jul 2014 16:42:47 +0000 (16:42 +0000)]
A few fixes/improvements:
- first, BN_free == BN_clear_free in our libcrypto, so we do not need to
treat CBIGNUM (crypto BN) separately from BIGNUM (regular BN).
- then, in bn_i2c(), since BN_bn2bin returns BN_num_bytes(input), take
advantage of this to avoid calling BN_num_bytes() a second time.
BN_num_bytes() is cheap, but this not a reason to perform redundant
work.
- finally, in bn_c2i, if bn_new() fails, return early. Otherwise
BN_bin2bn will try to create a BN too, and although this will probably
fail since we were already out of memory, if we are on a threaded
process and suddenly the allocation succeeds, we will leak it since it
will never be stored in *pval.
ok jsing@
matthieu [Sat, 12 Jul 2014 16:34:24 +0000 (16:34 +0000)]
Hook auxcpp
miod [Sat, 12 Jul 2014 16:33:25 +0000 (16:33 +0000)]
Make sure the return value of X509_NAME_oneline(, NULL,) is checked against
NULL.
ok deraadt@ guenther@ jsing@
matthieu [Sat, 12 Jul 2014 16:32:58 +0000 (16:32 +0000)]
Eliminate strcpy() and sprintf() in auxcpp. ok deraadt@
matthieu [Sat, 12 Jul 2014 16:32:07 +0000 (16:32 +0000)]
Local tweaks to ucpp:
- exit on the 1st error it finds. Better than stopping processing input
- accept -P as a synonym for -l since this is what xrdb uses to
suppress #line markers.
matthieu [Sat, 12 Jul 2014 16:29:59 +0000 (16:29 +0000)]
Rename the manual page to auxcpp.1
matthieu [Sat, 12 Jul 2014 16:27:49 +0000 (16:27 +0000)]
BSD Makefile for auxcpp
ajacoutot [Sat, 12 Jul 2014 16:26:35 +0000 (16:26 +0000)]
Extend output a bit.
guenther [Sat, 12 Jul 2014 16:25:08 +0000 (16:25 +0000)]
Tackle the endian.h mess. Make it so that:
* you can #include <sys/endian.h> instead of <machine/endian.h>,
and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first)
* those will always export the symbols that POSIX specified for
<endian.h>, including the new {be,le}{16,32,64}toh() set. c.f.
http://austingroupbugs.net/view.php?id=162
if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h>
currently exports (ntohs, NTOHS, dlg's bemtoh*, etc)
* when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and
<arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER
and betoh*
ok deraadt@
matthieu [Sat, 12 Jul 2014 16:23:43 +0000 (16:23 +0000)]
Import a copy of ucpp, lightweight cpp that doesn't depend
on the 'comp' set. Moving from xenocara with a new name.
ok deraadt@.
schwarze [Sat, 12 Jul 2014 16:13:36 +0000 (16:13 +0000)]
Start fixing issues that beck@ helped find:
Distinguish between man(1) and apropos(1) mode by adding back the classical
QUERY_STRING variable "apropos=". Change the default back to "apropos=0".
Control it by adding a HTML <SELECT> element for it.
Rename the "expr=" QUERY_STRING variable back to its classical name "query=",
i don't see how the new name is better than the classical one.
While here, drop the concept of a "legacy mode". Simply continue to
support the features, and use what we consider best.
henning [Sat, 12 Jul 2014 16:10:04 +0000 (16:10 +0000)]
/* this has no effect on IP, and will kill all ISO connections XXX */
farewell, then. has been #ifdef notyet for the last 19 years
mpi [Sat, 12 Jul 2014 16:07:06 +0000 (16:07 +0000)]
Grammar, from stsp@
miod [Sat, 12 Jul 2014 16:03:36 +0000 (16:03 +0000)]
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
jsing [Sat, 12 Jul 2014 16:01:28 +0000 (16:01 +0000)]
Add an initial regress test for libressl, which calls ressl from Go and
makes it talk to a Go TLS server.