Commit 76e5772
authored
bindings/c: Don't forward empty encryption key string (#2162)
op-sqlite, for example, always passes the remote encryption key:
```
DB opsqlite_libsql_open_sync(std::string const &name,
std::string const &base_path,
std::string const &url,
std::string const &auth_token, int sync_interval,
bool offline, std::string const &encryption_key,
std::string const &remote_encryption_key) {
```
Therefore, ensure that remote encryption key is not null and non-empty
before passing it as part of HTTP requests.1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
| |||
0 commit comments