1. 05 Mar, 2019 1 commit
  2. 22 Feb, 2019 1 commit
  3. 11 Feb, 2019 1 commit
  4. 07 Feb, 2019 2 commits
    • Vladimír Čunát's avatar
      cleanups after splitting bindings.c · 9b5a9c1a
      Vladimír Čunát authored
      9b5a9c1a
    • Vladimír Čunát's avatar
      split daemon/bindings.c file · dd9e33dc
      Vladimír Čunát authored
      It's now a directory, one C file for each lua table of functions.
      We get more total lines due to per-file copyright headers,
      but the original file was just too long (nearing 2k lines).
      The layout was inspired by the lib/cache/ split.
      
      Disadvantage: git operations (e.g. blame) will stumble on this commit.
      
      During the move, rename the "str" and "xstr" macros, too.
      Otherwise there are no real changes, as they would be hard to spot.
      dd9e33dc
  5. 23 Jan, 2019 1 commit
  6. 26 Nov, 2018 3 commits
  7. 13 Nov, 2018 1 commit
  8. 12 Oct, 2018 1 commit
  9. 14 Aug, 2018 2 commits
  10. 03 Aug, 2018 1 commit
    • Vladimír Čunát's avatar
      lua cache bindings: error out if cache isn't open yet · b1a16801
      Vladimír Čunát authored
      The catch is that during configuration file processing,
      no cache is open (yet), as kresd can't know if the config
      does open it in some later part (with non-default path or size).
      Now we just throw an error.  Exceptions:
       - cache.open() and cache.backends(), of course :-)
       - cache.ns_tout() - not required, it's not really inside cache
       - cache.close() - it sounds reasonable to allow "closing a closed cache"
      
      This immediately caught a typo in cache metatable.
      b1a16801
  11. 16 Jul, 2018 1 commit
  12. 30 May, 2018 1 commit
    • Marek Vavruša's avatar
      daemon: allow per-request variables in Lua · 14de9110
      Marek Vavruša authored
      The handlers in Lua can now store per-request variables that are automatically
      GC'd when the request is finished. This is useful for stateful modules,
      such as DNS64 that uses internal option flags for state tracking.
      
      The layers can now get a variable table like so:
      
      ```
      local vars = kres.request_t(r):vars()
      vars.hello = true
      ```
      
      The variables are persisted between different layers for each request.
      14de9110
  13. 20 Apr, 2018 1 commit
  14. 12 Apr, 2018 1 commit
  15. 28 Mar, 2018 3 commits
  16. 01 Mar, 2018 1 commit
    • Vladimír Čunát's avatar
      map_t, set_t: unify memory allocation to mm_* · f821e688
      Vladimír Čunát authored
      We use the knot style everywhere else; this was very similar and yet
      different, so really annoying to me.  In the long term we might better
      migrate to qp-tries from knot, but the API differs, so it's delayed...
      f821e688
  17. 22 Feb, 2018 1 commit
    • Vladimír Čunát's avatar
      map_t, set_t: unify memory allocation to mm_* · a159bab9
      Vladimír Čunát authored
      We use the knot style everywhere else; this was very similar and yet
      different, so really annoying to me.  In the long term we might better
      migrate to qp-tries from knot, but the API differs, so it's delayed...
      
      (cherry picked from map-alloc - commit b1b8157b94fb41)
      a159bab9
  18. 30 Jan, 2018 1 commit
  19. 23 Jan, 2018 1 commit
    • Vitezslav Kriz's avatar
      keyfile argument distiguish managed and unmanaged mode · 6c2db2b5
      Vitezslav Kriz authored
      Arguments --keyfile, -k for managed mode
      and
      --keyfile-ro, -K for unmanaged (readonly) mode.
      
      Automatic setting based on the file permission is removed because it was
      confusing and could easily lead to state where automatic update does not
      happen because of unexpected file permissions.
      
      Check if folder is writeable was moved into Lua code.
      
      Default unmanaged keyfile path can be specified at compile
      time with option KEYFILE_DEFAULT. This default
      configuration can be disabled in configuration file with
      trust_anchors.keyfile_default = nil.
      6c2db2b5
  20. 18 Jan, 2018 1 commit
  21. 23 Dec, 2017 1 commit
  22. 16 Nov, 2017 1 commit
    • Vladimír Čunát's avatar
      rename module 'cache_lmdb' -> 'cache' · dfe7468d
      Vladimír Čunát authored
      The name was weird.  There's no other implementation ATM and the module
      will always be only really suitable for *local* caches, but otherwise
      it's not neccessarily bound to LMDB.
      dfe7468d
  23. 26 Oct, 2017 1 commit
  24. 13 Oct, 2017 1 commit
  25. 12 Oct, 2017 1 commit
  26. 29 Sep, 2017 2 commits
  27. 21 Sep, 2017 1 commit
  28. 11 Sep, 2017 1 commit
    • Vladimír Čunát's avatar
      roothints: various changes · 8fa8f214
      Vladimír Čunát authored
      - expose the function as hints.root_file
      - use the same filename as Debian
      - remove the unneeded script
      - docs and some nitpicks
      8fa8f214
  29. 07 Sep, 2017 1 commit
  30. 01 Aug, 2017 1 commit
  31. 20 Jul, 2017 1 commit
    • Vitezslav Kriz's avatar
      policy: update aho-corasick code · 172d0414
      Vitezslav Kriz authored
      Library lua-aho-corasick is provided as git submodule. Library
      build is triggered with kresd build. ahocorasick.so is copied into
      modules directory.
      172d0414
  32. 26 Jun, 2017 1 commit
  33. 26 May, 2017 1 commit