Commit Graph

16022 Commits

Author SHA1 Message Date
dchagin
3568e992cc Properly sort Xr to silence mandoc warnings.
Differential Revision:	https://reviews.freebsd.org/D1314
Reviewed by:	wblock
MFC after:	1 Month
2014-12-15 20:48:06 +00:00
dchagin
6f2b57128c Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9).
A _NEW flag passed to _init_flags() to avoid check for double-init.

Differential Revision:	https://reviews.freebsd.org/D1208
Reviewed by:	jhb, wblock
MFC after:	1 Month
2014-12-13 21:00:10 +00:00
jmg
c3ff54cc39 Add some new modes to OpenCrypto. These modes are AES-ICM (can be used
for counter mode), and AES-GCM.  Both of these modes have been added to
the aesni module.

Included is a set of tests to validate that the software and aesni
module calculate the correct values.  These use the NIST KAT test
vectors.  To run the test, you will need to install a soon to be
committed port, nist-kat that will install the vectors.  Using a port
is necessary as the test vectors are around 25MB.

All the man pages were updated.  I have added a new man page, crypto.7,
which includes a description of how to use each mode.  All the new modes
and some other AES modes are present.  It would be good for someone
else to go through and document the other modes.

A new ioctl was added to support AEAD modes which AES-GCM is one of them.
Without this ioctl, it is not possible to test AEAD modes from userland.

Add a timing safe bcmp for use to compare MACs.  Previously we were using
bcmp which could leak timing info and result in the ability to forge
messages.

Add a minor optimization to the aesni module so that single segment
mbufs don't get copied and instead are updated in place.  The aesni
module needs to be updated to support blocked IO so segmented mbufs
don't have to be copied.

We require that the IV be specified for all calls for both GCM and ICM.
This is to ensure proper use of these functions.

Obtained from:	p4: //depot/projects/opencrypto
Relnotes:	yes
Sponsored by:	FreeBSD Foundation
Sponsored by:	NetGate
2014-12-12 19:56:36 +00:00
imp
8bf6525251 Fix typo in comments.
Noticed by: brooks@
2014-12-12 18:54:31 +00:00
rpaulo
dc1c036751 Add myself. 2014-12-11 18:58:22 +00:00
ngie
2a3bfe36c5 Fix building termcap.db when make obj is run beforehand from a clean tree by
using make variables for the filenames, which helps resolve pathing
appropriately when running cap_mkdb

X-MFC with: r275687
Pointyhat to: me
2014-12-10 23:18:11 +00:00
ngie
fd6bb9e41a Remove termcap entry reordering; install the file verbatim instead
termcap entry reordering requires ex (which is available via usr.bin/vi), which
breaks on build hosts where installworld is run with MK_VI == no (or when
make delete-old is run on ^/projects/building-blocks as vi, et al, are
removed on the branch when the knob is tweaked to => "no")

Reordering termcap was believed to improve performance, but the file is now
accessed via /etc/termcap.db, so /etc/termcap (and /usr/share/misc/termcap by
proxy) access is less preferred.

Reordering the file broke the historical comment <-> entry mapping as well,
which could muddle the purpose of entries in the file, so it could be
potentially harmful to readers in its reordered state.

Discussion took place on hackers@ here:
https://lists.freebsd.org/pipermail/freebsd-hackers/2014-December/046657.html

Discussed with: -hackers, mp
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division
2014-12-10 20:40:03 +00:00
mp
d51e18675d Document support for Netgear WG111v1 (rev2) 2014-12-08 04:06:03 +00:00
ngie
1e1cda063a The previous commit should have been a logical or not a logical "and"
Pointyhat to: me
2014-12-08 03:32:26 +00:00
ngie
20ef381e2c ${CC} --version doesn't need to be queried if both COMPILER_TYPE and
COMPILER_VERSION are known
2014-12-08 03:30:42 +00:00
bapt
3aeff96fa5 Fix rendering 2014-12-06 22:28:51 +00:00
sbruno
6d1dca62ad Add myself as a ports committer, mentored by bapt/bdrewery. 2014-12-06 22:03:12 +00:00
bapt
545dc2123f Update to reflect the current members of portmgr 2014-12-06 21:55:18 +00:00
bapt
c0d6bf0d70 add some missing mentor->mentee relationship 2014-12-06 21:50:35 +00:00
kami
f81084e009 Add mentor information for kami a.k.a. me.
My mentors are cs and koobs.

Differential Revision:	https://reviews.freebsd.org/D975
Reviewed by:	cs
Approved by:	cs
2014-12-06 21:34:37 +00:00
ngie
25599c5ea6 Fix typos in comments and wrap to <80 columns
MFC after: 3 days
2014-12-06 03:15:46 +00:00
rpaulo
5f6f4d17d5 Switch gpioctl(8) to LIBADD. 2014-12-03 03:05:15 +00:00
emaste
ce1a73f5ca Regenerate src.conf(5) after r275373 2014-12-02 02:16:30 +00:00
andrew
fb471684a4 Set the correct architecture when targeting ARMv7
MFC after:	1 Week
Sponsored by:	ABT Systems Ltd
2014-12-01 21:07:36 +00:00
mav
645c5190d6 Document ISP 2532 support and hint.isp.0.vports tunable.
MFC after:	1 week
2014-12-01 17:51:16 +00:00
emaste
c79f6538fe Build infrastructure for elftoolchain tools
Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version
of the following tools:

 * addr2line
 * elfcopy (strip / mcs)
 * nm
 * size
 * strings

Reviewed by:	bapt (earlier version)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1224
2014-12-01 17:49:42 +00:00
peterj
058535ab0f Cross reference tap(4) and tun(4) and include a short explanation as
to how they differ.  This will assist users in selecting which interface
is more appropriate for their purposes.

Approved by:	grog (co-mentor)
MFC after:	2 week
2014-11-30 04:50:13 +00:00
bapt
7d08b91413 Update libucl to latest version
While here correctly link libucl to libm and register the dependency on libm
for static building
2014-11-29 00:45:09 +00:00
maxim
3d15528773 o NetBSD 6.1.5, OpenBSD 5.6, FreeBSD 10.1, DragonFly 4.0.1 added. 2014-11-27 14:54:17 +00:00
gjb
915575c811 Regen src.conf(5) after r275138.
Sponsored by:	The FreeBSD Foundation
2014-11-26 20:44:54 +00:00
bapt
64307db9da Remove MINUSLPAM the LIBADD framework handles static dependencies just fine 2014-11-26 08:14:30 +00:00
bapt
61934d405e Remove all remnant ugly LD<lbname> but atf one until the aft framework knows
about LIBADD
2014-11-25 22:39:59 +00:00
bapt
c9bc0f390a Register the explicit (pthread) and implicit (for static) dependencies for
kerberos
2014-11-25 22:17:31 +00:00
bapt
e6e4fe6290 Defines the libssh dependencies 2014-11-25 22:10:31 +00:00
bapt
84381fd977 Define missing libraries to be able to convert gnu, cddl and secure to LIBADD 2014-11-25 21:16:44 +00:00
bapt
db759d1bdf Sort libraries definitions
Reported by:	bjk
2014-11-25 19:13:03 +00:00
bapt
6f08abd4bf Remove duplicated krb5
Reported by:	markj
2014-11-25 19:07:31 +00:00
bapt
8d6e0e65e9 Defined the needed library to convert usr.sbin to LIBADD 2014-11-25 16:51:06 +00:00
avg
19dfaaa408 callout(9): add sbt flavors of callout_schedule
Differential Revision:	https://reviews.freebsd.org/D1161 (partial)
Reviewed by:	jhb, markj
MFC after:	1 week
2014-11-25 15:21:21 +00:00
bapt
f28badddf7 Defines all the libraries needed for usr.bin 2014-11-25 14:28:15 +00:00
bapt
b3accf4c8d Define libipf internal library 2014-11-25 11:22:28 +00:00
bapt
ae45ae3f5d Fix recursive problem with libedit dependency, if you depends on ncursesw and
not on itself
2014-11-25 11:14:42 +00:00
bapt
079f78008e Add a definition for libxo 2014-11-25 11:13:21 +00:00
bapt
1578ed600d Define compiler_rt and ssp_nonshared libraries 2014-11-25 11:07:03 +00:00
bapt
b4ca360a6a libvers and libsl are internal libraries 2014-11-25 09:54:05 +00:00
bapt
83f6d12d65 Fix make depends with libnetbsd 2014-11-25 07:47:44 +00:00
bapt
e4945ec8a7 Add definitions of kerberos libraries 2014-11-25 07:13:31 +00:00
bapt
c4b2ced73a libevent is an internallib 2014-11-25 00:51:49 +00:00
bapt
725b0cc6ad libatf-c++ exposes libatf-c abi hence we need to explicit link to atf-c if
atf-c++ is requested
2014-11-25 00:28:27 +00:00
bapt
90830dd774 Do not overwrite any LIBNETBSD or LIBNETBSDDIR if they are already defined 2014-11-25 00:12:25 +00:00
bapt
85691d217f Define special case for atf which libraries names are different from their
declaration
2014-11-25 00:01:53 +00:00
bapt
a37123107a s/cft/ctf 2014-11-24 23:58:04 +00:00
bapt
a1d4ad2ea5 Fix typo 2014-11-24 22:35:32 +00:00
bapt
8ed8af5371 Fix dependencies in case of building statically 2014-11-24 22:32:18 +00:00
bapt
7dd9bdfec2 Avoid code duplication by directly adding _INSTALLLIBS and _PRIVATELIBS into
_LIBRARIES

Reported by:	emaste
2014-11-24 22:29:16 +00:00