summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2010-07-10Eliminate some unnecessary #include lines.Matthew Dempsky
"sure" marco@
2010-07-09kill redundant docheck() function; ok deraadt@Otto Moerbeek
2010-07-09Avoid crashes by using correct types for block numbers, which can growOtto Moerbeek
large on very large filesystems; reported by Benny Lofgren; partly from FreeBSD. ok deraadt@ beck@ millert@
2010-07-08802.1X is unsupported; from Christopher Zimmermann (tweakedJason McIntyre
version of his diff to tech@ committed);
2010-07-05improve description for -i; as a consequence of recent changes,Igor Sobrado
OpenBSD MBR partition does not span from sector 1 after MBR partition data is re-initialized. written with lot of good advice from deraadt@ and jmc@ ok deraadt@
2010-07-04make ^D handling consistant in fdisk by just bailing out instead ofAlexander Hall
returning a magic value that is not even handled as such by the caller ok krw@
2010-07-03Better non-debug logging messages when a session is established/closed.Reyk Floeter
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
2010-07-03Fix a couple of problems with printing of anchors, in particular recursiveRyan Thomas McBride
printing, both of inline anchors and when requested explicitly with a '*' in the anchor. - Correct recursive printing of wildcard anchors (recurse into child anchors rather than rules, which don't exist) - Print multi-part anchor paths correctly (pr6065) - Fix comments and prevent users from specifying multi-component names for inline anchors. tested by phessler ok henning
2010-07-03Use our own enum here rather than abusing the PF rule type enums, whichRyan Thomas McBride
will be getting cleaned up soon. ok henning
2010-07-02make lint a bit happierTheo de Raadt
2010-07-02garbage collect an unused function; ok claudioTheo de Raadt
2010-07-02garbage collect an unused variableTheo de Raadt
2010-07-02some data structures were still present when NOKVM was definedTheo de Raadt
2010-07-02add missing header needed by ioctl()Charles Longeau
ok maja@
2010-07-02on error, getuint() will return UINT_MAX. Instead of actually usingAlexander Hall
that value, print an error message and repost the question ok krw@ deraadt@
2010-07-01Learn wsconsctl to handle more than the first keyboard, mouse and display.Mats O Jansson
E.g. if we have a /dev/wskbd1 keyboard1 will show up when doing a -a. wsconsctl keyboard1 will now show you all variables for keyboard1. feedback and ok miod@. -moj
2010-07-01Fix 'pfctl -a anchor -Fa' segfault introduced in r1.298.Stefan Sperling
ok mcbride
2010-07-01Use opendev(3) when handling key disks so that disklabel UIDs areJoel Sing
supported. ok marco@
2010-07-01Remove two useless nul characters. -mojMats O Jansson
2010-07-01add screen types and emulations to things to be shown for displays.Mats O Jansson
ok miod@. -moj
2010-07-01Add support for the tap extension (ikev2 ... tap "enc1") that willReyk Floeter
tell the kernel to send all IPsec traffic for derived SAs to the specified enc(4) interface instead of enc0.
2010-07-01support dumping the new SADB_X_EXT_TAP extension.Reyk Floeter
2010-06-30allow uppercase A-F in the uid inputAlexander Hall
ok krw@ jsing@
2010-06-30Make 'fdisk -i' start the OpenBSD partition on a power of 2 512-byteKenneth R Westerback
block boundary. In most modern (i.e. 'faked' geometry) situations this will start it at (0-based) block[64] rather than block[63] as now. This should help performance on disks which really have 4K sectors but report 512-byte sectors. Power of 2 idea from deraadt@. ok toby@ deraadt@
2010-06-30make the disklabel editor not crash when pressing ^D in the uid promptAlexander Hall
ok krw@
2010-06-29Replace enc(4) with a new implementation as a cloner device. We stillReyk Floeter
create enc0 by default, but it is possible to add additional enc interfaces. This will be used later to allow alternative encs per policy or to have an enc per rdomain when IPsec becomes rdomain-aware. manpage bits ok jmc@ input from henning@ deraadt@ toby@ naddy@ ok henning@ claudio@
2010-06-29add code to lookup the RSA public keys in /etc/iked/pubkeys/ as anReyk Floeter
alternative to X.509 CA verification. this will be needed to support public key authentication like isakmpd does; a few bits are still missing.
2010-06-29Replace the hand-crafted Diffie-Hellman implementation in isakmpd withReyk Floeter
the smaller implementation from iked that is using libcrypto instead. This allows to remove a lot of code (which is always good), get rid of some custom crypto code by using libcrypto, theoretically adds support for many new MODP and EC2N/ECP modes (but it is not configurable yet), and allows to share the dh.c/dh.h code in different codebases (it is identical in isakmpd and iked, but could also be used elsewhere). ok deraadt@
2010-06-29Add missing frees.Reyk Floeter
2010-06-29Fix use after free. Found by regress tests.Charles Longeau
ok henning@ krw@
2010-06-29list kern.rthreads as a knob you can but shouldn't turnTed Unangst
2010-06-28Clean up iterface stats handling:Ryan Thomas McBride
- 'make -Fi' reset ALL the interface statistics can be restricted with -i ifname - 'make -Fa -i ifname' fail (it's meaningless) - get rid of a silly little struct that's only used for one thing ok henning
2010-06-28A long time ago when wsconsctl was written it expected that ksym was uniq.Mats O Jansson
That isn't the case. eg thorn, Cyrillic_CHE, L2_tcedilla, L5_scedilla and L7_zcaron has the same (0xfe). So you have a 20% chance to get the right output from wsconsctl. Use the ksym name to decide which ksyms isn't Latin-1. Store that information in the ksym tables. The use the keyboard encoding to make an educated guess of which character to return. Let say your encoding is pl. You have Latin-2 characters in the map. Then check first for Latin-2 characters if none found try Latin-1. ok miod@ -moj
2010-06-27tweak previous; ok claudioJason McIntyre
2010-06-27Make 'route exec' emit error messages like xargs when execve() fails does.Philip Guenthe
ok claudio@
2010-06-27When a peer requests a certificate from the local gateway, we firstReyk Floeter
lookup a cert from /etc/iked/certs/ that is signed by a requested CA. As a second step we also compare the subjectAltName of any found certificate now to match the local srcid; this allows to have multiple certs for the same CA but different srcids in the certs/ directory but enforces that the subjectAltName has to be set correctly. requested by jsg@
2010-06-27fix possible double free of the initiator certReyk Floeter
2010-06-27fix the length check for ASN1_ID Ids.Reyk Floeter
2010-06-27Verify that the subjectAltName extension is present and matches theReyk Floeter
peer Id if the Id type is not ASN1_DN. If it is ASN1_DN, compare it with the certificate subjectName (DN). This prevents the peer from using an arbitrary peer Id (it is signed by the CA in the cert) and qualifies the optional pf tag.
2010-06-27Instead of modifying and fiddling with the IKE SA in the payloadReyk Floeter
parsing routines directly, first parse the message and save the parsed elements in the temporary message struct before validating the information and taking any other actions on the actual SA. This needs more testing, but is the cleaner and better approach.
2010-06-27print the required bits as a stringReyk Floeter
2010-06-27cycle static buffers in print_bits()Reyk Floeter
2010-06-26malloc/strlcpy -> strdup. Apparently I forgot to commit this one withKenneth R Westerback
the similar changes to dhcpd.
2010-06-26Whitespace.Kenneth R Westerback
2010-06-26revert the files that have been accidentally committed with myReyk Floeter
previous parse.y change.
2010-06-26Add a way to enable and set the keepalive parameters for gre(4).Claudio Jeker
OK deraadt, reyk
2010-06-26mixing any (AF_UNSPEC) with AF_INET/INET6 is not an address family mismatchReyk Floeter
2010-06-26Include the Id type in the generated SA tag that is passed to theReyk Floeter
kernel, just like isakmpd does it. In difference to isakmpd, the Id type is printed in capital letters, eg. FQDN/foo.example.com, because it is using the existing print_map() API. For consistency, rename a few Id types in grammar and code from the RFC-names to the OpenBSD-style names; including RFC822_ADDR to UFQDN, IPV4_ADDR to just IPV4, DER_ASN1_DN to ASN1_DN etc.
2010-06-26allow a user to set a -c count of 0.Peter Hessler
while here, change ping6 to use strtonum instead of strtol. OK claudio@