openbsd
7 years agoDocument RB_TIMEBAD; delete RB_* that are obsolete/unimplemented
guenther [Sat, 15 Apr 2017 18:55:27 +0000 (18:55 +0000)]
Document RB_TIMEBAD; delete RB_* that are obsolete/unimplemented

ok visa@ deraadt@

7 years agomore streamlining, with help from bluhm;
jmc [Sat, 15 Apr 2017 18:45:15 +0000 (18:45 +0000)]
more streamlining, with help from bluhm;

7 years agoAfter forced unmount of a file system that has other mount points
bluhm [Sat, 15 Apr 2017 13:56:43 +0000 (13:56 +0000)]
After forced unmount of a file system that has other mount points
in it, dangling mounts could remain.  When unmounting check the
hierarcy and unmount recursively.  Also prevent that a new mount
appears during the scan.
Joint work with natano@; testing and OK krw@

7 years agoBuild full mandoc.db(5) databases by default using makewhatis(8)
schwarze [Sat, 15 Apr 2017 13:12:08 +0000 (13:12 +0000)]
Build full mandoc.db(5) databases by default using makewhatis(8)
without -Q during the build and in weekly(8).  According to tests
by many developers, makewhatis(8) takes a few minutes at most even
on slower hardware like octeon, loongson, ALIX, RPI3, Soekris,
cubox, softiron etc., and security(8) is often worse than makewhatis(8).

In case this causes excessive weekly(8) run times on even slower
(~50 MHz-class) CPUs, consider adding "MAKEWHATISARGS=-Q" to
/etc/weekly.local on machines that feel unhappy.

OK sthen@ kettenis@ millert@ deraadt@

7 years agoTake implementation for getsocket() from arp(8). This brings
bluhm [Sat, 15 Apr 2017 11:58:51 +0000 (11:58 +0000)]
Take implementation for getsocket() from arp(8).  This brings
routing table filter and pledge(2) to ndp(8) modes -s and -d.
OK florian@

7 years agoName global variable for routing socket rtsock like in ndp(8).
bluhm [Sat, 15 Apr 2017 11:50:24 +0000 (11:50 +0000)]
Name global variable for routing socket rtsock like in ndp(8).
OK florian@

7 years agoLet ndp(8) use the process's current routing table by default.
bluhm [Sat, 15 Apr 2017 11:42:09 +0000 (11:42 +0000)]
Let ndp(8) use the process's current routing table by default.
from Pierre Emeriaud;  OK jca@ claudio@
Sync code and man page with arp(8).  OK florian@

7 years agoThe tlb flushes in pmap_set_{l1,l2,l3} use ranges that don't fully make sense.
kettenis [Sat, 15 Apr 2017 11:15:02 +0000 (11:15 +0000)]
The tlb flushes in pmap_set_{l1,l2,l3} use ranges that don't fully make sense.
But those tlb flushes shouldn't be necessary anyway, so simply remove them.
Simplify the tlb flushing code now that we no longer flush ranges, and
revive the branch that doesn't flush a specific ASID for the kernel pmap
since its mappings are global.

ok patrick@, visa@

7 years agoHandle R_SPARC_WPLT30 relocations against a local symbol. Fixes building the
kettenis [Sat, 15 Apr 2017 10:23:35 +0000 (10:23 +0000)]
Handle R_SPARC_WPLT30 relocations against a local symbol.  Fixes building the
audio/openal port with clang.

ok guenther@

7 years agoregen
florian [Sat, 15 Apr 2017 09:16:05 +0000 (09:16 +0000)]
regen

7 years agoupdate to 4.1.16rc1
florian [Sat, 15 Apr 2017 09:15:45 +0000 (09:15 +0000)]
update to 4.1.16rc1
tests & OK sthen

(if there are more changes coming for 4.1.16 release we will just
commit them on top)

7 years agoFix format string in ACPI_MEMDEBUG block
guenther [Sat, 15 Apr 2017 04:54:04 +0000 (04:54 +0000)]
Fix format string in ACPI_MEMDEBUG block

From Anton Lindqvist (anton.lindqvist(at)gmail.com)

7 years agoSync bus_dmamap_load_raw() with amd64 for better constraint checking.
visa [Sat, 15 Apr 2017 04:38:27 +0000 (04:38 +0000)]
Sync bus_dmamap_load_raw() with amd64 for better constraint checking.
Needed by xhci(4).

7 years agoNo GMX on CN73xx.
visa [Sat, 15 Apr 2017 04:18:40 +0000 (04:18 +0000)]
No GMX on CN73xx.

7 years agomark newish phony targets as phony.
espie [Fri, 14 Apr 2017 21:37:15 +0000 (21:37 +0000)]
mark newish phony targets as phony.
okay tb@

7 years agoRemove unused define satoin6().
bluhm [Fri, 14 Apr 2017 20:50:35 +0000 (20:50 +0000)]
Remove unused define satoin6().

7 years agoPass down the address family through the pr_input calls. This
bluhm [Fri, 14 Apr 2017 20:46:31 +0000 (20:46 +0000)]
Pass down the address family through the pr_input calls.  This
allows to simplify code used for both IPv4 and IPv6.
OK mikeb@ deraadt@

7 years agoadjust .Lk tests after groff and mandoc .Lk improvements
schwarze [Fri, 14 Apr 2017 19:50:54 +0000 (19:50 +0000)]
adjust .Lk tests after groff and mandoc .Lk improvements

7 years agoonce cvs's flow-control mechanism has kicked in, stop reading from
jcs [Fri, 14 Apr 2017 19:39:59 +0000 (19:39 +0000)]
once cvs's flow-control mechanism has kicked in, stop reading from
its local reader until memory usage goes back down below its
watermark.

during a checkout of a tree with big files (like www) from a fast
reader (disk) and a slow writer (net), the amount of data being
buffered can back up enough that cvs tries to allocate too many
buffers and hits its resource limit, causing death.

cvs's flow-control mechanism properly detects this early on, but the
message sent to the reader process to stop sending data takes too
long to process.

take more aggressive action and just stop reading from the reader
until the writer has ejected enough data that it can start re-using
its already-allocated buffers instead of allocating new ones.

ok deraadt

7 years agoShow long .Lk URIs in like an indented display, similar to groff.
schwarze [Fri, 14 Apr 2017 19:34:54 +0000 (19:34 +0000)]
Show long .Lk URIs in like an indented display, similar to groff.
Suggested by bentley@.

7 years agoAdd test for IP payload compression. It is sending small and big
bluhm [Fri, 14 Apr 2017 19:03:50 +0000 (19:03 +0000)]
Add test for IP payload compression.  It is sending small and big
ping packets as only the latter get actually compressed.

7 years agoDo not make the colon after the .Lk link text italic.
schwarze [Fri, 14 Apr 2017 18:24:15 +0000 (18:24 +0000)]
Do not make the colon after the .Lk link text italic.
I just pushed the same change to GNU troff.

7 years agoDo not make the colon after the .Lk link text italic.
schwarze [Fri, 14 Apr 2017 18:23:29 +0000 (18:23 +0000)]
Do not make the colon after the .Lk link text italic.
I just pushed the same change to GNU troff.

7 years agoAdd tests with the ipsec.conf SA bundle keyword.
bluhm [Fri, 14 Apr 2017 18:14:33 +0000 (18:14 +0000)]
Add tests with the ipsec.conf SA bundle keyword.

7 years agoUp to now ipsecctl(8) grouped SAs with identical src and dst to the
bluhm [Fri, 14 Apr 2017 18:06:28 +0000 (18:06 +0000)]
Up to now ipsecctl(8) grouped SAs with identical src and dst to the
flow which the first SA matched by the flow type.  This behaviour
was mostly undocumented and unexpected.  Make SA bundles explicit
in ipsec.conf(5).  Only group SAs that have the same src and dst
and also the same bundle identifier.
OK hshoexer@

7 years agoUse freezero(3) when cleaning up session tickets - not only does it require
jsing [Fri, 14 Apr 2017 15:32:41 +0000 (15:32 +0000)]
Use freezero(3) when cleaning up session tickets - not only does it require
less code, but there is also a potential performance gain since they can be
larger allocations.

7 years agoUse freezero(3) to clean up the X25519 keys - simpler, cleaner code.
jsing [Fri, 14 Apr 2017 15:26:53 +0000 (15:26 +0000)]
Use freezero(3) to clean up the X25519 keys - simpler, cleaner code.

7 years agoUse freezero(3) in the CBB clean up path, since this could hold sensitive
jsing [Fri, 14 Apr 2017 15:20:55 +0000 (15:20 +0000)]
Use freezero(3) in the CBB clean up path, since this could hold sensitive
information (such as master keys).

7 years agoSwitch i2d_SSL_SESSION() back to freezero(3) now that the size constraints
jsing [Fri, 14 Apr 2017 15:20:16 +0000 (15:20 +0000)]
Switch i2d_SSL_SESSION() back to freezero(3) now that the size constraints
have been relaxed.

7 years agoClean up server key exchange EC point handling. Encode the point directly
jsing [Fri, 14 Apr 2017 15:19:39 +0000 (15:19 +0000)]
Clean up server key exchange EC point handling. Encode the point directly
into the CBB memory, rather than mallocing and memcpying, which also makes
makes the code more consistent with the client. Add a missing check for the
first EC_POINT_point2oct() call.

ok beck@

7 years agoAvoid some false positives with cppcheck. No binary change.
bluhm [Fri, 14 Apr 2017 15:11:31 +0000 (15:11 +0000)]
Avoid some false positives with cppcheck.  No binary change.
OK jsg@

7 years agowhitespace
deraadt [Fri, 14 Apr 2017 15:02:51 +0000 (15:02 +0000)]
whitespace

7 years agoDefine __dead and __pure even if __STRICT_ANSI__ for compilers that
kettenis [Fri, 14 Apr 2017 07:22:02 +0000 (07:22 +0000)]
Define __dead and __pure even if __STRICT_ANSI__ for compilers that
support GCC's __attribute__ syntax.  Fixes several warnings when compiling
code with clang with -std=c++11 or some other strict ISO standard.

ok millert@, guenther@

7 years agocorrect path; from Klemens Nanni
deraadt [Fri, 14 Apr 2017 01:23:02 +0000 (01:23 +0000)]
correct path; from Klemens Nanni

7 years agoSVM: calculate max ASID value and save for later use. This will be used in
mlarkin [Fri, 14 Apr 2017 01:02:28 +0000 (01:02 +0000)]
SVM: calculate max ASID value and save for later use. This will be used in
an upcoming diff to handle ASID/VPID reuse/rollover.

7 years agoUpdate a man page example to reflect recent changes.
mlarkin [Fri, 14 Apr 2017 00:53:28 +0000 (00:53 +0000)]
Update a man page example to reflect recent changes.

Spotted by Ilya Kaliman, thanks.

7 years agoA little bit more trivial cleanup.
kettenis [Thu, 13 Apr 2017 23:29:02 +0000 (23:29 +0000)]
A little bit more trivial cleanup.

7 years agoXr sigprocmask(2) not the obsolete sigsetmask(3)
millert [Thu, 13 Apr 2017 21:49:11 +0000 (21:49 +0000)]
Xr sigprocmask(2) not the obsolete sigsetmask(3)

7 years agoUse the non-interrupt-safe pool allocator for the vp pool to avoid runninng
kettenis [Thu, 13 Apr 2017 20:48:29 +0000 (20:48 +0000)]
Use the non-interrupt-safe pool allocator for the vp pool to avoid runninng
out of kva in the kmem_map.  Avoids a hang when spawning a lot of processes.

7 years agoUse recallocarray in getdelim/getline to clear memory on buffer resizes,
brynet [Thu, 13 Apr 2017 18:36:51 +0000 (18:36 +0000)]
Use recallocarray in getdelim/getline to clear memory on buffer resizes,
inspired by a similar change to fgetln.

ok deraadt millert

7 years agoallow clearing less than allocated and document freezero(3) better
otto [Thu, 13 Apr 2017 18:32:55 +0000 (18:32 +0000)]
allow clearing less than allocated and document freezero(3) better

7 years agomoving some code into a switch meant that break no longer stopped the loop.
tedu [Thu, 13 Apr 2017 15:32:15 +0000 (15:32 +0000)]
moving some code into a switch meant that break no longer stopped the loop.
try harder with a goto. diagnosis and original fix by tb.

7 years agoRemove a bunch of obsolete, unused and irrelevant DHCP client types, fields,
krw [Thu, 13 Apr 2017 14:59:40 +0000 (14:59 +0000)]
Remove a bunch of obsolete, unused and irrelevant DHCP client types, fields,
and enums.

7 years agomulti-statement CHECK_RANGE() macro isn't safe for all placements, and
deraadt [Thu, 13 Apr 2017 14:48:31 +0000 (14:48 +0000)]
multi-statement CHECK_RANGE() macro isn't safe for all placements, and
needs to use "do {} while 0" idiom; all callers need repair also.
Discovered by jsg

7 years agofix wrongly indented lines
jsg [Thu, 13 Apr 2017 07:30:21 +0000 (07:30 +0000)]
fix wrongly indented lines

7 years agoAdd a NAT-T keepalive timer in case we are behind a NAT gateway.
patrick [Thu, 13 Apr 2017 07:04:09 +0000 (07:04 +0000)]
Add a NAT-T keepalive timer in case we are behind a NAT gateway.

See RFC 5996, section 2.23, NAT Traversal:
  In the case of a mismatching NAT_DETECTION_DESTINATION_IP hash, it
  means that the system receiving the NAT_DETECTION_DESTINATION_IP
  payload is behind a NAT and that system SHOULD start sending
  keepalive packets as defined in [UDPENCAPS].

With markus@, ok reyk@

7 years agoregen
guenther [Thu, 13 Apr 2017 04:09:46 +0000 (04:09 +0000)]
regen

7 years agoDelete the getlogin59 syscall, which was last used one year, two releases,
guenther [Thu, 13 Apr 2017 04:06:46 +0000 (04:06 +0000)]
Delete the getlogin59 syscall, which was last used one year, two releases,
and four libc major versions ago

ok sthen@ jsing@ deraadt@ jca@

7 years agoProvide mips64 with kernel-facing TCB_{GET,SET} macros that store it
guenther [Thu, 13 Apr 2017 03:52:25 +0000 (03:52 +0000)]
Provide mips64 with kernel-facing TCB_{GET,SET} macros that store it
in struct mdproc.  With that, all archs have those and the __HAVE_MD_TCB
macro can be unifdef'ed as always defined.

ok kettenis@ visa@ jsing@

7 years agoInspired by recent dhcrelay changes, bring in stricter CFLAGS!
krw [Wed, 12 Apr 2017 19:19:11 +0000 (19:19 +0000)]
Inspired by recent dhcrelay changes, bring in stricter CFLAGS!

7 years agoOne 'foo' per function is enough. Rename one to eliminate shadowing.
krw [Wed, 12 Apr 2017 19:17:30 +0000 (19:17 +0000)]
One 'foo' per function is enough. Rename one to eliminate shadowing.

7 years agoAdd missing function prototypes. Mark kw_cmp() as static like all
krw [Wed, 12 Apr 2017 19:12:01 +0000 (19:12 +0000)]
Add missing function prototypes. Mark kw_cmp() as static like all
its friends.

7 years agoThe kernel has to slightly different version of SipHash_Final but with
florian [Wed, 12 Apr 2017 18:35:50 +0000 (18:35 +0000)]
The kernel has to slightly different version of SipHash_Final but with
the same bug as just fixed in userland:

----------
SipHash_Final() was assuming the digest was 64-bit aligned, resulting in
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping
ok florian millert
----------

OK deraadt@

7 years agoUse calloc(3) and recallocarray(3) instead of *alloc* + memset(0).
tb [Wed, 12 Apr 2017 18:24:37 +0000 (18:24 +0000)]
Use calloc(3) and recallocarray(3) instead of *alloc* + memset(0).

ok deraadt

7 years agoSipHash_Final() was assuming the digest was 64-bit aligned, resulting in
deraadt [Wed, 12 Apr 2017 17:41:49 +0000 (17:41 +0000)]
SipHash_Final() was assuming the digest was 64-bit aligned, resulting in
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping
ok florian millert

7 years agoNew strstr() implementation from musl libc by Rich Felker. This
millert [Wed, 12 Apr 2017 16:06:12 +0000 (16:06 +0000)]
New strstr() implementation from musl libc by Rich Felker.  This
version uses the two-way string matching algorithm and is faster
than the old implementation.  With this change, ports that check
for strstr having linear complexity time strstr will no longer
replace the libc strstr with a private version.
OK deraadt@ espie@

7 years agoPrevent inosused from wrapping when soft updates is enabled while
millert [Wed, 12 Apr 2017 15:23:08 +0000 (15:23 +0000)]
Prevent inosused from wrapping when soft updates is enabled while
scanning the used inode map.  The code as written assumes inosused
is signed but this is no longer the case.  OK deraadt@

7 years agoisblank() is ANSI C since C99, no need to provide a replacement.
millert [Wed, 12 Apr 2017 14:53:27 +0000 (14:53 +0000)]
isblank() is ANSI C since C99, no need to provide a replacement.
OK deraadt@

7 years agobluhm discovered "script < /dev/null" attempts tty operations in violation
deraadt [Wed, 12 Apr 2017 14:49:05 +0000 (14:49 +0000)]
bluhm discovered "script < /dev/null" attempts tty operations in violation
of pledge.  We can wrap isatty() around those codepaths.
ok bluhm beck

7 years agoAdd comment what the test does.
bluhm [Wed, 12 Apr 2017 14:46:31 +0000 (14:46 +0000)]
Add comment what the test does.

7 years agoRTM_PROTO3 messages should not trigger a resolv.conf check.
krw [Wed, 12 Apr 2017 14:08:15 +0000 (14:08 +0000)]
RTM_PROTO3 messages should not trigger a resolv.conf check.

7 years agoThe pledge sigkill test is an outdated copy of sigabrt. Remove the
bluhm [Wed, 12 Apr 2017 13:14:08 +0000 (13:14 +0000)]
The pledge sigkill test is an outdated copy of sigabrt.  Remove the
former and activate the latter.
OK semarie@

7 years agoShuffle another function.
krw [Wed, 12 Apr 2017 12:22:25 +0000 (12:22 +0000)]
Shuffle another function.

7 years agoAdd comment how the test works.
bluhm [Wed, 12 Apr 2017 11:55:41 +0000 (11:55 +0000)]
Add comment how the test works.

7 years agoexplicitly set the ownership on installed include files as well
jsg [Wed, 12 Apr 2017 08:02:10 +0000 (08:02 +0000)]
explicitly set the ownership on installed include files as well

7 years agoInvoke install -d for each directory in the /usr/lib/clang hierarchy
jsg [Wed, 12 Apr 2017 07:57:06 +0000 (07:57 +0000)]
Invoke install -d for each directory in the /usr/lib/clang hierarchy
as they aren't in mtree.  Problem with wrong ownership and permission
of directories reported by sthen@.

ok deraadt@ sthen@ tb@

7 years agoCorrect a format string
guenther [Wed, 12 Apr 2017 05:46:59 +0000 (05:46 +0000)]
Correct a format string

Problem noted by Michael W. Bombardieri (mb(at)ii.net)
ok mlarkin@ deraadt@

7 years ago- Mention LIBCXX, prompted by espie@.
sthen [Tue, 11 Apr 2017 20:40:43 +0000 (20:40 +0000)]
- Mention LIBCXX, prompted by espie@.

7 years ago- Mention LIBCXX, prompted by espie@.
sthen [Tue, 11 Apr 2017 20:40:33 +0000 (20:40 +0000)]
- Mention LIBCXX, prompted by espie@.

- Make it clear that CLANG_ARCHS, GCC3_ARCHS, GCC4_ARCHS refer to the base compiler.
Change "Clang 3.9.1" to just "Clang".

7 years agoEnsure that the version part of $_url_base is correctly removed by
rpe [Tue, 11 Apr 2017 19:23:10 +0000 (19:23 +0000)]
Ensure that the version part of $_url_base is correctly removed by
using $VNAME (x.y) instead of $VERSION (xy). This fixes the problem
that the version part ended up in installurl which is wrong anyway
and also confuses pkg_add.

Thanks to florian@ and trondd at kagu-tsuchi dot com for reporting
this.

OK tb@

7 years agosync
deraadt [Tue, 11 Apr 2017 19:01:24 +0000 (19:01 +0000)]
sync

7 years agoshorten introductory sentence and make deprecation clearer;
schwarze [Tue, 11 Apr 2017 17:01:11 +0000 (17:01 +0000)]
shorten introductory sentence and make deprecation clearer;
disgussed with deraadt@

7 years agoAdd SIOCATMARK to allow pledge("inet") programs to call sockatmark(3).
bluhm [Tue, 11 Apr 2017 15:55:41 +0000 (15:55 +0000)]
Add SIOCATMARK to allow pledge("inet") programs to call sockatmark(3).
from Matthias Pitzl; OK deraadt@

7 years agoRecognize break conditions and enter ddb if ddb.console is set.
kettenis [Tue, 11 Apr 2017 15:16:14 +0000 (15:16 +0000)]
Recognize break conditions and enter ddb if ddb.console is set.

ok visa@, deraadt@

7 years agoPartially revert previous mallocarray conversions that contain
dhill [Tue, 11 Apr 2017 14:43:49 +0000 (14:43 +0000)]
Partially revert previous mallocarray conversions that contain
constants.

The consensus is that if both operands are constant, we don't need
mallocarray.  Reminded by tedu@

ok deraadt@

7 years agoShuffle route/interface changing functions together into kroute.c. Try to
krw [Tue, 11 Apr 2017 13:59:27 +0000 (13:59 +0000)]
Shuffle route/interface changing functions together into kroute.c. Try to
group related functions in kroute.c together and comment them a bit.

No intentional functional change.

7 years agoRevert ssl_asn1.c r1.50 - CBB and freezero(3) do not play nicely together.
jsing [Tue, 11 Apr 2017 13:14:08 +0000 (13:14 +0000)]
Revert ssl_asn1.c r1.50 - CBB and freezero(3) do not play nicely together.
Back this out while we investigate and implement a solution.

Found the hard way by sthen@

7 years agodocument more thoroughly the special status of modules gnu, imake, perl5
espie [Tue, 11 Apr 2017 11:01:28 +0000 (11:01 +0000)]
document more thoroughly the special status of modules gnu, imake, perl5
(for historical reasons)

okay aja@

7 years agoFold priv_write_file() into its only remaining user
krw [Tue, 11 Apr 2017 10:40:14 +0000 (10:40 +0000)]
Fold priv_write_file() into its only remaining user
priv_write_resolv_conf() and move the latter into kroute.c
with all its priv_ friends.

No intentional functional change.

7 years agoUse freezero(3) for the imsg framework in imsg_free(3) and ibuf_free(3).
reyk [Tue, 11 Apr 2017 09:57:19 +0000 (09:57 +0000)]
Use freezero(3) for the imsg framework in imsg_free(3) and ibuf_free(3).

In our privsep model, imsg is often used to transport sensitive
information between processes.  But a process might free an imsg, and
reuse the memory for a different thing.  iked uses some
explicit_bzero() to clean imsg-buffer but doing it in the library with
the freezero() is less error-prone and also benefits other daemons.

OK deraadt@ jsing@ claudio@

7 years agoRevise 'struct fpreg' and dump floating-point register in core dumps. Also
kettenis [Tue, 11 Apr 2017 06:52:13 +0000 (06:52 +0000)]
Revise 'struct fpreg' and dump floating-point register in core dumps.  Also
reset the floating-point register state upon exec.

ok guenther@

7 years agoRework -L logic to use the idiom used in handling the leases file.
krw [Mon, 10 Apr 2017 21:47:44 +0000 (21:47 +0000)]
Rework -L logic to use the idiom used in handling the leases file.
i.e. open FILE during program set up and use the FILE created for
the rest of the program lifetime after dropping privilege and
pledge()'ing. No need for passing messages to the priv process.

Tweak lease file handling a bit in passing.

Monitoring the -L file with external programs like sysutils/entr
still works.

Looks good to sthen@.

7 years agonew X25519(3) manual page;
schwarze [Mon, 10 Apr 2017 17:45:06 +0000 (17:45 +0000)]
new X25519(3) manual page;
from Dr. Stephen Henson <steve@openssl.org>, OpenSSL commit d218f3c3

7 years agoUse freezero() for the internal opaque structures, instead of the current
jsing [Mon, 10 Apr 2017 17:27:33 +0000 (17:27 +0000)]
Use freezero() for the internal opaque structures, instead of the current
explicit_bzero()/free(). Less code and potentially less overhead.

7 years agoUse freezero() for X25519 keys - same result with more readable code.
jsing [Mon, 10 Apr 2017 17:25:22 +0000 (17:25 +0000)]
Use freezero() for X25519 keys - same result with more readable code.

7 years agodocument three additional functions;
schwarze [Mon, 10 Apr 2017 17:14:44 +0000 (17:14 +0000)]
document three additional functions;
from Emilia Kasper <emilia at openssl dot org>, OpenSSL commit 4ac139b4

7 years agoRework and significantly extend TLS name verification tests to match
jsing [Mon, 10 Apr 2017 17:12:30 +0000 (17:12 +0000)]
Rework and significantly extend TLS name verification tests to match
changes in libtls.

7 years agoRework name verification code so that a match is indicated via an argument,
jsing [Mon, 10 Apr 2017 17:11:13 +0000 (17:11 +0000)]
Rework name verification code so that a match is indicated via an argument,
rather than return codes. More strictly follow RFC 6125, in particular only
check the CN if there are no SAN identifiers present in the certificate
(per section 6.4.4).

Previous behaviour questioned by Daniel Stenberg <daniel at haxx dot se>.

ok beck@ jca@

7 years agosync
deraadt [Mon, 10 Apr 2017 17:01:06 +0000 (17:01 +0000)]
sync

7 years agofreezero() the key block; simpler code and less of it.
jsing [Mon, 10 Apr 2017 16:48:43 +0000 (16:48 +0000)]
freezero() the key block; simpler code and less of it.

7 years agoUse freezero() for i2d_SSL_SESSION() - one line of code instead of three.
jsing [Mon, 10 Apr 2017 16:47:08 +0000 (16:47 +0000)]
Use freezero() for i2d_SSL_SESSION() - one line of code instead of three.
In this case the memory allocated can also be significant, in which case
freezero() will have less overhead than explicit_bzero() (munmap instead
of touching all of the memory to write zeros).

7 years agoFix tabs in example code.
jca [Mon, 10 Apr 2017 16:20:31 +0000 (16:20 +0000)]
Fix tabs in example code.

7 years agofix some .Xr errors that jmc@ found with mdoclint(1)
schwarze [Mon, 10 Apr 2017 16:11:50 +0000 (16:11 +0000)]
fix some .Xr errors that jmc@ found with mdoclint(1)

7 years agonew manual page SSL_get_server_tmp_key(3)
schwarze [Mon, 10 Apr 2017 15:54:46 +0000 (15:54 +0000)]
new manual page SSL_get_server_tmp_key(3)
from Matt Caswell <matt@openssl.org>, OpenSSL commit 508fafd8

7 years agoAdditional SSL_SESSION documentation
schwarze [Mon, 10 Apr 2017 15:37:55 +0000 (15:37 +0000)]
Additional SSL_SESSION documentation
from Matt Caswell <matt at openssl dot org>, OpenSSL commit b31db505.
Improve crosslinking while here.

7 years agoslaacdctl -> slaacctl;
jmc [Mon, 10 Apr 2017 14:46:13 +0000 (14:46 +0000)]
slaacdctl -> slaacctl;

7 years agoUse __ASSEMBLER__ instead of __LANGUAGE_ASSEMBLY.
visa [Mon, 10 Apr 2017 14:35:30 +0000 (14:35 +0000)]
Use __ASSEMBLER__ instead of __LANGUAGE_ASSEMBLY.
The latter is not defined by clang.

OK guenther@, kettenis@

7 years agoFound another len += snprintf...
deraadt [Mon, 10 Apr 2017 14:32:47 +0000 (14:32 +0000)]
Found another len += snprintf...
ok mikeb

7 years agosync
deraadt [Mon, 10 Apr 2017 14:22:03 +0000 (14:22 +0000)]
sync

7 years agofor pure *_ctrl() wrapper macros, move the reference from ssl(3)
schwarze [Mon, 10 Apr 2017 14:00:51 +0000 (14:00 +0000)]
for pure *_ctrl() wrapper macros, move the reference from ssl(3)
to SSL_CTX_ctrl(3) to make ssl(3) slightly more palatable