]> gitweb.factorcode.org Git - factor.git/log
factor.git
8 years agowindows.crypt32: adding platforms.txt.
John Benediktsson [Sun, 13 Mar 2016 14:57:11 +0000 (07:57 -0700)]
windows.crypt32: adding platforms.txt.

8 years agowindows.types: fix using
Doug Coleman [Sun, 13 Mar 2016 09:53:22 +0000 (01:53 -0800)]
windows.types: fix using

8 years agoio.sockets.secure.openssl: Fix docs.
Doug Coleman [Sun, 13 Mar 2016 09:45:52 +0000 (01:45 -0800)]
io.sockets.secure.openssl: Fix docs.

8 years agoopenssl.libssl: Adding some functions to work with certificates.
Doug Coleman [Sun, 13 Mar 2016 09:34:22 +0000 (01:34 -0800)]
openssl.libssl: Adding some functions to work with certificates.

8 years agowindows: Adding crypt32 api for SSL certificate loading.
Doug Coleman [Sun, 13 Mar 2016 09:33:40 +0000 (01:33 -0800)]
windows: Adding crypt32 api for SSL certificate loading.

8 years agowindows.types: LPSTR is a utf8 string. Add LPTCSTR.
Doug Coleman [Sun, 13 Mar 2016 09:32:05 +0000 (01:32 -0800)]
windows.types: LPSTR is a utf8 string. Add LPTCSTR.

8 years agoFUEL: fix factor-symbol-at-point so it counts " as a symbol character
Björn Lindqvist [Sun, 13 Mar 2016 07:36:31 +0000 (08:36 +0100)]
FUEL: fix factor-symbol-at-point so it counts " as a symbol character

8 years agocompiler.codegen.relocation.tests: fix test so it works on windows too
Björn Lindqvist [Sun, 13 Mar 2016 06:37:49 +0000 (07:37 +0100)]
compiler.codegen.relocation.tests: fix test so it works on windows too

8 years agoDocs: doc updates
Björn Lindqvist [Sun, 13 Mar 2016 06:37:20 +0000 (07:37 +0100)]
Docs: doc updates

8 years agoio.sockets.secure.openssl: Fix subject-name-match? for wildcard domains.
Doug Coleman [Sun, 13 Mar 2016 04:18:19 +0000 (20:18 -0800)]
io.sockets.secure.openssl: Fix subject-name-match? for wildcard domains.
Also remove duplicate names before checking.

8 years agoio.sockets.secure: add SNI support for Windows
Benjamin Pollack [Sat, 12 Mar 2016 14:27:31 +0000 (09:27 -0500)]
io.sockets.secure: add SNI support for Windows

M: secure ((client)) is identical between Unix and Windows, so this probably
could be moved out of the platform-specific vocab, but doing it sanely would
require a refactor I'm not excited about, so punting on that for now.

Fixes #1551

8 years agoxml.write: Fix xml for spacing change.
Doug Coleman [Sat, 12 Mar 2016 06:29:31 +0000 (22:29 -0800)]
xml.write: Fix xml for spacing change.

8 years agoxml.writer: do not include meaningless extra whitespace in doctype
Benjamin Pollack [Fri, 11 Mar 2016 21:18:29 +0000 (16:18 -0500)]
xml.writer: do not include meaningless extra whitespace in doctype

This is theoretically merely annoying, but since we're using the XML vocab in
tons of places as an overenthusiastic HTML generator, and HTML5 technically
mandates that the first token needs to be `<!DOCTYPE html>` full-stop, this had
to get fixed.

8 years agochloe/html: switch to HTML5 templates
Benjamin Pollack [Fri, 11 Mar 2016 16:16:18 +0000 (11:16 -0500)]
chloe/html: switch to HTML5 templates

Since XHTML is dead, and HTML5 isn't, switch to HTML5 templates for Chloe and
other key parts of our HTML subsystems. As part of this, I went through and
added DOCTYPE declarations to some of our examples as well.

8 years agochloe: make self-closing tags support more idiomatic Factor
Benjamin Pollack [Fri, 11 Mar 2016 18:12:26 +0000 (13:12 -0500)]
chloe: make self-closing tags support more idiomatic Factor

8 years agocommand-line: document memory sizes as mebibytes/kibibytes
Benjamin Pollack [Fri, 11 Mar 2016 17:20:39 +0000 (12:20 -0500)]
command-line: document memory sizes as mebibytes/kibibytes

8 years agochloe: ensure self-closing tags are self-closing
Benjamin Pollack [Fri, 11 Mar 2016 16:01:22 +0000 (11:01 -0500)]
chloe: ensure self-closing tags are self-closing

This gets us much closer to HTML5 compatibility, while not breaking the
existing XHTML functionality. (Indeed, the entire reason this is necessary is
that XHTML, being an XML derivative, treats `<foo></foo>` and `<foo />`
equivalently, whereas HTML5 does not.)

8 years agocompiler.graphviz: this vocab can be removed I think
Björn Lindqvist [Fri, 11 Mar 2016 09:01:27 +0000 (10:01 +0100)]
compiler.graphviz: this vocab can be removed I think

The compiler.cfg.graphviz vocab implements all its features and is more complete.

8 years agographviz.dot: fix escaping logic
Björn Lindqvist [Fri, 11 Mar 2016 08:44:42 +0000 (09:44 +0100)]
graphviz.dot: fix escaping logic

It used escape the escape char \, but it shouldn't do that because it
leads to double escaping.

8 years agoFUEL: improved fontlocking
Björn Lindqvist [Fri, 11 Mar 2016 06:36:23 +0000 (07:36 +0100)]
FUEL: improved fontlocking

INTERSECTION: and SPECIALIZED-ARRAYS: should be highlighted better and
REQUIRE: and REQUIRES: is old removed syntax

8 years agomath.vectors.simd.intrinsics: the syntax for declaring simd intrinsics
Björn Lindqvist [Fri, 11 Mar 2016 06:11:47 +0000 (07:11 +0100)]
math.vectors.simd.intrinsics: the syntax for declaring simd intrinsics
isn't needed so it can be removed afaict

8 years agoBuild: never dynlink with gui libs
Björn Lindqvist [Fri, 11 Mar 2016 04:17:04 +0000 (05:17 +0100)]
Build: never dynlink with gui libs

8 years agoio.sockets.tests: these needs to be conditional, in case you are ipv4 only
Björn Lindqvist [Thu, 10 Mar 2016 03:11:23 +0000 (04:11 +0100)]
io.sockets.tests: these needs to be conditional, in case you are ipv4 only

8 years agocompiler.*: new tests
Björn Lindqvist [Wed, 9 Mar 2016 07:53:16 +0000 (08:53 +0100)]
compiler.*: new tests

8 years agocompiler.cfg.*: new doc files
Björn Lindqvist [Wed, 9 Mar 2016 07:52:48 +0000 (08:52 +0100)]
compiler.cfg.*: new doc files

8 years agocompiler.cfg.intrinsics.fixnum: more docs and tests
Björn Lindqvist [Tue, 8 Mar 2016 15:33:08 +0000 (16:33 +0100)]
compiler.cfg.intrinsics.fixnum: more docs and tests

8 years agocompiler.cfg.builder.blocks: removes assignments to basic-block variable
Björn Lindqvist [Tue, 8 Mar 2016 15:30:25 +0000 (16:30 +0100)]
compiler.cfg.builder.blocks: removes assignments to basic-block variable

Now it isn't used at all in the cfg creation step.

8 years agocompiler.cfg.*: big changes which removes the last basic-block uses
Björn Lindqvist [Tue, 8 Mar 2016 13:38:48 +0000 (14:38 +0100)]
compiler.cfg.*: big changes which removes the last basic-block uses

All intrinsic code generating words signatures are changed from ( node
-- ) to ( block node -- block' ) so the current block is now always
passed on the stack.

8 years agocompiler.cfg.*: more refactoring to remove basic-block get:s
Björn Lindqvist [Mon, 7 Mar 2016 05:40:27 +0000 (06:40 +0100)]
compiler.cfg.*: more refactoring to remove basic-block get:s

Now almost all words pass around the current basic block on the
stack. Left is updating all intrinsics.

8 years agocompiler.cfg.*: changes to remove basic-block variable
Björn Lindqvist [Mon, 7 Mar 2016 03:42:28 +0000 (04:42 +0100)]
compiler.cfg.*: changes to remove basic-block variable

The emit-node generics signature is changed to ( block node -- block' )
so that it always returns the next block to operate on. Signature for a
lot of related words are changed similarily. Now there is only a few
basic-block usages left.

8 years agocompiler.cfg.*: changed generic emit-node to take the current block as
Björn Lindqvist [Sat, 5 Mar 2016 07:30:00 +0000 (08:30 +0100)]
compiler.cfg.*: changed generic emit-node to take the current block as
stack parameter

The idea is to eventually completely remove the basic-block dynamic
variable from cfg construction.

8 years agocompiler.units: changes dynamic vars so that they are stack parameters instead
Björn Lindqvist [Tue, 1 Mar 2016 17:04:12 +0000 (18:04 +0100)]
compiler.units: changes dynamic vars so that they are stack parameters instead

8 years agoMake VSC work on OS X again 1552/head
Benjamin Pollack [Wed, 9 Mar 2016 18:23:50 +0000 (13:23 -0500)]
Make VSC work on OS X again

`-r` isn't an argument to `open`, and `-n` seems exactly the opposite of what
we want in most circumstances.

8 years agotools.deploy: increase sizes for linux32
Doug Coleman [Wed, 9 Mar 2016 00:36:45 +0000 (16:36 -0800)]
tools.deploy: increase sizes for linux32

8 years agomath.statistics, add docs for cum-sum0, add cum-product1 for symmetry
Jon Harper [Tue, 8 Mar 2016 14:05:37 +0000 (15:05 +0100)]
math.statistics, add docs for cum-sum0, add cum-product1 for symmetry

8 years agosequences-docs, improve consistency
Jon Harper [Tue, 8 Mar 2016 14:04:57 +0000 (15:04 +0100)]
sequences-docs, improve consistency

8 years agorename math.statistics:cum-map to sequences:accumulate*
Jon Harper [Tue, 8 Mar 2016 14:04:35 +0000 (15:04 +0100)]
rename math.statistics:cum-map to sequences:accumulate*

8 years agowindows openssl, libtls: Use the libressl dlls for SSL.
Doug Coleman [Tue, 8 Mar 2016 20:48:45 +0000 (12:48 -0800)]
windows openssl, libtls: Use the libressl dlls for SSL.
http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
http://downloads.factorcode.org/dlls/
libcrypt-37.dll
libssl-38.dll
libtls-10.dll

8 years agomath.cpp: Fix two warnings. Fixes #1549.
Doug Coleman [Tue, 8 Mar 2016 18:01:50 +0000 (10:01 -0800)]
math.cpp: Fix two warnings. Fixes #1549.

8 years agoio.sockets: Default make-sockaddr-outgoing to make-sockaddr.
Doug Coleman [Tue, 8 Mar 2016 17:21:28 +0000 (09:21 -0800)]
io.sockets: Default make-sockaddr-outgoing to make-sockaddr.

8 years agomath.parser: simplify fix-float (from 16c93c78741)
Jon Harper [Wed, 7 Oct 2015 22:08:34 +0000 (00:08 +0200)]
math.parser: simplify fix-float (from 16c93c78741)

8 years agoformatting, format numbers with C locale and document that it's english only
Jon Harper [Sun, 5 Jul 2015 19:53:14 +0000 (21:53 +0200)]
formatting, format numbers with C locale and document that it's english only

8 years agoprimitive_format_float, return empty string on bad locale instead of C++ exception
Jon Harper [Sun, 5 Jul 2015 19:52:41 +0000 (21:52 +0200)]
primitive_format_float, return empty string on bad locale instead of C++ exception

8 years agoprettyprinter, locale independant float printing
Jon Harper [Mon, 15 Jun 2015 22:29:02 +0000 (00:29 +0200)]
prettyprinter, locale independant float printing

8 years agoio.sockets.unix: Fix ipv6 sends for udp on osx.
Doug Coleman [Tue, 8 Mar 2016 12:45:55 +0000 (04:45 -0800)]
io.sockets.unix: Fix ipv6 sends for udp on osx.

8 years agoio.sockets: Special-case 0.0.0.0 and f for outgoing sockets so we can use
Doug Coleman [Tue, 8 Mar 2016 10:24:09 +0000 (02:24 -0800)]
io.sockets: Special-case 0.0.0.0 and f for outgoing sockets so we can use
them on windows. Add some tests that shouldn't fail. Fixes #85.

8 years agoio.sockets: Fix send-once for inet6.
Doug Coleman [Tue, 8 Mar 2016 00:58:56 +0000 (16:58 -0800)]
io.sockets: Fix send-once for inet6.

8 years agoRevert "io.sockets: Windows doesn't recognize 0.0.0.0. Add a method for"
Doug Coleman [Mon, 7 Mar 2016 22:31:40 +0000 (14:31 -0800)]
Revert "io.sockets: Windows doesn't recognize 0.0.0.0. Add a method for"

This reverts commit 2c82dfb51ba6923c2e7dcf3fac5109ae9da528f2.

8 years agoio.sockets: Windows doesn't recognize 0.0.0.0. Add a method for
Doug Coleman [Mon, 7 Mar 2016 21:59:17 +0000 (13:59 -0800)]
io.sockets: Windows doesn't recognize 0.0.0.0. Add a method for
resolve-localhost for Windows, and make the default ipv4 make-sockaddr use
127.0.0.1 since we are making a sockaddr for ipv4 anyway and 127.0.0.1 is
cross-platform. Fixes #85.

8 years agoeditors.visual-studio-code: msft changed the install directory to
Doug Coleman [Mon, 7 Mar 2016 21:23:24 +0000 (13:23 -0800)]
editors.visual-studio-code: msft changed the install directory to
c:\program files (x86). Now we don't need the platform-specific windows
file.
Also, add -r option to reuse existing windows.

8 years agoio.standard-paths.windows: We call >lower on the paths being compared, but
Doug Coleman [Mon, 7 Mar 2016 21:21:30 +0000 (13:21 -0800)]
io.standard-paths.windows: We call >lower on the paths being compared, but
not on the original file we are looking for. So searching for something
like "Code.exe" would never find it. Fixed.

8 years agoforestdb.lib: Got it compiled for win32. ``cmake -G "Visual Studio 14"
Doug Coleman [Mon, 7 Mar 2016 19:56:39 +0000 (11:56 -0800)]
forestdb.lib: Got it compiled for win32. ``cmake -G "Visual Studio 14"
..`` vs ``cmake -G "Visual Studio 14 Win64" ..``

8 years agoalien.syntax: Add ENUM: example with c basetype.
Doug Coleman [Sat, 5 Mar 2016 23:34:15 +0000 (15:34 -0800)]
alien.syntax: Add ENUM: example with c basetype.

8 years agoforestdb: Default config changed, change it back for Factor. Add more comments.
Doug Coleman [Sat, 5 Mar 2016 23:15:43 +0000 (15:15 -0800)]
forestdb: Default config changed, change it back for Factor. Add more comments.
Caught up to commit cce989f8ed66f1221fd57905123df79e35d5ff39

8 years agoforestdb.ffi: Add C types to the ENUM:s.
Doug Coleman [Sat, 5 Mar 2016 21:25:14 +0000 (13:25 -0800)]
forestdb.ffi: Add C types to the ENUM:s.

8 years agoREADME: https links instead of http.
Doug Coleman [Sat, 5 Mar 2016 19:42:26 +0000 (11:42 -0800)]
README: https links instead of http.

8 years agoip-parser: some cleanup, move ipv6 parsing here.
John Benediktsson [Sat, 5 Mar 2016 17:51:37 +0000 (09:51 -0800)]
ip-parser: some cleanup, move ipv6 parsing here.

8 years agolibtls.ffi: fix platforms file to not have empty line.
John Benediktsson [Sat, 5 Mar 2016 15:44:37 +0000 (07:44 -0800)]
libtls.ffi: fix platforms file to not have empty line.

8 years agoImport a few extra JSON tests from Jansson
Benjamin Pollack [Sat, 5 Mar 2016 14:56:18 +0000 (09:56 -0500)]
Import a few extra JSON tests from Jansson

Fixes #1189

8 years agoMake <inet4> and <ipv4> use ip-parser:parse-ipv4 1542/head
Benjamin Pollack [Sat, 5 Mar 2016 14:11:56 +0000 (09:11 -0500)]
Make <inet4> and <ipv4> use ip-parser:parse-ipv4

Fixes #1209

8 years agolibtls.ffi: Depends on unix.types, fix Windows.
Doug Coleman [Sat, 5 Mar 2016 11:02:38 +0000 (03:02 -0800)]
libtls.ffi: Depends on unix.types, fix Windows.

8 years agoio.sockets.secure.windows: Try to fix compile error.
Doug Coleman [Sat, 5 Mar 2016 10:57:39 +0000 (02:57 -0800)]
io.sockets.secure.windows: Try to fix compile error.

8 years agoAllow specifying vocabulary roots on the command line
Benjamin Pollack [Thu, 3 Mar 2016 19:24:54 +0000 (14:24 -0500)]
Allow specifying vocabulary roots on the command line

Fixes #1498

8 years agoUse proper SI prefixes in memory flag docs
Benjamin Pollack [Fri, 4 Mar 2016 18:34:42 +0000 (13:34 -0500)]
Use proper SI prefixes in memory flag docs

8 years agoopenssl: More ciphers.
Doug Coleman [Fri, 4 Mar 2016 18:42:35 +0000 (18:42 +0000)]
openssl: More ciphers.

8 years agoopenssl: call SSL_CTX_set_ecdh_auto() for forward secrecy.
Doug Coleman [Fri, 4 Mar 2016 18:05:09 +0000 (10:05 -0800)]
openssl: call SSL_CTX_set_ecdh_auto() for forward secrecy.

8 years agoopenssl.libssl: Add more constants.
Doug Coleman [Fri, 4 Mar 2016 18:05:02 +0000 (10:05 -0800)]
openssl.libssl: Add more constants.

8 years agoopenssl: support more protocols for forward secrecy.
Doug Coleman [Fri, 4 Mar 2016 17:19:08 +0000 (09:19 -0800)]
openssl: support more protocols for forward secrecy.

8 years agoopenssl: Prefer tls1.2. Only use secure ciphers.
Doug Coleman [Fri, 4 Mar 2016 17:15:12 +0000 (09:15 -0800)]
openssl: Prefer tls1.2. Only use secure ciphers.

8 years agoalien.libraries: Add a way to see if a dll has a function.
Doug Coleman [Fri, 4 Mar 2016 17:14:49 +0000 (09:14 -0800)]
alien.libraries: Add a way to see if a dll has a function.

8 years agocommand-line: More consistent command-line docs, fix MB -> kb for callback heap size
Doug Coleman [Fri, 4 Mar 2016 01:28:53 +0000 (17:28 -0800)]
command-line: More consistent command-line docs, fix MB -> kb for callback heap size

8 years agocommand-line.startup: document more command line flags. we already have -nosignals...
Doug Coleman [Fri, 4 Mar 2016 00:53:24 +0000 (16:53 -0800)]
command-line.startup: document more command line flags. we already have -nosignals, but it was hidden in the source code. Fix spacing for default image. Closes #1514.

8 years agourls: fix docs
Doug Coleman [Fri, 4 Mar 2016 00:15:11 +0000 (16:15 -0800)]
urls: fix docs

8 years agohashtables: remove 2hashtable (not really used).
John Benediktsson [Thu, 3 Mar 2016 22:36:48 +0000 (14:36 -0800)]
hashtables: remove 2hashtable (not really used).

8 years agourls: fix unit test
Doug Coleman [Thu, 3 Mar 2016 22:21:12 +0000 (14:21 -0800)]
urls: fix unit test

8 years agoDo not attempt to set an SNI hostname on a server
Benjamin Pollack [Thu, 3 Mar 2016 21:40:50 +0000 (16:40 -0500)]
Do not attempt to set an SNI hostname on a server

8 years agocore: I messed up the refactoring. with-scope should go away, but so should with...
Doug Coleman [Thu, 3 Mar 2016 19:54:33 +0000 (11:54 -0800)]
core: I messed up the refactoring. with-scope should go away, but so should with-variables with an empty hashtable too.

8 years agoAdd an SNI-based http.client test
Benjamin Pollack [Thu, 3 Mar 2016 17:45:03 +0000 (12:45 -0500)]
Add an SNI-based http.client test

8 years agoAdd SNI support to Factor
Benjamin Pollack [Wed, 2 Mar 2016 23:29:59 +0000 (18:29 -0500)]
Add SNI support to Factor

Fixes #1527

8 years agocore: Don't use with-scope. H{ } clone [ ] with-variables is the same thing and is...
Doug Coleman [Thu, 3 Mar 2016 01:18:42 +0000 (17:18 -0800)]
core: Don't use with-scope. H{ } clone [ ] with-variables is the same thing and is more explicit.

8 years agohashtables: add a 2hashtable word that is like associate but for two key/value pairs.
Doug Coleman [Thu, 3 Mar 2016 01:16:05 +0000 (17:16 -0800)]
hashtables: add a 2hashtable word that is like associate but for two key/value pairs.

8 years agodocs, smpt-gmail: fix for people not using 2FA + formatting
Jon Harper [Wed, 2 Mar 2016 18:10:10 +0000 (19:10 +0100)]
docs, smpt-gmail: fix for people not using 2FA + formatting

8 years agoDump everything before TLSv1 1536/head
Benjamin Pollack [Wed, 2 Mar 2016 00:42:08 +0000 (19:42 -0500)]
Dump everything before TLSv1

All versions of SSL are deprecated and have major security issues. Just
kill the whole thing. If you want to deliberately expose yourself to
POODLE, you can do it on your own time.

8 years agoio.sockets.secure.openssl: Nuke RSA.
Doug Coleman [Tue, 1 Mar 2016 22:02:47 +0000 (14:02 -0800)]
io.sockets.secure.openssl: Nuke RSA.

8 years agoalien.syntax: Fix CALLBACK: syntax again in another place
Doug Coleman [Tue, 1 Mar 2016 21:07:37 +0000 (13:07 -0800)]
alien.syntax: Fix CALLBACK: syntax again in another place

8 years agoalien.syntax: Fix docs for CALLBACK: (no semi)
Doug Coleman [Tue, 1 Mar 2016 20:42:17 +0000 (12:42 -0800)]
alien.syntax: Fix docs for CALLBACK: (no semi)

8 years agoforestdb.ffi: Update ffi.
Doug Coleman [Tue, 1 Mar 2016 20:40:11 +0000 (12:40 -0800)]
forestdb.ffi: Update ffi.

8 years agobootstrap.image: docs
Björn Lindqvist [Sun, 28 Feb 2016 17:49:41 +0000 (18:49 +0100)]
bootstrap.image: docs

8 years agovm/contexts.cpp: We are only deleting half the contexts because we increment the...
Doug Coleman [Tue, 1 Mar 2016 08:19:43 +0000 (00:19 -0800)]
vm/contexts.cpp: We are only deleting half the contexts because we increment the iter twice per loop! Fixes #1534. Thanks clang!

8 years agoVM: nitpick fix of filenames in comments
Björn Lindqvist [Sun, 28 Feb 2016 00:23:59 +0000 (01:23 +0100)]
VM: nitpick fix of filenames in comments

8 years agoVM: simplifies factor_vm::determine_inline_cache_type
Björn Lindqvist [Sun, 28 Feb 2016 00:10:12 +0000 (01:10 +0100)]
VM: simplifies factor_vm::determine_inline_cache_type

8 years agocompiler.*: more docs
Björn Lindqvist [Sun, 28 Feb 2016 00:01:38 +0000 (01:01 +0100)]
compiler.*: more docs

8 years agounix.linux.proc: add bugs line.
Doug Coleman [Sat, 27 Feb 2016 00:28:58 +0000 (00:28 +0000)]
unix.linux.proc: add bugs line.

8 years agoFix "doesnt" typo.
John Benediktsson [Fri, 26 Feb 2016 16:56:25 +0000 (08:56 -0800)]
Fix "doesnt" typo.

8 years agoeditors.visual-studio-code: Try to find ``Code`` executable on linux.
Doug Coleman [Wed, 24 Feb 2016 02:45:25 +0000 (18:45 -0800)]
editors.visual-studio-code: Try to find ``Code`` executable on linux.

8 years agoopenssl.libssl: Add some more constants. Move things around a little and add SSL_ctrl...
Doug Coleman [Wed, 24 Feb 2016 02:24:41 +0000 (18:24 -0800)]
openssl.libssl: Add some more constants. Move things around a little and add SSL_ctrl() binding.

8 years agoopenssl: only set RSA keys if required to do so 1532/head
Benjamin Pollack [Tue, 23 Feb 2016 13:09:07 +0000 (08:09 -0500)]
openssl: only set RSA keys if required to do so

Modern OpenSSL and LibreSSL both do not require SSL_CTX_set_tmp_rsa to
be called unless SSL_CTX_need_tmp_rsa returns true, and LibreSSL and
OpenSSL compiled with deprecation warnings both will fail if this
happens. This commit resolves that.

With this change, it becomes possible to use LibreSSL in place of
OpenSSL with Factor.

8 years agoUpdate OpenSSL calls to work with LibreSSL/newer OpenSSL
Benjamin Pollack [Mon, 22 Feb 2016 18:37:54 +0000 (13:37 -0500)]
Update OpenSSL calls to work with LibreSSL/newer OpenSSL

RSA_generate_key has been deprecated, and is not available in either
LibreSSL or newer OpenSSL that are not compiled with deprecated call
support. This commit switches to the still-supported
RSA_generate_key_ex, which is supported by both libraries.

Note that this is still insufficient for Factor to work under LibreSSL,
though we now get a call further than before.

8 years agoio.sockets: remove send-n-times, broadcast-n-times.
Doug Coleman [Sun, 21 Feb 2016 02:37:08 +0000 (18:37 -0800)]
io.sockets: remove send-n-times, broadcast-n-times.

8 years agoforestdb.lib: fix using
Doug Coleman [Sat, 20 Feb 2016 03:22:19 +0000 (19:22 -0800)]
forestdb.lib: fix using