diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-05-15 16:28:11 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-05-15 16:29:55 +0200 |
commit | a25ef6974e0ba3989f6205c19a1f9ccfc81db584 (patch) | |
tree | 4ce3b386923515a662051c40f67a135ee15681f6 /ffi/examples | |
parent | 36e2d97ac013e023feb27df939c3f6d6e32d8669 (diff) |
core, store, tool: Use realm instead of domain.
- Remove the domain parameter from core::Context.
- Replace it with a realm to be passed in when opening a store.
- For sq, merge store name and realm into the --store parameter.
- Fixes #105.
Diffstat (limited to 'ffi/examples')
-rw-r--r-- | ffi/examples/configure.c | 2 | ||||
-rw-r--r-- | ffi/examples/keyserver.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ffi/examples/configure.c b/ffi/examples/configure.c index 23e243ac..37401047 100644 --- a/ffi/examples/configure.c +++ b/ffi/examples/configure.c @@ -24,7 +24,7 @@ main (int argc, char **argv) sq_context_t ctx; sq_keyserver_t ks; - cfg = sq_context_configure ("org.sequoia-pgp.example"); + cfg = sq_context_configure (); sq_config_network_policy (cfg, SQ_NETWORK_POLICY_OFFLINE); ctx = sq_config_build (cfg, &err); if (ctx == NULL) diff --git a/ffi/examples/keyserver.c b/ffi/examples/keyserver.c index 1e6ca135..3a0acae7 100644 --- a/ffi/examples/keyserver.c +++ b/ffi/examples/keyserver.c @@ -24,7 +24,7 @@ main (int argc, char **argv) sq_keyserver_t ks; pgp_tpk_t tpk; - ctx = sq_context_new ("org.sequoia-pgp.example", &err); + ctx = sq_context_new (&err); if (ctx == NULL) error (1, 0, "Initializing sequoia failed: %s", pgp_error_to_string (err)); |