1. 30 Apr, 2020 1 commit
    • Karel Koci's avatar
      Remove usign from codebase · cb46c19f
      Karel Koci authored
      This removes all mentions and usage from codebase.
      
      Usign usage was replaced with openssl in updater now so we no longer
      need usign itself as well as we no longer need to build it or have it in
      runtime.
      cb46c19f
  2. 26 Apr, 2020 2 commits
  3. 20 Apr, 2020 6 commits
    • Karel Koci's avatar
      gitignore: ignore binaries only in top level · 159375ff
      Karel Koci authored
      This rules was ignoring also src/* directories.
      159375ff
    • Karel Koci's avatar
      tests/lua/updater: Test package verification · fef5a7e6
      Karel Koci authored
      fef5a7e6
    • Karel Koci's avatar
      lib/lua/updater: Split verification to separate function · 2e4362d7
      Karel Koci authored
      This is so we can better test it.
      
      This also reverts old behavior of checking for SHA256Sum on top of new
      SHA256sum.
      2e4362d7
    • Karel Koci's avatar
      lib/updater: print warning for packages that were not verified · 89a1bad1
      Karel Koci authored
      This servers two purposes. It warns repository creators that their
      repository is not potentially correctly setup and it also warns
      updater's developers about faults in verification. It is not required
      that all packages should be essentially verified but it is best advised
      to be.
      89a1bad1
    • Karel Koci's avatar
      lib/updater: fix invalid hash check for SHA256 · cf860b7b
      Karel Koci authored
      This is major problem as packages were not verified thanks to this
      error.
      cf860b7b
    • Karel Koci's avatar
      lib/download: remove download retries · c863f6fd
      Karel Koci authored
      Download retries are flawed because if some data is downloaded and later
      download is started again the new data is appended to old data. This
      means that result is invalid even if new download was successful.
      
      One option would be to truncate output for retry but output can be not
      only file but effectively any buffer. I am not aware of easy way to
      truncate FILE. We can truncate real file but it seems that there is no
      way to truncate memory objects such as created using fopencookie.
      
      It is also questionable if retries were even usable for anything. Curl
      on its own tries to reestablish connection and letting it on Curl is in
      general even cleaner than doing some hacks.
      c863f6fd
  4. 17 Apr, 2020 1 commit
    • Karel Koci's avatar
      lib: fix invalid error for uri_content · 63154566
      Karel Koci authored
      It is not possible to universally call :path() on URIs as not all of
      them are of file scheme. Instead :uri() should have been called here to
      get URI representation.
      
      This also not essentially downloading URI. It just receives it no matter
      what kind of URI it is so message about download is miss leading
      (although in most cases valid).
      63154566
  5. 08 Apr, 2020 25 commits
  6. 06 Apr, 2020 5 commits