Commit Graph

11318 Commits (6421af34015bc9b8ac7bf8e13afa2c46122d6da0)

Author SHA1 Message Date
Björn Lindqvist 6421af3401 io.sockets.secure.*: unification of lots of platform-independent code
Code that is duplicated in the backends moved to
io.sockets.secure.openssl. The wait-for-fd verb used by do-ssl-accept
doesn't have any equivalent on Windows so that needs to be
implemented.
2014-04-02 12:12:37 -05:00
Björn Lindqvist 57a933e330 libc.*, unix.*: move constants and functions from the unix namespace to libc
The E* errno and SIG* constants are defined on Windows too, so they
should be in the libc vocab which is available there. They will be
used for SSL error handling.
2014-04-02 12:12:25 -05:00
Björn Lindqvist 5f38df7741 io.sockets.secure.windows: reading and writing from ssl sockets
Unified the drain and refill generics and put their definition in
io.files. They are now used by both the windows and unix ssl backend
for io. Windows ssl kind of works now, but the error cases are not
implemented correctly.
2014-04-02 12:12:14 -05:00
Björn Lindqvist 8c5ceb8b0c io.files.windows: new generic words drain and refill, like in io.backend.unix
The purpose of these words is to abstract out the pushing of the bytes
to the ports so that you can insert the ssl layer in between. Exactly
like how drain and refill are specialized on ssl-handle in
io.sockets.secure.unix.
2014-04-02 12:12:04 -05:00
Björn Lindqvist 6ed3a09b5d io.sockets.secure: new hook variable ssl-certificate-verification-supported?
t if the backend is able to verify certificates, f
otherwise. Currently certificate validation isn't implemented on Windows
2014-04-02 12:11:53 -05:00
John Benediktsson dcd3938d0d images.loader: simplify registrations. 2014-03-14 09:17:13 -07:00
John Benediktsson ab76deaf25 images: minor cleanup. 2014-03-14 08:26:05 -07:00
John Benediktsson 4e206f4181 images.loader: optionally register "non-system" image classes. 2014-03-14 07:32:27 -07:00
Björn Lindqvist 944718c817 images.loader: docs for save-graphic-image 2014-03-14 07:32:26 -07:00
Björn Lindqvist 3a8164cd8a images.loader: support for saving images on the gtk-image backend 2014-03-14 07:32:26 -07:00
John Benediktsson d4a56057f0 http.client: add starred versions that do not check response code for success. 2014-03-13 12:26:35 -07:00
John Benediktsson 03b7e67547 fix some help-lint errors. 2014-03-12 20:08:15 -07:00
John Benediktsson 272102e647 http.client: fix duplicate using. 2014-03-12 19:51:50 -07:00
John Benediktsson ed5bc3b8fa http.client: few more fixes. 2014-03-12 19:49:58 -07:00
John Benediktsson cb9c171383 http.client: remove unused word. 2014-03-12 19:39:15 -07:00
John Benediktsson 712be93989 http.client: remove http-get* and its friends, change http-request* and with-http-request* to not check response codes. 2014-03-12 19:39:15 -07:00
John Benediktsson a6989e2cc2 logging.server: add support for changing the logging root temporarily. 2014-03-12 12:41:57 -07:00
John Benediktsson 317b0c8d20 oauth needs this, and this needed protocol-port fixes.
Revert "Revert "urls: Allow URLs of the form //foo.com, which take on the protocol of the URL they derive from.""

This reverts commit 76fa8b7a29f3738f44230c473b7edf841f1de7c3.
2014-03-12 07:43:40 -07:00
John Benediktsson 0a2fef0775 io.sockets: change protocol-port to handle ``f`` on all platforms. 2014-03-12 07:27:39 -07:00
John Benediktsson 65846fb5ba Revert "urls: Allow URLs of the form //foo.com, which take on the protocol of the URL they derive from."
This reverts commit e6598fc22fd91309288fbe9840f7872d8fd84438.
2014-03-11 20:20:23 -07:00
Doug Coleman c6fd2da67f tools.coverage: Add a ``test-coverage-recursively`` word. Not all vocabs can be tested for unit test coverage, so don't make this the default. Fixes #1013. 2014-03-11 21:20:34 -05:00
John Benediktsson 0a2e632d4c io.standard-paths.unix: fix tests on arch linux. 2014-03-11 11:37:00 -07:00
John Benediktsson b039b6a542 io.streams.string: cleanup tests. 2014-03-11 11:25:53 -07:00
John Benediktsson e0e88895a1 loggin: some cleanup, particularly of write-message. 2014-03-11 11:22:24 -07:00
John Benediktsson ee040a242c io.streams: some more test cases for sequence-read-until. 2014-03-10 15:29:11 -07:00
John Benediktsson b0b5e6733d Revert "Revert "alien.data: <ref> doesn't need to zero memory.""
This reverts commit 01142121511d4b9338c84286d4efdd3c8d5a4665.
2014-03-07 11:19:36 -08:00
John Benediktsson 985faa7ec7 Revert "alien.data: <ref> doesn't need to zero memory."
This reverts commit f9a714b48fc1700431b61f7f1968893d2b2b3ee7.
2014-03-07 09:46:13 -08:00
Björn Lindqvist 39b13b6736 io.sockets.secure.openssl: guard against SSL_get_peer_certificate returning null 2014-03-06 18:41:37 +01:00
John Benediktsson 04a4e0ed5c checksums.sha: minor speedup. 2014-03-04 10:05:03 -08:00
Björn Lindqvist 3bbdd067be ui.backend.gtk: connect ui signals before realizing the widget
gtk_widget_add_events() needs to be called before gtk_widget_realize()
otherwise oxygen-gtk will steal all lmb clicks
2014-03-02 19:11:55 -08:00
John Benediktsson ab5b128192 alien.data: <ref> doesn't need to zero memory. 2014-02-27 20:53:54 -08:00
John Benediktsson e5850f93e0 calendar.unix: simplify current-timeval. 2014-02-27 15:26:52 -08:00
John Benediktsson 332fc7bc1a io.files.info.unix.linux: cleanup stack effects. 2014-02-27 15:26:38 -08:00
John Benediktsson dae32f2d9d checksums.internet: simplify. 2014-02-27 14:03:00 -08:00
John Benediktsson 5e4ac4b698 checksums.xxhash: cleanup, faster. 2014-02-27 13:59:34 -08:00
John Benediktsson 0fb0eaa1cf random: simplify using bitwise operations. 2014-02-25 15:59:51 -08:00
John Benediktsson a05c735731 checksums.md5: remove extra "32 bits". 2014-02-25 15:59:43 -08:00
John Benediktsson 212af2d05d checksums.murmur: remove code duplication. 2014-02-25 15:56:16 -08:00
John Benediktsson 5e210e36b9 checksums.xxhash: adding xxHash checksum implementation. 2014-02-25 15:55:32 -08:00
John Benediktsson bf1f4e9aa2 io.streams.sequence: cleanup by moving type checks. 2014-02-25 09:32:47 -08:00
John Benediktsson f243b31ddd io.streams.sequence: rename (stream-seek) to sequence-seek. 2014-02-25 07:56:28 -08:00
John Benediktsson ee9ead89f8 io.streams.sequence: bounds check sequence-read-until. 2014-02-25 07:52:07 -08:00
John Benediktsson 0b04d3f279 io.streams.string: faster M\ string-reader stream-readln. 2014-02-24 21:47:49 -08:00
John Benediktsson dcd8d4ef51 pack: add some tests for expand-pack-format. 2014-02-24 13:48:11 -08:00
John Benediktsson 77c122941d pack: support numbered format strings. 2014-02-24 11:23:13 -08:00
Björn Lindqvist 1456e14a09 ui.backend.windows: correct wndproc signature so that factor works with vs2012 2014-02-21 17:40:43 -08:00
Björn Lindqvist dc3c947a5e csv: empty strings and files are valid csv:s 2014-02-19 03:37:37 -08:00
John Benediktsson 6fd68ecb64 checksums.md5: more types and inline, lots faster. 2014-02-17 18:26:57 -08:00
John Benediktsson c3f79c1482 checksums.sha: more types, faster. 2014-02-17 18:26:17 -08:00
Doug Coleman 48562e6e48 random.mersenne-twister: Don't use system-random-generator to initialize
Mersenne Twister. If there is no system random generator, startup can
fail.
2014-02-14 18:48:25 -08:00