openbsd
10 years agoAnnotate wide character routines so they get protected by Wbounded.
martynas [Sat, 3 May 2014 16:19:53 +0000 (16:19 +0000)]
Annotate wide character routines so they get protected by Wbounded.
OK millert@

10 years ago- Provide extended-precision math constants req'd by POSIX
martynas [Sat, 3 May 2014 16:13:03 +0000 (16:13 +0000)]
- Provide extended-precision math constants req'd by POSIX
- Explicitly cast double-precision constants as needed for
FLT_EVAL_METHOD = 2 archs
OK guenther@, ratchov@

10 years agoNuke more defines - we have setvbuf() and _IONBF.
jsing [Sat, 3 May 2014 16:03:54 +0000 (16:03 +0000)]
Nuke more defines - we have setvbuf() and _IONBF.

ok deraadt@

10 years agoKNF.
jsing [Sat, 3 May 2014 15:50:24 +0000 (15:50 +0000)]
KNF.

10 years agoInitial version of a base64 regress.
jsing [Sat, 3 May 2014 15:07:46 +0000 (15:07 +0000)]
Initial version of a base64 regress.

10 years agomore tweaking; ok sthen
jmc [Sat, 3 May 2014 14:13:52 +0000 (14:13 +0000)]
more tweaking; ok sthen

10 years agoNoncharacters 0xFFFE and 0xFFFF don't render a UTF-8 string invalid
stsp [Sat, 3 May 2014 14:10:20 +0000 (14:10 +0000)]
Noncharacters 0xFFFE and 0xFFFF don't render a UTF-8 string invalid
so stop rejecting them in our citrus UTF-8 parser.

This is a common misinterpretation of the Unicode standard which resulted
in a corrigendum last year: http://www.unicode.org/versions/corrigendum9.html

Pointed out by jilles@freebsd (via pfg@freebsd), thanks!

10 years agoAdd #ifndef NO_PRINTF_PERCENT_N. Since we are fully standardized, we
deraadt [Sat, 3 May 2014 12:36:45 +0000 (12:36 +0000)]
Add #ifndef NO_PRINTF_PERCENT_N.  Since we are fully standardized, we
don't use disable %n ourselves.  But Google's Android libc is based
on our libc....  Giving them an easy knob to disable this dangerous
feature easily make their job easier without making our job any harder.
Request from Elliott @ google

10 years agoEnable assembler bits for BN (Montgomery), SHA1 and SHA256.
miod [Sat, 3 May 2014 11:41:05 +0000 (11:41 +0000)]
Enable assembler bits for BN (Montgomery), SHA1 and SHA256.
Assembler bits for AES remain commented out as they run slower than the C code.

10 years agoDetect Altivec support with the machdep.altivec sysctl rather than setmp and
miod [Sat, 3 May 2014 11:39:46 +0000 (11:39 +0000)]
Detect Altivec support with the machdep.altivec sysctl rather than setmp and
a SIGILL handler.
Do not attempt to detect and use a 64-bit FPU yet.

10 years agoremove unused variables
chl [Sat, 3 May 2014 11:11:15 +0000 (11:11 +0000)]
remove unused variables

ok henning@

10 years agodrm/radeon: call drm_edid_to_eld when we update the edid
jsg [Sat, 3 May 2014 05:26:47 +0000 (05:26 +0000)]
drm/radeon: call drm_edid_to_eld when we update the edid

From Alex Deucher
7752811a7d6be680e8f1a87da18e3670633981ee in ubuntu 3.8
16086279353cbfecbb3ead474072dced17b97ddc in mainline linux

10 years agoSkip intel_crt_init for Dell XPS 8700
jsg [Sat, 3 May 2014 05:22:38 +0000 (05:22 +0000)]
Skip intel_crt_init for Dell XPS 8700

From Giacomo Comes
95849485beb5e665d56269cd05c3c19df399fb20 in ubuntu 3.8
10b6ee4a87811a110cb01eaca01eb04da6801baf in mainline linux

10 years agodrm/i915/tv: fix gen4 composite s-video tv-out
jsg [Sat, 3 May 2014 05:19:37 +0000 (05:19 +0000)]
drm/i915/tv: fix gen4 composite s-video tv-out

From Jani Nikula
1f2561bd1e2c46145c643673b662c099d2074936 in ubuntu 3.8
e1f23f3dd817f53f622e486913ac662add46eeed in mainline linux

10 years agodrm/i915: quirk invert brightness for Acer Aspire 5336
jsg [Sat, 3 May 2014 05:11:30 +0000 (05:11 +0000)]
drm/i915: quirk invert brightness for Acer Aspire 5336

From Jani Nikula
083bda2f1130f185eccdf7c5cbbdb53fa88429b1 in ubuntu 3.8
0f540c3a7cfb91c9d7a19eb0c95c24c5de1197d5 in mainline linux

10 years agoremove unused variable
chl [Sat, 3 May 2014 00:27:19 +0000 (00:27 +0000)]
remove unused variable

ok krw@

10 years agoremove unused variable
chl [Fri, 2 May 2014 23:17:29 +0000 (23:17 +0000)]
remove unused variable

ok otto@ krw@

10 years agoCorrectly enable assembler Montgomery routine.
miod [Fri, 2 May 2014 22:23:00 +0000 (22:23 +0000)]
Correctly enable assembler Montgomery routine.

10 years agoMore use of 64-bit registers which needs to be disabled under OpenBSD.
miod [Fri, 2 May 2014 22:22:27 +0000 (22:22 +0000)]
More use of 64-bit registers which needs to be disabled under OpenBSD.

10 years ago- Adjust pthread_stackseg_np to return the page aligned addressable stack
kurt [Fri, 2 May 2014 21:58:51 +0000 (21:58 +0000)]
- Adjust pthread_stackseg_np to return the page aligned addressable stack
range. okay kettenis@, guenther@, deraadt@

10 years agoCorrectly enable assembler Montgomery routine.
miod [Fri, 2 May 2014 21:55:31 +0000 (21:55 +0000)]
Correctly enable assembler Montgomery routine.

10 years agoNo really, pid 2 isn't special
guenther [Fri, 2 May 2014 20:20:12 +0000 (20:20 +0000)]
No really, pid 2 isn't special

10 years agoReenable assembler code for SHA384 and SHA512 now that it no longer miscomputes
miod [Fri, 2 May 2014 20:08:10 +0000 (20:08 +0000)]
Reenable assembler code for SHA384 and SHA512 now that it no longer miscomputes
things. Worth doing as it's twice faster than the C code.

10 years agoThe assembly sha512 code detects at runtime if it is running on a 64-bit
miod [Fri, 2 May 2014 19:59:16 +0000 (19:59 +0000)]
The assembly sha512 code detects at runtime if it is running on a 64-bit
processor (PA2.0) and, if so, switches to 64-bit code.

However, when running under a 32-bit OpenBSD/hppa kernel, there is no guarantee
that the upper part of the registers will be preserved accross context switches
(or even userland->kernel boundaries), which causes this code to fail.

Wrap the generated code within #ifndef __OpenBSD__ in that case, to avoid
using the 64-bit code completely. (OpenBSD/hppa64, once stable, will not be
affected by this)

10 years agoSimple sha{224,256,384,512} test using the FIPS 180-2 test vectors available
miod [Fri, 2 May 2014 19:27:04 +0000 (19:27 +0000)]
Simple sha{224,256,384,512} test using the FIPS 180-2 test vectors available
from http://csrc.nist.gov/groups/ST/toolkit/examples.html

10 years agoChange BLKDEV_IOSIZE to PAGE_SIZE
deraadt [Fri, 2 May 2014 19:03:06 +0000 (19:03 +0000)]
Change BLKDEV_IOSIZE to PAGE_SIZE
ok beck miod

10 years agoDisable assembler version of SHA512 for now, it produces wrong results.
miod [Fri, 2 May 2014 18:21:39 +0000 (18:21 +0000)]
Disable assembler version of SHA512 for now, it produces wrong results.

10 years agoAdd ChaCha as a cipher.
jsing [Fri, 2 May 2014 18:06:12 +0000 (18:06 +0000)]
Add ChaCha as a cipher.

ok beck@ miod@

10 years agoremove crazy #undefs; ok jsing
deraadt [Fri, 2 May 2014 17:06:46 +0000 (17:06 +0000)]
remove crazy #undefs; ok jsing

10 years agoNuke OPENSSL_NO_SOCK since any half sane operating system has sockets.
jsing [Fri, 2 May 2014 17:05:41 +0000 (17:05 +0000)]
Nuke OPENSSL_NO_SOCK since any half sane operating system has sockets.

ok beck@

10 years agoSort and group includes. We also do not need to include openssl/evp.h more
jsing [Fri, 2 May 2014 16:58:12 +0000 (16:58 +0000)]
Sort and group includes. We also do not need to include openssl/evp.h more
than once.

ok beck@

10 years agoSort function prototypes and group/sort entries within the functions array.
jsing [Fri, 2 May 2014 16:55:38 +0000 (16:55 +0000)]
Sort function prototypes and group/sort entries within the functions array.

ok beck@

10 years agoAdd regression tests to relayd to cover a few key types/actions combinations.
andre [Fri, 2 May 2014 14:50:26 +0000 (14:50 +0000)]
Add regression tests to relayd to cover a few key types/actions combinations.

ok reyk

10 years agoImproves this test to be more strict on the filter action test. Now it
andre [Fri, 2 May 2014 14:13:41 +0000 (14:13 +0000)]
Improves this test to be more strict on the filter action test. Now it
dispatches 4 requests from the client and checks if the server receives only 3.
Previous functionality kept.

ok reyk

10 years agospelling; Denis Fondras
deraadt [Fri, 2 May 2014 14:12:05 +0000 (14:12 +0000)]
spelling; Denis Fondras

10 years agoMake acpiprt(4) handle interrupts with non-standard polarity and trigger mode
kettenis [Fri, 2 May 2014 14:10:15 +0000 (14:10 +0000)]
Make acpiprt(4) handle interrupts with non-standard polarity and trigger mode
correctly.

Tested by nobody.

10 years agoExtends relayd regress-tests framework to support tweaks from test-code: tables
andre [Fri, 2 May 2014 14:10:03 +0000 (14:10 +0000)]
Extends relayd regress-tests framework to support tweaks from test-code: tables
definition on relayd.conf, customization of client/server cookies,
client/server headers and request path.

ok reyk

10 years agoMake acpi_mutex_acquire/release actually grab the global lock if it should.
kettenis [Fri, 2 May 2014 14:04:50 +0000 (14:04 +0000)]
Make acpi_mutex_acquire/release actually grab the global lock if it should.
Get rid of the fake global lock code that these functions were using before.

ok pirofti@, mlarkin@

10 years ago'for (part == 0; ...)' is not the same as 'for(part = 0; ...)'.
krw [Fri, 2 May 2014 12:43:10 +0000 (12:43 +0000)]
'for (part == 0; ...)' is not the same as 'for(part = 0; ...)'.

Should fix mysterious crashes when twiddling mount points. Too
much Marrakesh sun.

Pointed out by Owain G. Ainsworth. Thanks!

10 years agoKill annoying and useless emacs local variable. ok mikeb@
jca [Fri, 2 May 2014 10:40:26 +0000 (10:40 +0000)]
Kill annoying and useless emacs local variable.  ok mikeb@

The variable would have no effect unless you use hilit19.el from
emacs21, and even there the specified value has not been kept up to date
with the file growth.

10 years agoThe page daemon no longer has a fixed PID. ok kettenis@ jmc@
jca [Fri, 2 May 2014 09:50:32 +0000 (09:50 +0000)]
The page daemon no longer has a fixed PID.  ok kettenis@ jmc@

10 years agoAdd missing $ on OpenBSD cvs tags, ok djm
andre [Fri, 2 May 2014 09:41:32 +0000 (09:41 +0000)]
Add missing $ on OpenBSD cvs tags, ok djm

10 years agoNo need to figure out the area spanned by .got in _dl_md_reloc(); only
miod [Fri, 2 May 2014 04:55:48 +0000 (04:55 +0000)]
No need to figure out the area spanned by .got in _dl_md_reloc(); only
_dl_md_reloc_boot() needs to compute this.

10 years agorevert __bounded change; it causes way more problems for portable than
djm [Fri, 2 May 2014 03:27:54 +0000 (03:27 +0000)]
revert __bounded change; it causes way more problems for portable than
it solves; pointed out by dtucker@

10 years agouse the test_helper fuzzer rather than the hand-rolled code that
djm [Fri, 2 May 2014 02:54:00 +0000 (02:54 +0000)]
use the test_helper fuzzer rather than the hand-rolled code that
predates it

10 years agomake the fuzzer seed const to make it clear that it is never modified
djm [Fri, 2 May 2014 02:53:37 +0000 (02:53 +0000)]
make the fuzzer seed const to make it clear that it is never modified

10 years agoEnable use of assembly code for AES, BN (Montgomery), SHA1, SHA256 and SHA512.
miod [Thu, 1 May 2014 22:27:59 +0000 (22:27 +0000)]
Enable use of assembly code for AES, BN (Montgomery), SHA1, SHA256 and SHA512.
RC4 assembler code is not used, as it runs about 35% slower than the C code.

10 years agoDo not output SOM-specific directives.
miod [Thu, 1 May 2014 22:26:21 +0000 (22:26 +0000)]
Do not output SOM-specific directives.

10 years agoRemove unreferenced OPENSSL_instrument_bus and OPENSSL_instrument_bus2 routines.
miod [Thu, 1 May 2014 22:25:13 +0000 (22:25 +0000)]
Remove unreferenced OPENSSL_instrument_bus and OPENSSL_instrument_bus2 routines.

10 years agoMake the implicit `l' in `impicit' explicit.
miod [Thu, 1 May 2014 21:10:13 +0000 (21:10 +0000)]
Make the implicit `l' in `impicit' explicit.

10 years agoEnable use of the assembly code for BN (Montgomery) and SHA1.
miod [Thu, 1 May 2014 20:42:59 +0000 (20:42 +0000)]
Enable use of the assembly code for BN (Montgomery) and SHA1.

10 years agoFix include filename to get register name aliases under BSD
miod [Thu, 1 May 2014 20:41:56 +0000 (20:41 +0000)]
Fix include filename to get register name aliases under BSD

10 years agoPass -Werror in the !BN_LLONG !BN_UMULT_LOHI !BN_UMULT_HIGH case.
miod [Thu, 1 May 2014 20:40:55 +0000 (20:40 +0000)]
Pass -Werror in the !BN_LLONG !BN_UMULT_LOHI !BN_UMULT_HIGH case.

10 years agoEnable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.
miod [Thu, 1 May 2014 20:15:06 +0000 (20:15 +0000)]
Enable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.

10 years agodead meat
miod [Thu, 1 May 2014 19:06:46 +0000 (19:06 +0000)]
dead meat

10 years agooptions first, then pager commands; also remove one non-standard Sh;
jmc [Thu, 1 May 2014 18:59:15 +0000 (18:59 +0000)]
options first, then pager commands; also remove one non-standard Sh;

10 years agoSTANDARDS is no longer relevant to this page, so remove it; while here,
jmc [Thu, 1 May 2014 18:53:22 +0000 (18:53 +0000)]
STANDARDS is no longer relevant to this page, so remove it; while here,
zap some trailing whitespace introduced in recent update

10 years agothe beginning of removing more details from this page, since we now have
jmc [Thu, 1 May 2014 18:50:36 +0000 (18:50 +0000)]
the beginning of removing more details from this page, since we now have
a separate more(1): it's a big page so i'm doing it in bits.

in this commit, remove more stuff from SYNOPSIS, remove some cleverness
from SYNOPSIS, and use consistent argument names;

10 years agochange some argument names in order to give some consistency between traceroute
jmc [Thu, 1 May 2014 18:46:01 +0000 (18:46 +0000)]
change some argument names in order to give some consistency between traceroute
and traceroute6; i also fudged the formatting to allow SYNOPSIS to display a
bit nicer, and for usage() to look like SYNOPSIS;

ok florian

10 years agotweak previous; ok sthen
jmc [Thu, 1 May 2014 18:41:59 +0000 (18:41 +0000)]
tweak previous; ok sthen

10 years agoupdate currency exchange rates;
jmc [Thu, 1 May 2014 18:41:03 +0000 (18:41 +0000)]
update currency exchange rates;

10 years agosync
deraadt [Thu, 1 May 2014 17:10:47 +0000 (17:10 +0000)]
sync

10 years ago+ e_chacha.c, and bump minor
miod [Thu, 1 May 2014 17:08:57 +0000 (17:08 +0000)]
+ e_chacha.c, and bump minor

10 years agoUpdate with recently added objects.
jsing [Thu, 1 May 2014 16:52:21 +0000 (16:52 +0000)]
Update with recently added objects.

ok miod@

10 years agoKNF.
jsing [Thu, 1 May 2014 16:50:36 +0000 (16:50 +0000)]
KNF.

10 years agoExtend fread() and fwrite() to check for integer overflow, in which case
deraadt [Thu, 1 May 2014 16:40:36 +0000 (16:40 +0000)]
Extend fread() and fwrite() to check for integer overflow, in which case
errno EOVERFLOW is returned and error is set on the FILE.
ok kettenis miod beck

10 years agoNuke unused evptests.txt - the real one is over in regress.
jsing [Thu, 1 May 2014 16:07:13 +0000 (16:07 +0000)]
Nuke unused evptests.txt - the real one is over in regress.

ok miod@

10 years agoProvide an EVP implementation for ChaCha.
jsing [Thu, 1 May 2014 16:06:24 +0000 (16:06 +0000)]
Provide an EVP implementation for ChaCha.

ok miod@

10 years agoMove RSA keys from "lka" to a new dedicated "ca" process because lka
reyk [Thu, 1 May 2014 15:50:20 +0000 (15:50 +0000)]
Move RSA keys from "lka" to a new dedicated "ca" process because lka
is handling some async requests and shouldn't be busy with sync RSA.

ok gilles@

10 years agoFix perl arch directory name.
miod [Thu, 1 May 2014 15:04:31 +0000 (15:04 +0000)]
Fix perl arch directory name.

10 years agoRevert 1.49 (bad merge with free dejavu)
miod [Thu, 1 May 2014 15:00:19 +0000 (15:00 +0000)]
Revert 1.49 (bad merge with free dejavu)

10 years agosync
deraadt [Thu, 1 May 2014 14:47:47 +0000 (14:47 +0000)]
sync

10 years agox86-64 ABI requires arrays greater than 16 bytes to be aligned to
martynas [Thu, 1 May 2014 14:15:42 +0000 (14:15 +0000)]
x86-64 ABI requires arrays greater than 16 bytes to be aligned to
16byte boundary.  However, GCC 16-byte aligns arrays of >=16 BITS,
not BYTES.

This diff improves bug detectability for code which has local arrays
of [16 .. 127] bits:  in those cases SSP will now detect even 1-byte
overflows.

OK kettenis@.  Tested in snaps for a week.

10 years agofixup SoC name, as it's am335x, not am334x.
jasper [Thu, 1 May 2014 13:26:34 +0000 (13:26 +0000)]
fixup SoC name, as it's am335x, not am334x.

ok bmercer@

10 years agoAdd ChaCha to libcrypto, based on djb's public domain implementation.
jsing [Thu, 1 May 2014 13:15:22 +0000 (13:15 +0000)]
Add ChaCha to libcrypto, based on djb's public domain implementation.

ok deraadt@

10 years ago- add 'sunxi' to list of miniroot files
jasper [Thu, 1 May 2014 11:48:47 +0000 (11:48 +0000)]
- add 'sunxi' to list of miniroot files
- add list of supported 'sunxi' and 'imx' hardware

ok bmercer@

10 years agoAdd support for the french ANSSI FRP256v1 elliptic curve.
miod [Thu, 1 May 2014 11:29:18 +0000 (11:29 +0000)]
Add support for the french ANSSI FRP256v1 elliptic curve.

While not to be considered a good choice of elliptic curve (refer to
http://safecurves.cr.yp.to/ for more details), it is nevertheless deemed a
good decision to allow developers with requirements to use such a curve,
to be able to do this via a crypto library allowing for much better choices
to be made, without having to change (much of) their code to get better crypto.

ok beck@ deraadt@

10 years agoAdd Brainpool elliptic curves. From OpenSSL RT#2239 via ${DAYJOB}.
miod [Thu, 1 May 2014 11:13:26 +0000 (11:13 +0000)]
Add Brainpool elliptic curves. From OpenSSL RT#2239 via ${DAYJOB}.
Be sure to rerun `make includes' after updating.
ok tedu@ beck@ deraadt@

10 years agoRemove fips_md_init() macro indirection for digest algorithms, used by the
miod [Thu, 1 May 2014 11:11:37 +0000 (11:11 +0000)]
Remove fips_md_init() macro indirection for digest algorithms, used by the
OpenSSL FIPS module to prevent forbidden digests to be allowed.
No functional change but readability.

ok deraadt@

10 years agoNo longer mention the tools/ directory, which content is irrelevant those days;
miod [Thu, 1 May 2014 10:35:47 +0000 (10:35 +0000)]
No longer mention the tools/ directory, which content is irrelevant those days;
forgotten during previous cleanups.

10 years agomove pointer use to after a NULL pointer check
jsg [Thu, 1 May 2014 10:25:44 +0000 (10:25 +0000)]
move pointer use to after a NULL pointer check
ok dlg@

10 years agoCorrect a test for X509_get_notAfter() failing or returning
jsg [Thu, 1 May 2014 07:35:57 +0000 (07:35 +0000)]
Correct a test for X509_get_notAfter() failing or returning
an unsupported time type when passing data to keynote.

Problem introduced by angelos in 1.41 though the code
has been reformatted a few times since then.

ok otto@ miod@

10 years agowith some random chance, swizzle the current page for the pool to avoid
tedu [Thu, 1 May 2014 04:25:02 +0000 (04:25 +0000)]
with some random chance, swizzle the current page for the pool to avoid
fully deterministic behavior. ok deraadt

10 years agonibbles aren't enough random, use bytes. does a better job of picking
tedu [Thu, 1 May 2014 04:08:13 +0000 (04:08 +0000)]
nibbles aren't enough random, use bytes. does a better job of picking
a free chunk at random and may allow to increase delayed chunk array.
ok otto

10 years agofixed some debug messages
sasano [Thu, 1 May 2014 03:45:08 +0000 (03:45 +0000)]
fixed some debug messages
ok by dcoppa@

10 years agofirst cut at documenting the change to malloc doing a partial 'junk' by
sthen [Wed, 30 Apr 2014 23:28:05 +0000 (23:28 +0000)]
first cut at documenting the change to malloc doing a partial 'junk' by
default and the new 'j' option to disable this; ok jmc@

10 years agoMake sure we flush discarded pages even if the number of hash buckets doesn't
kettenis [Wed, 30 Apr 2014 19:25:14 +0000 (19:25 +0000)]
Make sure we flush discarded pages even if the number of hash buckets doesn't
change.  From Pedro Martelletto via bitrig.

ok beck@, krw@

10 years agoUMAC can use our local fallback implementation of AES when OpenSSL isn't
naddy [Wed, 30 Apr 2014 19:07:48 +0000 (19:07 +0000)]
UMAC can use our local fallback implementation of AES when OpenSSL isn't
available.  Glue code straight from Ted Krovetz's original umac.c.
ok markus@

10 years agoAssigning list pointers doesn't really work with doubly linked lists. Use
kettenis [Wed, 30 Apr 2014 16:07:31 +0000 (16:07 +0000)]
Assigning list pointers doesn't really work with doubly linked lists.  Use
a remove-and-insert-all-items approach for now and remove the comments that
suggest manipulating list pointers.  Pointed out by Pedro Martelletto.

ok beck@, krw@, mikeb@

10 years agoPreserve intended chronological order of leases in
krw [Wed, 30 Apr 2014 15:11:00 +0000 (15:11 +0000)]
Preserve intended chronological order of leases in
dhclient.leases.<if> files by writing out in reverse the
reverse-chronological-order TAILQ client->leases.

Found while trying to restore static lease functionality.

10 years agoWrite last disk sector, not last 512-byte block, when testing validity
krw [Wed, 30 Apr 2014 14:28:48 +0000 (14:28 +0000)]
Write last disk sector, not last 512-byte block, when testing validity
of new partition limit.

Fixes growfs on 4K-sector disks.

Reported by and fix tested by David Vasek via misc@.

10 years agoAvoid a potential null pointer dereference by checking that we actually
jsing [Wed, 30 Apr 2014 13:51:58 +0000 (13:51 +0000)]
Avoid a potential null pointer dereference by checking that we actually
managed to allocate a fragment, before trying to memcpy data into it.

ok miod@

10 years agoFirst pass at removing win64 support from the assembly generating Perl
jsing [Wed, 30 Apr 2014 13:40:02 +0000 (13:40 +0000)]
First pass at removing win64 support from the assembly generating Perl
scripts. We certainly do not need an identical copy of the win64
exception handler in each script (surely one copy would be sufficient).

ok miod@

10 years agowhen doing opportunistic TLS, do not only downgrade during negotiation, but
gilles [Wed, 30 Apr 2014 12:49:54 +0000 (12:49 +0000)]
when doing opportunistic TLS, do not only downgrade during negotiation, but
also downgrade if a TLS error happens during the session.

ok eric@ who helped me with this

10 years agoRemove carp_seroute() it no longer does anything useful but mess with
mpi [Wed, 30 Apr 2014 10:04:33 +0000 (10:04 +0000)]
Remove carp_seroute() it no longer does anything useful but mess with
your IPv4 routes.

mcbride@ says that this function has been introduced in order to be able
to reach the MASTER node from a BACKUP node using the CARP address. The
reasons are:

1) For troubleshooting, so I can ping or otherwise monitor the MASTER
host.

2) In some cases it's undesirable (or even not possible) to run
services on other IP addresses. For example, services that only allow
you to configure 1 listening IP, or services where you wish to avoid
users connecting to anything but the MASTER server.

Sadly this function becames a horrible hack.  So if somebody thinks the
reasons explained before justify such logic, feel free to submit a
correct diff.

ok bluhm@, henning@, mikeb@

10 years agowhen using maildir, do not create automatically create folders to match tag
gilles [Wed, 30 Apr 2014 09:17:29 +0000 (09:17 +0000)]
when using maildir, do not create automatically create folders to match tag
in email address (ie: gilles+tag => ~/Maildir/.tag), instead use the folder
if it already exists and deliver to the mail Maildir otherwise.

ok eric@ and chl@

10 years agoThe RSA engine (used by pony) has to wait for a response from the
reyk [Wed, 30 Apr 2014 08:23:42 +0000 (08:23 +0000)]
The RSA engine (used by pony) has to wait for a response from the
privileged process (lka) and receive the imsgs in a while loop
synchronously.  But the lka also sends other imsgs (DNS etc.) that can
still be queued up in the buffer when waiting for the RSA response.
This only happens under load with many concurrent connections.  For
now, we just call the pony imsg handler for non-RSA imsgs that are
already in the buffer.

ok gilles@ eric@ blambert@

10 years agoreplace vis-ified output with human-readable strings
blambert [Wed, 30 Apr 2014 07:01:34 +0000 (07:01 +0000)]
replace vis-ified output with human-readable strings
for a few OIDs, with a framework in place to add more
as the mood strikes

ok reyk@ sthen@

10 years agoformat string fixes for (u)int64 vars
sf [Wed, 30 Apr 2014 06:24:23 +0000 (06:24 +0000)]
format string fixes for (u)int64 vars

ok kettenis@

10 years agotidy up SYNOPSIS, usage() and the options list; ok sthen
jmc [Wed, 30 Apr 2014 06:06:09 +0000 (06:06 +0000)]
tidy up SYNOPSIS, usage() and the options list; ok sthen