krw [Fri, 10 Jan 2014 01:25:03 +0000 (01:25 +0000)]
skip_to_semi() is gilding the lily when the next statement breaks out
of the loop and closes the file being parsed. And the previous
statement warns the user the leases file being parsed has been
determined to be corrupt. Eliminate further gilding in the form of an
'else' after the same 'if' clause includes the 'break'.
krw [Fri, 10 Jan 2014 01:07:58 +0000 (01:07 +0000)]
KNF (UNF?). Split annoying long line.
bluhm [Fri, 10 Jan 2014 00:47:17 +0000 (00:47 +0000)]
Let "ddb show mbuf" print all mbuf fields in a consistent way. Move
bit field names into the header file below the definitions to keep
them in sync.
OK mikeb@ mpi@
djm [Thu, 9 Jan 2014 23:26:48 +0000 (23:26 +0000)]
ban clients/servers that suffer from SSH_BUG_DERIVEKEY, they are ancient,
deranged and might make some attacks on KEX easier; ok markus@
djm [Thu, 9 Jan 2014 23:20:00 +0000 (23:20 +0000)]
Introduce digest API and use it to perform all hashing operations
rather than calling OpenSSL EVP_Digest* directly. Will make it easier
to build a reduced-feature OpenSSH without OpenSSL in future;
feedback, ok markus@
millert [Thu, 9 Jan 2014 23:07:50 +0000 (23:07 +0000)]
Remove useless variable "height" in function traverse(). It is
assigned the value of "top" but never changed so just use top instead.
From Michael W. Bombardieri
tedu [Thu, 9 Jan 2014 21:57:51 +0000 (21:57 +0000)]
replace Bcopy macro with memmove and memcpy. ok mpi
jmc [Thu, 9 Jan 2014 21:22:49 +0000 (21:22 +0000)]
flesh out some details in STANDARDS regarding timespec;
ok sobrado millert
nicm [Thu, 9 Jan 2014 21:20:45 +0000 (21:20 +0000)]
Fix a memory/fd leak reported by Tiago Cunha.
jmc [Thu, 9 Jan 2014 21:19:38 +0000 (21:19 +0000)]
sync usage();
brad [Thu, 9 Jan 2014 20:54:10 +0000 (20:54 +0000)]
Add DHCPv6.
ok deraadt@
deraadt [Thu, 9 Jan 2014 20:39:29 +0000 (20:39 +0000)]
sync
espie [Thu, 9 Jan 2014 20:37:25 +0000 (20:37 +0000)]
revert to O_EXCL for generating keys, so we don't erase them by accident.
internal code a bit yucky, can be fixed some more later.
okay tedu@
sthen [Thu, 9 Jan 2014 20:30:00 +0000 (20:30 +0000)]
Install our third key. NOTE that this is a TEST KEY for use as we improve
our processes.
requested by espie@
espie [Thu, 9 Jan 2014 20:20:01 +0000 (20:20 +0000)]
bump copyright to 2014
deraadt [Thu, 9 Jan 2014 20:15:55 +0000 (20:15 +0000)]
remove the SHA256 file as soon as we start creating sets
miod [Thu, 9 Jan 2014 19:44:49 +0000 (19:44 +0000)]
Mention that T5120/T5220 systems require an OBP update if they are below 4.28
level (matching the stealth commit to sparc64.html years ago); and update the
OBP update section to point to the current Oracle ``Firmware Domwnloads'' page.
espie [Thu, 9 Jan 2014 19:32:15 +0000 (19:32 +0000)]
Install our second key. NOTE that this is a TEST KEY for use as we improve
our processes.
prodded by deraadt@
tedu [Thu, 9 Jan 2014 19:05:43 +0000 (19:05 +0000)]
oops
tedu [Thu, 9 Jan 2014 19:05:21 +0000 (19:05 +0000)]
change O_EXCL to O_TRUNC before deraadt kills me.
deraadt [Thu, 9 Jan 2014 19:02:02 +0000 (19:02 +0000)]
copy the relevant key for the release onto the media
tedu [Thu, 9 Jan 2014 18:59:56 +0000 (18:59 +0000)]
update for sig comments
tedu [Thu, 9 Jan 2014 18:59:35 +0000 (18:59 +0000)]
copy secret key comment into signature. requested by deraadt
deraadt [Thu, 9 Jan 2014 18:51:38 +0000 (18:51 +0000)]
sync
deraadt [Thu, 9 Jan 2014 18:51:30 +0000 (18:51 +0000)]
install signify keys
deraadt [Thu, 9 Jan 2014 18:51:14 +0000 (18:51 +0000)]
Install our first key. NOTE that this is a TEST KEY for use as we improve
our processes.
ok tedu
espie [Thu, 9 Jan 2014 17:51:56 +0000 (17:51 +0000)]
if we're re-signing, check old sig first. shouldn't sign stuff we don't
trust.
espie [Thu, 9 Jan 2014 17:41:41 +0000 (17:41 +0000)]
with the intermediate gunzip gone, this is a simple pipe. No need for
separate handles to tweak.
deraadt [Thu, 9 Jan 2014 17:13:36 +0000 (17:13 +0000)]
oops, re-adapt for the install media
tedu [Thu, 9 Jan 2014 16:22:04 +0000 (16:22 +0000)]
test signing too
tedu [Thu, 9 Jan 2014 16:17:37 +0000 (16:17 +0000)]
signify subdir
tedu [Thu, 9 Jan 2014 16:13:44 +0000 (16:13 +0000)]
regress signify
deraadt [Thu, 9 Jan 2014 15:43:16 +0000 (15:43 +0000)]
ramdisks need a /etc/signify directory
tedu [Thu, 9 Jan 2014 15:36:40 +0000 (15:36 +0000)]
-e embedded signatures. ok deraadt
deraadt [Thu, 9 Jan 2014 15:02:50 +0000 (15:02 +0000)]
we need to build a ztscale stub for zaurus media.
nicm [Thu, 9 Jan 2014 14:28:14 +0000 (14:28 +0000)]
Similar to attach-session, make switch-client -t accept a window and
pane. From Johannes Jakobsson.
nicm [Thu, 9 Jan 2014 14:20:55 +0000 (14:20 +0000)]
Allow attach-session -t to accept a window and pane to select them on
attach. Based on a diff from J Raynor.
nicm [Thu, 9 Jan 2014 14:05:55 +0000 (14:05 +0000)]
Three small changes from Tiago Cunha:
- Check for truncation when copying path.
- Don't need to use a temporary buffer in screen_set_title.
- Include strerror in output when connecting to server fails.
nicm [Thu, 9 Jan 2014 13:58:06 +0000 (13:58 +0000)]
Style and comment fixes from Tiago Cunha.
nicm [Thu, 9 Jan 2014 13:51:57 +0000 (13:51 +0000)]
Simplify args_set, from Tiago Cunha.
nicm [Thu, 9 Jan 2014 13:46:12 +0000 (13:46 +0000)]
Remove unnecessary calls to va_start/va_end, from Tiago Cunha.
mpi [Thu, 9 Jan 2014 13:42:57 +0000 (13:42 +0000)]
Fix the burner method, here the cookie is a pointer to rasops_info.
Problem noticed by Nick Gray and brett@ and analysed with mikeb@.
ok jsg@
espie [Thu, 9 Jan 2014 13:40:05 +0000 (13:40 +0000)]
-C was useless with signify, report @signer identity instead (prepend
"reportedly" to make tedu happy :) )
espie [Thu, 9 Jan 2014 13:30:46 +0000 (13:30 +0000)]
@signer makes sense only for signify, so move it there.
espie [Thu, 9 Jan 2014 13:21:03 +0000 (13:21 +0000)]
simplify a bit: pass the first SIGNER for @signer.
espie [Thu, 9 Jan 2014 10:51:51 +0000 (10:51 +0000)]
document SIGNER
espie [Thu, 9 Jan 2014 10:43:13 +0000 (10:43 +0000)]
switch to internal gzip/gunzip.
reduces the number of external processes and the complexity of the code.
tested on a few select arches by tobiasu, naddy. If it breaks somewhere,
tough. This one is simple to revert.
espie [Thu, 9 Jan 2014 10:36:52 +0000 (10:36 +0000)]
tweak signing yet again. Have pkg_create automatically add signing
identities every time, and make matching identities mandatory.
e.g., pkg_create and pkg_add must have matching -DSIGNER.
by default, signer is derived from uname -r and role (pkg_add/fw_update),
e.g., 54pkg, 54fw...
tedu [Thu, 9 Jan 2014 06:29:05 +0000 (06:29 +0000)]
bzero/bcmp -> memset/memcmp. ok matthew
tedu [Thu, 9 Jan 2014 05:39:41 +0000 (05:39 +0000)]
tiny tweak to asm. prefer memcpy and memmove, with bcopy wrapper
ok guenther
martynas [Thu, 9 Jan 2014 05:07:37 +0000 (05:07 +0000)]
Switch to string copy rather than memcpy so we stop past '\0' and
don't copy over the garbage from the source buffer (like, leaking
the canary). OK millert@.
martynas [Thu, 9 Jan 2014 05:04:03 +0000 (05:04 +0000)]
Use destination bound rather than the source bound for out_line and
out_name. OK millert@.
guenther [Thu, 9 Jan 2014 03:26:00 +0000 (03:26 +0000)]
When formating the time for "ls -l"-style output, show dates in the future
with the year, and rearrange a comparison to avoid a potentional signed
arithmetic overflow that would give the wrong result.
ok djm@
guenther [Thu, 9 Jan 2014 03:13:24 +0000 (03:13 +0000)]
Symlinks are displayed with '->', not '=>'
guenther [Thu, 9 Jan 2014 03:12:25 +0000 (03:12 +0000)]
Update pax -v format to match "ls -l": display the year for dates
in the future and include a space between the major and minor numbers
for devices. Eliminate bogus handling of LC_TIME environment variable.
Make strftime() format selection understandable by gcc -Wformat=2.
ok millert@
guenther [Thu, 9 Jan 2014 03:07:52 +0000 (03:07 +0000)]
Per POSIX, times in the future should be reported with the year
like files more than six months old. Use strftime() directly instead
of breaking down the ctime() output on character positions.
ok millert@
bluhm [Wed, 8 Jan 2014 23:42:23 +0000 (23:42 +0000)]
Fix the tests for the pf divert state and socket reuse.
bluhm [Wed, 8 Jan 2014 23:32:17 +0000 (23:32 +0000)]
Set socket buffer size to fixed value of 100000 octets. This
prevents that the socket splicing performance test interferes with
the dynamic TCP buffer size adjusting.
millert [Wed, 8 Jan 2014 23:12:57 +0000 (23:12 +0000)]
We still need to cast the resulting pointer in NEW and NEW2 as it
is used in pointer arithmetic. Otherwise we do arithmetic on void
* and corrupt the heap.
millert [Wed, 8 Jan 2014 22:55:59 +0000 (22:55 +0000)]
Add casts to unsigned char for ctype functions and other places
where a char is stored in an int. Joint work with and OK deraadt@
brad [Wed, 8 Jan 2014 22:52:54 +0000 (22:52 +0000)]
regen
brad [Wed, 8 Jan 2014 22:52:05 +0000 (22:52 +0000)]
Use the same naming scheme on both sides for the Attansic entries and
replace some tabs with spaces in between product and Intel.
bluhm [Wed, 8 Jan 2014 22:38:29 +0000 (22:38 +0000)]
Name the local variables for struct ifaddr consistently "ifa".
OK mikeb@
millert [Wed, 8 Jan 2014 22:36:37 +0000 (22:36 +0000)]
Use calloc() instead of malloc() + memset. Based on a diff from
Michael W. Bombardieri. OK deraadt@
millert [Wed, 8 Jan 2014 22:30:32 +0000 (22:30 +0000)]
Make allocate() take size_t and return void *. This lets us drop
some more useless casts. Also add missing arguments to a couple
of prototypes while here. OK matthew@ pelikan@
bluhm [Wed, 8 Jan 2014 22:24:35 +0000 (22:24 +0000)]
Fix typo recieve -> receive.
OK sf@
deraadt [Wed, 8 Jan 2014 22:17:52 +0000 (22:17 +0000)]
Take restore off the floppy media for now. Sorry.
deraadt [Wed, 8 Jan 2014 21:53:33 +0000 (21:53 +0000)]
Switch to using the base sha256 command, rather than some customized
abomination.
install.sub chunk tested by rpe
deraadt [Wed, 8 Jan 2014 21:52:28 +0000 (21:52 +0000)]
sync
deraadt [Wed, 8 Jan 2014 21:52:22 +0000 (21:52 +0000)]
create the /etc/signify directory
millert [Wed, 8 Jan 2014 21:40:25 +0000 (21:40 +0000)]
Remove CALLOC, MALLOC, FREE and REALLOC macros and just call calloc(),
nalloc(), free() and realloc() directly. The macros were casting
to the wrong (pre-C89) types and there is no need for them in a C89
world. OK matthew@
jcs [Wed, 8 Jan 2014 21:16:38 +0000 (21:16 +0000)]
regen
jcs [Wed, 8 Jan 2014 21:15:29 +0000 (21:15 +0000)]
add a bunch of newer apple wellspring keyboard/trackpad ids
jca [Wed, 8 Jan 2014 17:31:36 +0000 (17:31 +0000)]
If the file size is zero, there's nothing to transmit so avoid spamming
syslog with mmap failures. Noticed by and ok henning@, "looks right"
deraadt@
miod [Wed, 8 Jan 2014 17:12:18 +0000 (17:12 +0000)]
Be sure to have pmap_extract() return FALSE for existing, but non-valid user
pmap ptes. Found the hard way by tobiasu@.
millert [Wed, 8 Jan 2014 16:23:21 +0000 (16:23 +0000)]
Fix wrapping of usage message for cksum.
jmc [Wed, 8 Jan 2014 16:19:24 +0000 (16:19 +0000)]
flesh out STANDARDS somewhat; help/ok sobrado
this was also ok millert some time ago
millert [Wed, 8 Jan 2014 16:16:44 +0000 (16:16 +0000)]
err() not errx() when fopen fails.
jmc [Wed, 8 Jan 2014 16:15:45 +0000 (16:15 +0000)]
zap trailing whitespace;
millert [Wed, 8 Jan 2014 16:13:11 +0000 (16:13 +0000)]
Remove NHASHES, it is not needed and is incompatible with #ifdef SMALL.
Remove style_hash and style_cksum, adjust the style of the selected
algorithms based on rflag and qflag instead.
jmc [Wed, 8 Jan 2014 16:12:44 +0000 (16:12 +0000)]
sort options;
millert [Wed, 8 Jan 2014 15:54:09 +0000 (15:54 +0000)]
Remove pmode, fix hfile open mode, check return value when writing
file name to stdout.
deraadt [Wed, 8 Jan 2014 15:30:49 +0000 (15:30 +0000)]
ctype cleanup; ok gilles
deraadt [Wed, 8 Jan 2014 14:20:52 +0000 (14:20 +0000)]
enter md5 directory
deraadt [Wed, 8 Jan 2014 14:20:11 +0000 (14:20 +0000)]
Build a -DSMALL verison of md5 for the install media (will be installed
as sha256 and sha512, primarily)
deraadt [Wed, 8 Jan 2014 14:19:25 +0000 (14:19 +0000)]
Add -DSMALL support to kill a lot of the unncecessary hashes and checksums
that the install media won't need
ok millert, but he used the word butcher!
deraadt [Wed, 8 Jan 2014 14:15:54 +0000 (14:15 +0000)]
Add support for -h hashfile. This is very useful with with -p, in a pipeline,
to deliver the hash output to a different location.
ok millert
okan [Wed, 8 Jan 2014 13:23:55 +0000 (13:23 +0000)]
unsigned char for ctype. ok deraadt
espie [Wed, 8 Jan 2014 07:04:29 +0000 (07:04 +0000)]
fix logic/usage in VERIFYONLY case
okay deraadt@
guenther [Wed, 8 Jan 2014 06:50:57 +0000 (06:50 +0000)]
Delete struct definitions that have been obsolete for a dozen years
ok deraadt@
deraadt [Wed, 8 Jan 2014 06:43:34 +0000 (06:43 +0000)]
Zap leading whitespace
guenther [Wed, 8 Jan 2014 06:41:49 +0000 (06:41 +0000)]
Zap trailing whitespace
espie [Wed, 8 Jan 2014 06:40:56 +0000 (06:40 +0000)]
synch with signify(1) paranoia
deraadt [Wed, 8 Jan 2014 06:17:21 +0000 (06:17 +0000)]
always include dd
tedu [Wed, 8 Jan 2014 06:14:56 +0000 (06:14 +0000)]
calling HashFinal with a null digest should crash, not be silently ignored
guenther [Wed, 8 Jan 2014 05:52:47 +0000 (05:52 +0000)]
Replace strtoq(), QUAD_MAX, and %qu with their long long equivalent
deraadt [Wed, 8 Jan 2014 05:51:35 +0000 (05:51 +0000)]
a few more blocks can use VERIFYONLY
tedu [Wed, 8 Jan 2014 05:00:01 +0000 (05:00 +0000)]
allow building a VERIFYONLY version that's considerably smaller.
most of the savings comes from eliminating the large constant table
in ge25519.c. ok deraadt
guenther [Wed, 8 Jan 2014 04:58:36 +0000 (04:58 +0000)]
Eliminate poisonous LONG_OFF_T conditional
adjective suggested by deraadt@
guenther [Wed, 8 Jan 2014 04:48:29 +0000 (04:48 +0000)]
Delete a bogus extern declaration and move around a couple others