Commit Graph

146 Commits

Author SHA1 Message Date
Jōshin
30b616dd8b Use libent for getentropy 2019-01-16 09:06:12 -08:00
Jōshin
e253be75cc Consistent indentation in portable.h
Also remove the gcc/C99 comment.
2019-01-09 09:15:41 -08:00
Jōshin
a8c19d9bae c3_rand cleanup
This should work on Linux since kernel 3.17, OS X since 10.12, OpenBSD
since 5.6, and FreeBSD since 12.0. It also introduces no external
dependencies. Note that getentropy should only be called with at most
256 bytes or it will return EIO. The getrandom variant on Linux doesn't
check for this. If called with len > 256, it's allowed to produce a
short read if it gets interrupted. This should show up as an error, so
everything's fine.
2019-01-09 09:15:41 -08:00
Jōshin
67c0b7b39b Clean up allocator defs
- Condense the allocator section in defs.h and make it match the
  surrounding style.

- Use real calloc in c3_calloc. Some guy on the internet says
  calloc can be faster than malloc since the OS may not actually
  need to call memset.

- Replace calloc calls in vere code with c3_calloc.

Note that I left the c3_calloc definition as-is (i.e., not taking
a count argument). I was going to change it, but it seems like
count is 1 at all call sites. If it's ever used with count != 1,
I'd be in support of changing it, fwiw.
2019-01-02 11:23:06 -08:00
Jōshin
69f4157588 Fixes the build on OpenBSD
Tested with stock clang on an OpenBSD 6.4 amd64 VM. Unfortunately
clang (and also gcc from ports) was not pleased about c3_rand,
whereas this was fine before. I have no idea what changed, but it
works now.
2018-12-14 22:51:02 +00:00
Joe Bryan
de7df542c9 updates c3_assert() to print assertion/file/line before bail 2018-12-10 17:17:16 -05:00
Joe Bryan
76fbb1d918 adds and uses c3_realloc() 2018-12-08 20:09:23 -05:00
Joe Bryan
591995934a single-home arvo with %whom 2018-12-05 16:02:43 -05:00
Joe Bryan
511ff89f80 add entropy to arvo with %wack 2018-12-05 15:52:16 -05:00
Joe Bryan
a77f6401a7 updates %behn to use effects instead of u3v_keep polling 2018-11-26 03:08:14 -05:00
Fang
91bef8d863 Merge branch 'release-candidate' into crypto-additions 2018-11-06 10:32:02 -08:00
Fang
a74ea050fa Clean up style in argon2 jet 2018-11-04 11:42:17 -08:00
Joe Bryan
f939b63cca simplifies dawn status noun, improves error messages 2018-10-16 23:46:31 -04:00
Joe Bryan
5207c8321f use +clan:title to detect galaxy 2018-10-16 22:41:38 -04:00
Joe Bryan
6e77aa110a starts ames on %turf card, removes -H
uses ames domain for tcp proxy, and
moves czar arvo sync after ames initialization
2018-10-16 20:51:51 -04:00
Joe Bryan
8fc65462b8 minimal fake-key boot - galaxies only for now 2018-10-05 20:29:53 -04:00
Joe Bryan
c058bae81c implements initial version of eth-integrated %dawn boot 2018-10-05 00:38:53 -04:00
Joe Bryan
ba5e228d78 Merge branch 'https-proxy-config' into ford-turbo-proxy
* https-proxy-config: (92 commits)
  increases tcp proxy listener timeout to 2 minutes
  fixes dumb bug in tcp reverse proxy remote address resolution
  upgrades libh2o to v0.13.5 (h2o v2.2.5)
  sets the http client request timeout to 2 minutes
  adds an http request timer to ensure connections are always closed
  adds an http request timer to ensure connections are always closed
  adds (disabled) h2o access log
  don't leak ship-name in _proxy_ward_connect()
  refactors .http.ports write/release (avoid the loom, etc.)
  updates SSL_CTX init to support any PEM private key, simplifies error handling
  adds u3_wcon (ward candidate conn), refactors ward connection accept and auth
  enables ALPN and HTTP2 over TLS
  increases timeout before server struct, adds explanatory comment
  closes u3_ward stream and timer sequentially, fixing use-after-free per ASan
  moves u3_pact to vere.h, replacing the unused u3_apac
  fixes memory leak in failed cttp.c address resolution
  suppresses AddressSanitizer in vararg functions u3i_molt and u3r_mean
  ignores AddressSanitizer errors in jets.c
  updates %wise and %that to give and receive the proxy auth nonce
  implements nonce-baced authentication for u3_ward proxies
  ...
2018-08-20 22:24:13 -04:00
Joe Bryan
5a444d8849 wires up http config event (%form)
only starts servers on recv config
2018-07-10 13:13:44 -04:00
Joe Bryan
eeb0536ab9 wires up reverse proxy notification effect %that
works!
2018-06-15 14:16:17 -04:00
Curtis Yarvin
f01bce3582 More renaming. 2018-05-27 13:00:55 -07:00
Curtis Yarvin
7a9a9047c3 Old help totally cleaned out. 2018-05-24 15:40:28 -07:00
Curtis Yarvin
5e55e48f3b Adjusted %brcn to support core name. 2018-05-20 12:34:38 -07:00
Curtis Yarvin
5afbf59cae Merge branch 'master' into research-merge 2018-05-02 16:55:29 -07:00
Joe Bryan
6c36594f6f Merge branch 'master' into libh2o
* master: (124 commits)
  use compile-time assertion to check for unsigned char
  Don't build libuv in travis if it is now submoduled.
  Rebuild the scripts without PKG_CONFIG_PATH hacks.
  Remove manual PKG_CONFIG_PATH configuration.
  Enable fallback libuv bundle
  Bundle libuv.
  adds a cell check for the sample of the +roll gate
  Add missing flags fixing the markdown parser bug #951
  Revert "Merge pull request #952 from eglaysher/revert-meson"
  Revert "Merge pull request #949 from eglaysher/meson-build-clean"
  Revert "The -C flag was added for exactly this case."
  The -C flag was added for exactly this case.
  Take ownership of the submodule repositories.
  Revert "Revert "Merge pull request #941 from frodwith/runtime-overflows""
  Add legacy meson instructions to README
  Fix new meson version check
  Fix legacy meson version detection.
  Universal meson build.
  change overflow check to short
  do the don trick for jam
  ...
2018-04-09 19:49:40 -07:00
Keaton Dunsford
87e28fb787
Merge pull request #953 from eglaysher/reapply-meson
Reapply meson
2018-04-09 19:14:55 -07:00
Joseph Bryan
2caa2bc6bd use compile-time assertion to check for unsigned char 2018-04-09 18:22:48 -07:00
C. Guy Yarvin
b59aa59951 Support %form. 2018-03-26 16:58:51 -07:00
Elliot Glaysher
0f09810dd7 Revert "Merge pull request #952 from eglaysher/revert-meson"
This reverts commit 9978ad8b72, reversing
changes made to a85369fa1f.
2018-03-20 10:16:16 -07:00
C. Guy Yarvin
c0d108d745 Add !@. 2018-03-20 09:41:54 -07:00
Elliot Glaysher
e6f6315691 Revert "Merge pull request #949 from eglaysher/meson-build-clean"
This reverts commit 9f795b535f, reversing
changes made to d5c7b3b932.
2018-03-19 15:13:19 -07:00
C. Guy Yarvin
d90d0327e2 Change %bunt to %bcdt. 2018-03-13 19:57:53 -07:00
C. Guy Yarvin
55e895036c Eliminate old-fashioned burn. 2018-03-10 20:57:02 -08:00
Joseph Bryan
a0b19f125f cleanup 2018-03-05 10:36:35 -05:00
Joseph Bryan
e65fa24fca adds trivial libh2o integration 2018-03-05 10:36:32 -05:00
mikolajp
29d792bd64 Switch to generated config header. New allocator 2018-02-25 14:14:25 +08:00
C. Guy Yarvin
4ae78dafb0 Fully adapted to seminouns in ++coil. 2018-02-19 17:24:16 -08:00
C. Guy Yarvin
3e77ed0b8d Preadapt for sm->mc and fs->sk rune changes. 2017-12-07 09:53:43 -08:00
C. Guy Yarvin
2b8c046b13 Cache ++blow. 2017-12-07 08:49:55 -08:00
C. Guy Yarvin
a220669cb0 Initial commit. 2017-11-27 14:32:42 -08:00
C. Guy Yarvin
c20c66901d Hand-copied build with both 151 and 143 jets. 2017-09-25 16:54:42 -07:00
Philip C Monk
d8ebde1a69 update openbsd c3_rand to use 512 bits of entropy 2016-08-12 14:58:52 -04:00
Joseph Bryan
166431ed99 adds term support for meta-. and meta-backspace 2016-07-02 22:49:40 -04:00
Raymond Pasco
be4678ff0a Merge remote-tracking branches 'philipcmonk/new-lens' and 'galenwp/arch'
http.c changes for urbctl API
add Arch linux to readme
2016-04-14 15:09:15 -04:00
Anton Dyudin
3d05538f75 add %chis for local-request backwards compatibility 2016-03-31 10:36:58 -07:00
C. Guy Yarvin
fd001d55ef Keyword/stem changes, final draft. 2016-02-08 19:35:13 -08:00
C. Guy Yarvin
52004a4f97 Generating new stems, double solid. 2016-02-08 18:17:17 -08:00
C. Guy Yarvin
c7e9b8676f Keyword stems, step 1. 2016-02-05 01:25:58 -08:00
C. Guy Yarvin
4042253eeb Merge remote-tracking branch 'upstream/master' into newdeal 2016-01-31 20:37:49 -08:00
C. Guy Yarvin
3d3e1ebb4d Double solid with .# support, still a bit flaky. 2016-01-25 13:29:30 -08:00