openbsd
10 years agoAdd support for 255 character file names in fuse.
syl [Mon, 28 Apr 2014 13:08:34 +0000 (13:08 +0000)]
Add support for 255 character file names in fuse.

from Helg Bredow, thanks!
input/OK reyk@

10 years agofix memory leak
blambert [Mon, 28 Apr 2014 12:48:36 +0000 (12:48 +0000)]
fix memory leak

ok reyk@

10 years agocheck for integer overflows in custom allocs, okay jca@
espie [Mon, 28 Apr 2014 12:34:11 +0000 (12:34 +0000)]
check for integer overflows in custom allocs, okay jca@

10 years agoAdd support for exporting ARP table via ipNetToMediaTable OID.
mikeb [Mon, 28 Apr 2014 12:03:32 +0000 (12:03 +0000)]
Add support for exporting ARP table via ipNetToMediaTable OID.
With help from blambert@ and sthen@, tested by sthen@, benno@
and myself;  ok blambert

10 years agospacing
reyk [Mon, 28 Apr 2014 11:19:22 +0000 (11:19 +0000)]
spacing

10 years agobump copyright
reyk [Mon, 28 Apr 2014 11:17:15 +0000 (11:17 +0000)]
bump copyright

10 years agoAdd missing documentation for ipcomp(4) support and the configuration
reyk [Mon, 28 Apr 2014 11:16:18 +0000 (11:16 +0000)]
Add missing documentation for ipcomp(4) support and the configuration
payloads.

ok sthen@ krw@

10 years agoIt's about time to remove the infamous CAVEATS section in iked(8).
reyk [Mon, 28 Apr 2014 11:05:59 +0000 (11:05 +0000)]
It's about time to remove the infamous CAVEATS section in iked(8).
Software is never "finished" but the implementation has matured enough
to drop the disclaimer about using it in production networks.

Thanks to markus@, mikeb@ and Hans-Joerg Hoexer for their significant
and ongoing work on improving iked(8).

Removal prompted by sthen@ and many others.

10 years agoMove an opening brace so a loop that delays while waiting
jsg [Mon, 28 Apr 2014 10:06:37 +0000 (10:06 +0000)]
Move an opening brace so a loop that delays while waiting
for hardware to set a ready bit actually delays.

ok krw@ deraadt@ 'sounds correct' miod@

10 years agowhitespace cleanup while reading result of florian's recent (very nice) work
deraadt [Mon, 28 Apr 2014 09:45:30 +0000 (09:45 +0000)]
whitespace cleanup while reading result of florian's recent (very nice) work

10 years agobetter proc id name (it handles traps, not alerts) for the
blambert [Mon, 28 Apr 2014 08:25:05 +0000 (08:25 +0000)]
better proc id name (it handles traps, not alerts) for the
snmp trap handler

10 years agobuffer_get_string_ptr's return should be const to remind
djm [Mon, 28 Apr 2014 03:09:18 +0000 (03:09 +0000)]
buffer_get_string_ptr's return should be const to remind
callers that futzing with it will futz with the actual buffer
contents

10 years agoImprove error handling in dbopen(). If PRAGMA SQL statements fail,
schwarze [Sun, 27 Apr 2014 23:03:52 +0000 (23:03 +0000)]
Improve error handling in dbopen().  If PRAGMA SQL statements fail,
report the error, close the database, and return failure from dbopen(),
such that the main program can recover and rebuild the database.

As noticed by stsp@, this can happen when database files are
accessible, but corrupt or in the wrong format, which will now
automatically be repaired.

Besides, use a safer idiom after sqlite3_open*() failure that also
handles out-of-memory situations correctly, and do not forget to
close the database after CREATE TABLE failure.

10 years agoFor LUNA88K, make sure the architecture name shown to the user
schwarze [Sun, 27 Apr 2014 22:41:39 +0000 (22:41 +0000)]
For LUNA88K, make sure the architecture name shown to the user
matches the architecture name required for man -S and apropos -S.
Adjust the case of LUNA68K to match the case of LUNA88K.
ok aoyama@

10 years agoRegress for access()
guenther [Sun, 27 Apr 2014 22:18:25 +0000 (22:18 +0000)]
Regress for access()

10 years agotypo in comment
miod [Sun, 27 Apr 2014 20:38:39 +0000 (20:38 +0000)]
typo in comment

10 years agoRemove orphaned l2n6 and n2l6 macros.
miod [Sun, 27 Apr 2014 20:34:33 +0000 (20:34 +0000)]
Remove orphaned l2n6 and n2l6 macros.

10 years agoUse C99 initializers for the various FOO_METHOD structs. More readable, and
miod [Sun, 27 Apr 2014 20:26:46 +0000 (20:26 +0000)]
Use C99 initializers for the various FOO_METHOD structs. More readable, and
avoid unreadable/unmaintainable constructs like that:

const EVP_PKEY_ASN1_METHOD cmac_asn1_meth =
        {
        EVP_PKEY_CMAC,
        EVP_PKEY_CMAC,
        0,

        "CMAC",
        "OpenSSL CMAC method",

        0,0,0,0,

        0,0,0,

        cmac_size,
        0,
        0,0,0,0,0,0,0,

        cmac_key_free,
        0,
        0,0
        };

ok matthew@ deraadt@

10 years agostatic const char * = "" -> static const char[] = "", to produce shorter code.
miod [Sun, 27 Apr 2014 20:24:52 +0000 (20:24 +0000)]
static const char * = "" -> static const char[] = "", to produce shorter code.
No functional change.

10 years agoUnifdef -U OPENSSL_BUILD_SHLIBCRYPTO, since all it causes under Unix is to
miod [Sun, 27 Apr 2014 20:22:30 +0000 (20:22 +0000)]
Unifdef -U OPENSSL_BUILD_SHLIBCRYPTO, since all it causes under Unix is to
redefine OPENSSL_EXTERN from `extern' to `extern'.

10 years agoPut explicit (void) in function declarations and shuffle keywords in some
miod [Sun, 27 Apr 2014 20:20:57 +0000 (20:20 +0000)]
Put explicit (void) in function declarations and shuffle keywords in some
declaration to pass -Wextra, should we want to add it to CFLAGS.
No binary change.

10 years agoFix library search order in our libtool.
zhuk [Sun, 27 Apr 2014 18:08:35 +0000 (18:08 +0000)]
Fix library search order in our libtool.

Before, libtool first searched all directories for .la files, and if
search failed, switched to actual libraries (.so/.a). But the correct way
is to check each directory first for .la, then for .so/.a.

The problem was reported by ajacoutot@ who verified that the patch fixes
his case and okay'ed the initial diff. And jasper@'s bulk uncovered a bug
which is fixed now (verified by another bulk).

10 years agozap trailing whitespace;
jmc [Sun, 27 Apr 2014 16:58:08 +0000 (16:58 +0000)]
zap trailing whitespace;

10 years agosort the ip6 sysctls;
jmc [Sun, 27 Apr 2014 16:56:51 +0000 (16:56 +0000)]
sort the ip6 sysctls;

10 years agoWe do not need a separate file for two compatibility wrapper functions.
jsing [Sun, 27 Apr 2014 16:19:04 +0000 (16:19 +0000)]
We do not need a separate file for two compatibility wrapper functions.

ok miod@

10 years agoFix leak last commit introduced. Spotted by Sebastian Kapfer.
beck [Sun, 27 Apr 2014 15:59:25 +0000 (15:59 +0000)]
Fix leak last commit introduced. Spotted by Sebastian Kapfer.

10 years agoDocument net.inet6.ip6.dad_pending.
logan [Sun, 27 Apr 2014 15:55:16 +0000 (15:55 +0000)]
Document net.inet6.ip6.dad_pending.

OK from jmc@, and thanks to sthen@ for pointing out my mistake in the first
version of the diff.

10 years agozap a ton of silly Tn, and uppercase TTL; a few other minor tweaks along the
jmc [Sun, 27 Apr 2014 15:30:16 +0000 (15:30 +0000)]
zap a ton of silly Tn, and uppercase TTL; a few other minor tweaks along the
way;

10 years agoAdd PME_STATUS and PME_EN bitmasks for the PCI PMCSR register.
stsp [Sun, 27 Apr 2014 14:55:09 +0000 (14:55 +0000)]
Add PME_STATUS and PME_EN bitmasks for the PCI PMCSR register.
ok kettenis@

10 years agoStart de-obfuscating the HC drivers.
mpi [Sun, 27 Apr 2014 14:48:10 +0000 (14:48 +0000)]
Start de-obfuscating the HC drivers.

Since pipe methods have an xfer argument, always use it to get acces to
various data structure (pipe, bus, device) instead of having a different
way to get a pointer to these descriptors in every function.

Also kill the {E,U}XFER() macro and use a consistent name accross all the
methods for {e,u}hci_xfer.

10 years agoDon't zap disklabel (and next 6 blocks) when installing boot block on
krw [Sun, 27 Apr 2014 13:41:50 +0000 (13:41 +0000)]
Don't zap disklabel (and next 6 blocks) when installing boot block on
4k-sector disk drives.

Noted and fix tested by David Vasek via misc@

tweaks & ok jsing@

10 years agoDo not let the bluetooth HID device, present in Apple machines with USB,
mpi [Sun, 27 Apr 2014 13:32:04 +0000 (13:32 +0000)]
Do not let the bluetooth HID device, present in Apple machines with USB,
grab the console.

This makes ddb(4) usable with any simple wired USB keyboard on G3/G4
machines that do not have adb(4) input devices, on G5s and certainly on
some MacBooks too.

ok andre@, miod@

10 years agoGet back "_ppp" user and "_ppp" group. From now they will be solely
yasuoka [Sun, 27 Apr 2014 10:07:29 +0000 (10:07 +0000)]
Get back "_ppp" user and "_ppp" group.  From now they will be solely
used by npppd.

ok deraadt

10 years agotransplant hotplug code over from qle(4)
jmatthew [Sun, 27 Apr 2014 08:40:13 +0000 (08:40 +0000)]
transplant hotplug code over from qle(4)

10 years agosync
todd [Sun, 27 Apr 2014 06:43:39 +0000 (06:43 +0000)]
sync

10 years agoWhen the firmware has already allocated the handle we want to use to log in
jmatthew [Sun, 27 Apr 2014 05:23:35 +0000 (05:23 +0000)]
When the firmware has already allocated the handle we want to use to log in
to a port, restart the update process to keep things in sync.  Domain
controller logins get special handling here because they don't show up in the
list of logged in ports.

10 years agoAppease gcc3 -Wuninitialized.
miod [Sat, 26 Apr 2014 22:54:54 +0000 (22:54 +0000)]
Appease gcc3 -Wuninitialized.

10 years agoGet rid of duplication of the global lock code. Allow recursion in all
kettenis [Sat, 26 Apr 2014 21:45:50 +0000 (21:45 +0000)]
Get rid of duplication of the global lock code.  Allow recursion in all
code paths.

ok pirofti@

10 years agoReplace all use of ERR_add_error_data with ERR_asprintf_error_data.
beck [Sat, 26 Apr 2014 18:56:37 +0000 (18:56 +0000)]
Replace all use of ERR_add_error_data with ERR_asprintf_error_data.
This avoids a lot of ugly gymnastics to do snprintfs before sending the
bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c
where it was being called with the incorrect number of arguments and
using random things off the stack as addresses of strings.
ok krw@, jsing@

10 years agosync
todd [Sat, 26 Apr 2014 15:45:53 +0000 (15:45 +0000)]
sync

10 years agoDo not pass a NULL argument to OF_getprop(), even if it's fine for the
mpi [Sat, 26 Apr 2014 14:26:48 +0000 (14:26 +0000)]
Do not pass a NULL argument to OF_getprop(), even if it's fine for the
moment since we use an intermediate buffer and we specify a length of 0,
there's no need for an exception here.

Noticied while playing with the virtual-mode client interface of firmware.

10 years agoAllow to compile with DEBUG_PMAP defined.
mpi [Sat, 26 Apr 2014 14:19:04 +0000 (14:19 +0000)]
Allow to compile with DEBUG_PMAP defined.

10 years agoMore KNF.
jsing [Sat, 26 Apr 2014 13:07:16 +0000 (13:07 +0000)]
More KNF.

10 years agoKNF.
jsing [Sat, 26 Apr 2014 13:04:24 +0000 (13:04 +0000)]
KNF.

10 years agoKill the link to /usr/bin/page. OK henning@ jmc@ miod@ schwarze@
millert [Sat, 26 Apr 2014 11:53:05 +0000 (11:53 +0000)]
Kill the link to /usr/bin/page.  OK henning@ jmc@ miod@ schwarze@

10 years agofix whitespace
sthen [Sat, 26 Apr 2014 11:28:49 +0000 (11:28 +0000)]
fix whitespace

10 years agoOnly remove queues from the TAILQ when the ticket changes; fixes PPS/BPS
sthen [Sat, 26 Apr 2014 11:27:23 +0000 (11:27 +0000)]
Only remove queues from the TAILQ when the ticket changes; fixes PPS/BPS
displays for queues in "systat q". From Arto Jonsson.

10 years agoThis is not FreeBSD.
jsing [Sat, 26 Apr 2014 11:08:59 +0000 (11:08 +0000)]
This is not FreeBSD.

ok miod@

10 years agoDo you really want to build OpenSSL for 16-bit Windows? Well, we don't.
jsing [Sat, 26 Apr 2014 11:08:10 +0000 (11:08 +0000)]
Do you really want to build OpenSSL for 16-bit Windows? Well, we don't.

ok miod@

10 years agoLink traceroute6 to traceroute, thus completing the merge.
florian [Sat, 26 Apr 2014 11:02:45 +0000 (11:02 +0000)]
Link traceroute6 to traceroute, thus completing the merge.
I was originally sent on this little errand by deraadt@.
OK sthen@, benno@
(Committing from a bus somewhere in germany on its way to berlin.)

10 years agoremove a duplicate break statement
jsg [Sat, 26 Apr 2014 06:17:26 +0000 (06:17 +0000)]
remove a duplicate break statement

10 years agoRevert 1.11. That patch is not only not necessary, it is quite harmful now.
shadchin [Sat, 26 Apr 2014 05:58:43 +0000 (05:58 +0000)]
Revert 1.11. That patch is not only not necessary, it is quite harmful now.

ok schwarze@

10 years agoPerform MAXPHYS-sized reads for the chunktable instead of PAGE_SIZE-sized
mlarkin [Sat, 26 Apr 2014 05:43:00 +0000 (05:43 +0000)]
Perform MAXPHYS-sized reads for the chunktable instead of PAGE_SIZE-sized
reads.

Also fix a VA leak in the chunktable read error path.

10 years agodiscussing terminfo is not needed; ok schwarze
jmc [Fri, 25 Apr 2014 22:28:42 +0000 (22:28 +0000)]
discussing terminfo is not needed; ok schwarze

10 years agoThis manual was lacking it's most important section, HISTORY.
schwarze [Fri, 25 Apr 2014 20:33:05 +0000 (20:33 +0000)]
This manual was lacking it's most important section, HISTORY.
While here, add .An (author name) macros.

10 years agoSecurity is square, gaming is hip,
schwarze [Fri, 25 Apr 2014 20:23:37 +0000 (20:23 +0000)]
Security is square, gaming is hip,
so extend the Valhalla Rampage to where it really matters.

Tedu 118 lines of dead code containing 77 dead magic numbers,
rotting in the tree since June 24, 2001.

Spotted by and ok jsg@, ok sthen@.

10 years agofilter excess data from autoinstall output *before* it ends up in the
halex [Fri, 25 Apr 2014 19:34:24 +0000 (19:34 +0000)]
filter excess data from autoinstall output *before* it ends up in the
log file on the ramdisk, in order not to run out of its precious space

reported by, tested and ok sebastia@

10 years agoMake more(1) POSIX compliant with respect to the -e option.
schwarze [Fri, 25 Apr 2014 18:07:41 +0000 (18:07 +0000)]
Make more(1) POSIX compliant with respect to the -e option.
By default, "more" now works like "less -e", and "more -e" now
works like "less -E", and more never exits just because the file
fits on the first screen, like "less -F" would.

While documenting this, add some text to the DESCRIPTION explaining
how paging works.  That allows a very concise description of -e.

code change ok millert@
manual page joint work with and ok jmc@

10 years agoRedirecting stderr to /dev/null suppresses all errors. Instead use
bluhm [Fri, 25 Apr 2014 17:59:53 +0000 (17:59 +0000)]
Redirecting stderr to /dev/null suppresses all errors.  Instead use
the new status=none feature to make dd quiet.
OK halex@

10 years agoadd traceroute6 to NAME, and knock out some unneeded Bk/Ek;
jmc [Fri, 25 Apr 2014 15:09:56 +0000 (15:09 +0000)]
add traceroute6 to NAME, and knock out some unneeded Bk/Ek;

10 years agosort; ok blambert
jmc [Fri, 25 Apr 2014 14:54:45 +0000 (14:54 +0000)]
sort; ok blambert

10 years agoKNF.
jsing [Fri, 25 Apr 2014 14:53:22 +0000 (14:53 +0000)]
KNF.

10 years agoDefer the free of the hibernate structures until later, when it is safe to
mlarkin [Fri, 25 Apr 2014 14:37:06 +0000 (14:37 +0000)]
Defer the free of the hibernate structures until later, when it is safe to
do so.

Freeing the hibernate structures too early leads to inadvertent calls into
splx when we aren't ready for them yet. Found when trapping splx calls in
the resume path.

discussed with deraadt@ at m2k14

10 years agoFix a minor optimization i broke in bsd.lv rev. 1.163 on August 20, 2010:
schwarze [Fri, 25 Apr 2014 14:10:59 +0000 (14:10 +0000)]
Fix a minor optimization i broke in bsd.lv rev. 1.163 on August 20, 2010:
Do not bother looking into the hash table when the length of the macro
already tells us it's invalid.  No functional change.
Noticed by jsg@, thanks!

10 years agoFold in the zlib_cleanup macro.
jsing [Fri, 25 Apr 2014 14:08:32 +0000 (14:08 +0000)]
Fold in the zlib_cleanup macro.

10 years agodo_pipe_sig is now only used in openssl.c - just call signal() directly
jsing [Fri, 25 Apr 2014 14:00:15 +0000 (14:00 +0000)]
do_pipe_sig is now only used in openssl.c - just call signal() directly
from there instead and ditch the macro.

10 years agoNON_MAIN no longer means anything so remove it, along with APP_INIT.
jsing [Fri, 25 Apr 2014 13:56:39 +0000 (13:56 +0000)]
NON_MAIN no longer means anything so remove it, along with APP_INIT.

ok miod@

10 years agoThe apps_{startup,shutdown} macro mess is now only used in openssl.c -
jsing [Fri, 25 Apr 2014 13:55:25 +0000 (13:55 +0000)]
The apps_{startup,shutdown} macro mess is now only used in openssl.c -
reduce the macro to two functions and just call them instead.

ok miod@

10 years agoMerge Less 458 plus local patches
shadchin [Fri, 25 Apr 2014 13:38:21 +0000 (13:38 +0000)]
Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits

10 years agoImport of Less 458
shadchin [Fri, 25 Apr 2014 13:33:39 +0000 (13:33 +0000)]
Import of Less 458

ok guenther@

10 years agoClean up the remaining TTY related remnants.
jsing [Fri, 25 Apr 2014 13:22:38 +0000 (13:22 +0000)]
Clean up the remaining TTY related remnants.

ok miod@

10 years agospecifying ECHOCTL once is enough
jsg [Fri, 25 Apr 2014 12:45:16 +0000 (12:45 +0000)]
specifying ECHOCTL once is enough
ok nicm@

10 years agoregen
mpi [Fri, 25 Apr 2014 12:24:31 +0000 (12:24 +0000)]
regen

10 years agoAdd a bunch of GeForce GT{,X} chips listed in nvidia's 334.21 driver.
mpi [Fri, 25 Apr 2014 12:22:15 +0000 (12:22 +0000)]
Add a bunch of GeForce GT{,X} chips listed in nvidia's 334.21 driver.

This includes the GeForce GT 740M submitted by Rafael Neves on tech@,
thanks!

10 years agokill dugsong's debugging leftover; ok sthen, jsg
mikeb [Fri, 25 Apr 2014 12:20:17 +0000 (12:20 +0000)]
kill dugsong's debugging leftover; ok sthen, jsg

10 years agoReduce the verbosity of makewhatis -t:
schwarze [Fri, 25 Apr 2014 12:12:35 +0000 (12:12 +0000)]
Reduce the verbosity of makewhatis -t:
In the past, it always showed the title lines of the files processed.
Now, it only shows them when called with -D.
That is better because pkg_create calls makewhatis -t.
It is also more consistent with -D behaviour in non- -t modes.
Issue reported by ajacoutot@; ok espie@ ajacoutot@ jasper@.

10 years agoMLINKS traceroute.8 traceroute6.8
florian [Fri, 25 Apr 2014 12:10:45 +0000 (12:10 +0000)]
MLINKS traceroute.8 traceroute6.8
"sure" jmc@

10 years agoMerge traceroute6 man page with traceroute.
florian [Fri, 25 Apr 2014 12:10:14 +0000 (12:10 +0000)]
Merge traceroute6 man page with traceroute.
"sure" jmc@

10 years agoSync "struct rt_addrinfo" definition after removal of rti_ifp and kill
mpi [Fri, 25 Apr 2014 11:49:47 +0000 (11:49 +0000)]
Sync "struct rt_addrinfo" definition after removal of rti_ifp and kill
a trailing whitespace pointed by jmc@.

10 years agoRemove NULL pointer dereference, which jsg insists I not
blambert [Fri, 25 Apr 2014 11:12:14 +0000 (11:12 +0000)]
Remove NULL pointer dereference, which jsg insists I not
call a use-after free, from error path.

found by and ok jsg@

10 years agoRemove rti_ifp from rt_addrinfo, one less ifp pointer, say yay!
mpi [Fri, 25 Apr 2014 10:41:09 +0000 (10:41 +0000)]
Remove rti_ifp from rt_addrinfo, one less ifp pointer, say yay!

This pointer was only needed by rt_getifa() to find an address, so
turn it into a local variable.

ok henning@, bluhm@

10 years agoDo no reprobe for a supported protocol when enabling a pointing
mpi [Fri, 25 Apr 2014 10:33:36 +0000 (10:33 +0000)]
Do no reprobe for a supported protocol when enabling a pointing
device of type PMS_STANDARD, probing during autoconf(9) is enough!.

In such case, the device can be a simple PS/2 mouse, a unsupported
touchpad or a downgraded touchpad if something bad happened.  But
it is very unlikely that reprobing will improve the situation and
transform a standard mouse into a multitouch-aware touchpad ;)

This fixes the 12 seconds delay seen on various Dell laptops (E4310
and Latitude D630) when starting Xorg, reported by Kārlis Miķelsons
on bugs@.

ok stsp@, dcoppa@, shadchin@

10 years agotest dt_min for invalid minute values instead of testing dt_sec twice
jsg [Fri, 25 Apr 2014 09:49:33 +0000 (09:49 +0000)]
test dt_min for invalid minute values instead of testing dt_sec twice
ok bmercer@

10 years agoKill in_localaddr(), one less usage of the global list of IPv4 addresses.
mpi [Fri, 25 Apr 2014 09:44:38 +0000 (09:44 +0000)]
Kill in_localaddr(), one less usage of the global list of IPv4 addresses.

This function is used only once in our tree to optimize the size of the
MSS if the forward address correspond to a host on one of our subnets,
but only if ip.mutdisc is disable, which is not the default!

While here get rid of the "#ifdef RTV_MTU", it is here.

ok henning@, mikeb@, bluhm@

10 years agodon't access a pointer till after the null check
jsg [Fri, 25 Apr 2014 09:41:21 +0000 (09:41 +0000)]
don't access a pointer till after the null check
ok mikeb@

10 years agoSupport running user-defined actions on receipt of snmp traps.
blambert [Fri, 25 Apr 2014 06:57:11 +0000 (06:57 +0000)]
Support running user-defined actions on receipt of snmp traps.

testing sthen@
much man page guidance jmc@
ok reyk@

10 years agobe a bit clearer about what this page is; ok millert schwarze
jmc [Fri, 25 Apr 2014 06:31:48 +0000 (06:31 +0000)]
be a bit clearer about what this page is; ok millert schwarze

10 years agoRemove defined varibles that no longer do anything.
jsing [Fri, 25 Apr 2014 04:10:26 +0000 (04:10 +0000)]
Remove defined varibles that no longer do anything.

ok miod@

10 years agoUse const char *.
jsing [Fri, 25 Apr 2014 04:02:04 +0000 (04:02 +0000)]
Use const char *.

Suggested by miod@

10 years agoKNF fixes
lteo [Fri, 25 Apr 2014 03:38:59 +0000 (03:38 +0000)]
KNF fixes

10 years agoTry to clean the maze of <openssl/bn.h> defines regarding the BN internals.
miod [Thu, 24 Apr 2014 21:31:00 +0000 (21:31 +0000)]
Try to clean the maze of <openssl/bn.h> defines regarding the BN internals.

The intent of this change is to only keep support for two kind of architectures:
- those with 32-bit int and long, and 64-bit long long, where
  ``long * long -> long long'' multiplication routines are available.
- those with 64-bit int and long, and no 128-bit long long type.

This gets rid of the SIXTY_FOUR_BIT_LONG, SIXTY_FOUR_BIT (not the same!),
THIRTY_TWO_BIT, SIXTEEN_BIT and EIGHT_BIT defines.

After this change, the types and defines are as follows:

arch:           64bit           32bit           rationale
BN_LLONG        undefined       defined         defined if l * l -> ll
BN_ULLONG       undefined       u long long     result of BN_LONG * BN_LONG
BN_ULONG        u long          u int           native register size
BN_LONG         long            int             the same, signed
BN_BITS         128             64              size of 2*BN_ULONG in bits
BN_BYTES        8               4               size of 2*BN_ULONG in bytes
BN_BITS2        64              32              BN_BITS / 2

Tested on various 32-bit and 64-bit OpenBSD systems of various endianness.

10 years agoRe-add rcsid, and switch back to our previous descriptions for -iDsym[=value]
sthen [Thu, 24 Apr 2014 21:22:05 +0000 (21:22 +0000)]
Re-add rcsid, and switch back to our previous descriptions for -iDsym[=value]
and -iUsym which jmc and I find a bit easier to understand. ok jmc

10 years agosync
miod [Thu, 24 Apr 2014 21:07:37 +0000 (21:07 +0000)]
sync

10 years agoInstall separate more.1 instead of using a link from less.1.
millert [Thu, 24 Apr 2014 20:56:02 +0000 (20:56 +0000)]
Install separate more.1 instead of using a link from less.1.
Requested by jmc@

10 years agoFix indentation.
mcbride [Thu, 24 Apr 2014 20:44:49 +0000 (20:44 +0000)]
Fix indentation.

10 years agoBring back the SSL_OP_PKCS1_CHECK_* defines (defined to zero, as they already
miod [Thu, 24 Apr 2014 19:54:04 +0000 (19:54 +0000)]
Bring back the SSL_OP_PKCS1_CHECK_* defines (defined to zero, as they already
were), after stumbling upon code (mis)using them in the wild.

10 years agorearrange a bit of code/comments
tedu [Thu, 24 Apr 2014 19:38:22 +0000 (19:38 +0000)]
rearrange a bit of code/comments

10 years agocombine some notes in STANDARDS for consistency;
jmc [Thu, 24 Apr 2014 19:19:28 +0000 (19:19 +0000)]
combine some notes in STANDARDS for consistency;

10 years agodocument the new makewhatis(8)/apropos(1) database format;
schwarze [Thu, 24 Apr 2014 19:08:01 +0000 (19:08 +0000)]
document the new makewhatis(8)/apropos(1) database format;
original idea to have some documentation about this by espie@;
ok jmc@

10 years agono more kinit(1);
jmc [Thu, 24 Apr 2014 19:07:54 +0000 (19:07 +0000)]
no more kinit(1);