Commit Graph

401 Commits

Author SHA1 Message Date
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
mbalmer e6b9421d36 Clarify gpio example. 2017-05-10 07:51:07 +00:00
mbalmer acc324c63c Fix flags for DB open. 2017-05-10 07:37:33 +00:00
tnn 5569b39ef7 fix build of puffs examples; need _KERNTYPES for register_t 2016-08-26 22:12:22 +00:00
riastradh 5e51ceb9a4 Add $NetBSD$ tag. 2016-02-06 20:19:28 +00:00
pooka d35b86acad Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed
unless you're doing something special, but requires register_t.
Adjust the few places which actually need rumpvnode_if.h.
2016-01-25 11:45:57 +00:00
pooka 6cd39ddb85 add -D_KERNTYPES 2016-01-25 11:01:17 +00:00
kamil 8ad8b0676c Correct mistakes in the sqlite.lua example
Changes:
- The open flag: sqlite.OPEN_CREATE will open the DB for reading and
  writing, adding sqlite.OPEN_READWRITE to sqlite.OPEN_CREATE will cause
  the DB to not be created and prevent the script from continuing
- When using stmt:bind_parameter_index() the parameter needs to be
  prefixed with ':' if that was used in the prepared statement,
  otherwise the incorrect index of 0 is returned.
- The drop table statement has an "x" appended to the table name, looks
  like a typo.

Patch by Travis Paul

Closes PR misc/50493
2015-12-08 23:04:40 +00:00
hubertf f8f91eb838 Move today's most common config (WPA) to the front
Add a WPA config with hidden (non-broadcasting) SSID
2015-11-26 16:07:40 +00:00
hubertf d5d989696c add RCS is 2015-11-26 16:03:18 +00:00
christos 071faa13f8 add a shm example 2015-03-04 16:18:04 +00:00
snj 682be92a68 de-foodify comment 2014-10-18 07:11:07 +00:00
szptvlfn 5c4c6feb2f use proper address, ok spz@. 2014-08-04 22:13:23 +00:00
lneto 4ab4902eb2 lua: updated from 5.1 to 5.3 work3
* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19 18:38:33 +00:00
spz a9c93eb0a8 - match up comment and interface identifiers
- use RFC5737 documentation prefixes
- use a variable for the RFC1918 private address ranges
2014-05-31 12:33:14 +00:00
spz af8b224c4c example for port remapping added 2014-05-31 11:54:37 +00:00
christos a6ec449286 need esp 2014-05-27 23:34:43 +00:00
christos 4b88b7d425 just allow l2tp not regular ipsec. 2014-05-27 23:24:42 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos 161079ca45 put more info about the sierra modem 2014-02-15 18:17:59 +00:00
rmind c5b92e4a87 Sync some NPF config examples with the reality. 2014-02-08 01:32:19 +00:00
spz 8797028bc7 - make etc/rc.d/wpa_supplicant create directory /var/run/wpa_supplicant
on startup
- create share/examples/wpa_supplicant/wpa_supplicant.conf and make it
  known in the relevant places. Improvements welcome, my point was
  ctrl_interface and "you seriously want this"
2014-01-23 07:26:50 +00:00
spz e6ff916532 track syntax change in npf.conf regarding group 2013-09-20 17:51:04 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
christos e2d1c3abce remove file that did not go before. 2013-06-27 14:52:58 +00:00
christos 38d57d6181 rename to follow suit. 2013-06-26 21:36:39 +00:00
christos c02281a083 add an L2TP Gateway example. 2013-06-26 21:33:56 +00:00
yamt ef672e506a fix user-after-free bug 2013-04-22 13:28:28 +00:00
yamt 6b3d697c3c do setlocale so that we can print localized messages from libpq correctly. 2013-04-22 13:27:49 +00:00
yamt 8df556197c make pg_config overridable 2013-04-22 13:27:08 +00:00
rmind f69459c655 Fix syntax error in the example, fix one rule and G/C "rid" procedure. 2012-12-09 22:12:26 +00:00
spz e146303174 adjust to current npf.conf syntax 2012-12-04 18:48:32 +00:00
christos c1e423d3c5 add configurations to connect to Sprint's 3G network. 2012-11-01 00:40:22 +00:00
spz c60c5ec2d8 actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
2012-08-22 06:45:15 +00:00
spz e185885455 add id string, fix comments 2012-08-21 08:25:21 +00:00
spz 52a0bf69ae the example from the man page, with a few extra comments 2012-08-21 06:54:39 +00:00
spz f9b90c2013 add an example for a npf.conf
It probably could do with polishing of both rules and comments, but meh,
better than nothing
2012-08-20 21:09:49 +00:00
yamt 4571decefa comment 2012-04-11 14:28:46 +00:00
yamt 86c517f33d don't bother to call lo_close.
as we ever open a few LOs at most in a transaction, just let them be closed
automatically at the end of the transaction.
2012-04-11 14:28:18 +00:00
yamt d72c60c595 setlabel: save SQL statements by caching the last label 2012-04-11 14:27:43 +00:00
yamt 5a2606adf5 remove FK references as it creates more problems than it solves.
particularly, it involves shared lock on the referenced table
and causes frequent deadlock.
2012-04-11 14:27:15 +00:00
yamt cb9c120507 abuse application_name to show the last puffs activity for the connection. 2012-04-11 14:26:44 +00:00
yamt e5acf2f836 reduce number of SQL statements for inactivate 2012-04-11 14:26:19 +00:00
yamt c47d2fd43a - enable writeback cache and namecache.
- use setback hack to reduce number of puffs OPs.
2012-04-11 14:25:54 +00:00
mbalmer ae1a443653 GPIO pins are 0 based when accessed from Lua, not 1 based like Lua usually
is.  The pulse() has been removed, use gpiopwm(4) for that.
2012-02-25 09:13:38 +00:00
jym 47c04e7b5a Update secmodel_examples to better describe the secmodel(9) API. 2011-12-04 23:55:36 +00:00
skrll 052320efd5 Typo 2011-11-27 09:07:11 +00:00
jmmv a5847cc334 Add assembly language examples in a new 'asm' subdirectory.
At the moment this only provides an example for a "Hello world" program
for powerpc.  (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
2011-11-12 01:18:40 +00:00
mbalmer e0c22d6455 Install, and add to the set lists, example code to illustrate Lua module use. 2011-10-15 13:00:59 +00:00
mbalmer 250c0b9d25 Example files showing Lua module usage. 2011-10-15 12:58:43 +00:00