Skip to content
Snippets Groups Projects
  1. Jan 06, 2017
    • Daniel Kahn Gillmor's avatar
      Use ephemeral X.509 credentials if none are configured · a405b874
      Daniel Kahn Gillmor authored
      If kresd is configured to listen using TLS, but it has no credentials,
      it should fall back to generating ephemeral credentials and using
      them.
      
      It stores the ephemerally-generated secret key in the same directory
      as the cache, using the name "ephemeral_key.pem".  If the cache
      persists, then the key will too, even if the daemon dies.  This means
      that any set of daemons that share a cache will also share an
      ephemeral secret key.
      
      The ephemeral X.509 certificate that corresponds to the key will be
      automatically generated (self-signed), will have a lifetime of about
      90 days (matching Let's Encrypt policy).  The ephemeral cert is
      never written to disk; it is always dynamically-generated by kresd.
      
      This should make it very easy to get DNS-over-TLS working in
      opportunistic mode.
      a405b874
  2. Dec 19, 2016
    • Vladimír Čunát's avatar
      allow generating most cdefs for lua · 06b0d3d4
      Vladimír Čunát authored and Ondřej Surý's avatar Ondřej Surý committed
      Motivation: maintaining these by hand in kres.lua is tricky, as just
      inserting or reordering the structures can do anything and isn't
      detected in general.  For example, `rr_array_t::at` has always
      "missed a star".
      
      A couple libknot structure fields have apparently changed name since
      the old definitions were written; in most cases I renamed them in *.lua.
      
      The file daemon/lua/kres-gen.lua will be regenerated only if explicitly
      deleted.  That requires building with debug symbols and gdb on $PATH.
      06b0d3d4
  3. Nov 30, 2016
    • Vladimír Čunát's avatar
      Revert "lua: embed bytecode instead of stripped source" · 4237b587
      Vladimír Čunát authored
      This reverts commit 64f80706.
      TL;DR: it brought almost no benefits AFAIK and potential for problems.
      
      The "portable bytecode" produced by luajit isn't compatible when
      (lib)luajit version changes or when some build-time configuration of it
      changes.  If you mix these up, kresd fails to start.
      4237b587
  4. Nov 14, 2016
    • Vladimír Čunát's avatar
      lua: embed bytecode instead of stripped source · 64f80706
      Vladimír Čunát authored
      It seems a bit cleaner, though impact on size and load speed should not
      be noticeable.  We simply install most of the lua code, as before, and I
      assume that we *do* want to keep that visibility, at least by default.
      Suggested on !57.
      64f80706
  5. Oct 21, 2016
  6. Oct 20, 2016
  7. Sep 08, 2016
  8. Aug 05, 2016
  9. Jun 30, 2016
  10. Mar 29, 2016
  11. Dec 23, 2015
  12. Dec 10, 2015
  13. Dec 09, 2015
  14. Dec 06, 2015
  15. Nov 26, 2015
  16. Nov 25, 2015
    • Marek Vavruša's avatar
      build: amalgamated build support with AMALG=1 · af4254d1
      Marek Vavruša authored
      amalgamated build concatenates all files into a single .c file to
      allow compiler see all symbols and produce possibly smaller code.
      for binary distributions this is what you want, as it's faster but
      may consume more memory during compilation.
      it however cannot do incremental builds.
      af4254d1
  17. Nov 21, 2015
  18. Sep 25, 2015
  19. Aug 03, 2015
    • Marek Vavruša's avatar
      daemon/bindings: replaced old Lua/C bindings with LuaJIT FFI · 28565f82
      Marek Vavruša authored
      this is a first step of leaning towards LuaJIT.
      the FFI bindings are much faster, simpler and don’t abort traces
      
      daemon core scripting engine is still going to support interpreted Lua, but modules requiring library bindings (such as ‘block’) will require LuaJIT for FFI
      28565f82
  20. Jul 15, 2015
  21. Jun 30, 2015
  22. Jun 15, 2015
  23. Jun 07, 2015
  24. May 25, 2015
  25. May 18, 2015
  26. May 07, 2015
  27. Apr 24, 2015
  28. Apr 08, 2015
  29. Mar 31, 2015
  30. Mar 29, 2015