1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-06-10 17:46:02 +02:00
Commit Graph

11 Commits

Author SHA1 Message Date
René Wagner 78fe3fbb2b fix wrong path length check and error message 2021-11-03 16:26:00 +01:00
René Wagner ff46c840c5 allow ~ as home alias in file path for downloads
This works for gmni and gmnlm respectively.
2021-11-03 14:30:52 +01:00
René Wagner 1a9aa3e252 fix downloading of files
due to the wrong handling in download_resp() files may get
broken (last chunk missing) and file descriptors have not
been closed correctly.

Additionally we now allow downloading of local ressources
as well - for what its worth.
2021-10-29 09:53:43 +02:00
Eyal Sawady 93f30522f0 gmnlm: create cert dir on 6x response
So that the OpenSSL command doesn't fail when the cert dir hasn't
already been created.
2021-03-09 08:08:45 -05:00
Drew DeVault 1ed4f09532 Initial support for client side certificates
This is only supported with gmni for now - gmnlm support will come
later. A limitation with BearSSL prevents us from doing automated
certificate generation for now, unfortunately.
2021-03-05 08:29:02 -05:00
Drew DeVault 57064dd01f all: rewrite with BearSSL rather than OpenSSL 2021-03-04 10:59:37 -05:00
Giuseppe Lumia ab66dd2be9 Simplify posix_dirname logic
dirname has two main problems:
1. It could change in place the string that is passed to it.
2. It uses a static string for its return value, so one should copy it
   somewhere else as soon as possible to avoid subsequent calls to
   dirname to corrupt his data (see #48).

We avoid 1. passing a copy of `path` to dirname and 2. copying it's
return value into `dname`.
2020-11-17 09:30:56 -05:00
Cédric Hannotier ac86b2f9fe Separate path and read buffers & use snprintf 2020-10-29 18:00:46 -04:00
Martijn Braam 122fb0a9fd Add static library for gmni 2020-10-24 13:41:07 -04:00
Eyal Sawady fa78663748 Add 'd' to download page 2020-10-21 10:12:51 -04:00
Drew DeVault 601f900886 Implement bookmarks 2020-09-20 23:51:17 -04:00