summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-08-19 17:34:10 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-08-20 10:07:29 +0200
commit4ce96162f089e62d0d27ab305c227e0823439c10 (patch)
tree0441f93e8f76299a8d2b2c5db155df049c4c2f83 /ffi
parent7555cfeafb28fccd93aac9441cc18f985036cfc7 (diff)
net: Drop SKS pool in favor of keys.openpgp.org.
Diffstat (limited to 'ffi')
-rw-r--r--ffi/examples/configure.c2
-rw-r--r--ffi/examples/keyserver.c2
-rw-r--r--ffi/include/sequoia/net.h9
-rw-r--r--ffi/lang/python/sequoia/net.py4
-rw-r--r--ffi/src/net.rs13
5 files changed, 14 insertions, 16 deletions
diff --git a/ffi/examples/configure.c b/ffi/examples/configure.c
index 37401047..ca3d781a 100644
--- a/ffi/examples/configure.c
+++ b/ffi/examples/configure.c
@@ -31,7 +31,7 @@ main (int argc, char **argv)
error (1, 0, "Initializing sequoia failed: %s",
pgp_error_to_string (err));
- ks = sq_keyserver_sks_pool (ctx);
+ ks = sq_keyserver_keys_openpgp_org (ctx);
if (ks == NULL)
{
pgp_error_t err = sq_context_last_error (ctx);
diff --git a/ffi/examples/keyserver.c b/ffi/examples/keyserver.c
index 3a0acae7..715795d8 100644
--- a/ffi/examples/keyserver.c
+++ b/ffi/examples/keyserver.c
@@ -29,7 +29,7 @@ main (int argc, char **argv)
error (1, 0, "Initializing sequoia failed: %s",
pgp_error_to_string (err));
- ks = sq_keyserver_sks_pool (ctx);
+ ks = sq_keyserver_keys_openpgp_org (ctx);
if (ks == NULL)
{
pgp_error_t err = sq_context_last_error (ctx);
diff --git a/ffi/include/sequoia/net.h b/ffi/include/sequoia/net.h
index 4e2f030b..8b74f727 100644
--- a/ffi/include/sequoia/net.h
+++ b/ffi/include/sequoia/net.h
@@ -34,15 +34,14 @@ sq_keyserver_t sq_keyserver_with_cert (sq_context_t ctx,
size_t len);
/*/
-/// Returns a handle for the SKS keyserver pool.
+/// Returns a handle for keys.openpgp.org.
///
-/// The pool `hkps://hkps.pool.sks-keyservers.net` provides HKP
-/// services over https. It is authenticated using a certificate
-/// included in this library. It is a good default choice.
+/// The server at `hkps://keys.openpgp.org` distributes updates for
+/// OpenPGP certificates. It is a good default choice.
///
/// Returns `NULL` on errors.
/*/
-sq_keyserver_t sq_keyserver_sks_pool (sq_context_t ctx);
+sq_keyserver_t sq_keyserver_keys_openpgp_org (sq_context_t ctx);
/*/
/// Frees a keyserver object.
diff --git a/ffi/lang/python/sequoia/net.py b/ffi/lang/python/sequoia/net.py
index c5f4a7f4..a89c4e4f 100644
--- a/ffi/lang/python/sequoia/net.py
+++ b/ffi/lang/python/sequoia/net.py
@@ -19,8 +19,8 @@ class KeyServer(SQObject):
return KeyServer(ks, context=ctx)
@classmethod
- def sks_pool(cls, ctx):
- return KeyServer(lib.sq_keyserver_sks_pool(ctx.ref()),
+ def keys_openpgp_org(cls, ctx):
+ return KeyServer(lib.sq_keyserver_keys_openpgp_org(ctx.ref()),
context=ctx)
def get(self, keyid):
diff --git a/ffi/src/net.rs b/ffi/src/net.rs
index 5709e09a..29e46458 100644
--- a/ffi/src/net.rs
+++ b/ffi/src/net.rs
@@ -22,7 +22,7 @@
//! pgp_tpk_t tpk;
//!
//! ctx = sq_context_new (NULL);
-//! ks = sq_keyserver_sks_pool (ctx);
+//! ks = sq_keyserver_keys_openpgp_org (ctx);
//! id = pgp_keyid_from_bytes ((uint8_t *) "\x24\x7F\x6D\xAB\xC8\x49\x14\xFE");
//! tpk = sq_keyserver_get (ctx, ks, id);
//! ```
@@ -89,18 +89,17 @@ fn sq_keyserver_with_cert(ctx: *mut Context,
ffi_try_box!(KeyServer::with_cert(&ctx.c, &uri, cert))
}
-/// Returns a handle for the SKS keyserver pool.
+/// Returns a handle for keys.openpgp.org.
///
-/// The pool `hkps://hkps.pool.sks-keyservers.net` provides HKP
-/// services over https. It is authenticated using a certificate
-/// included in this library. It is a good default choice.
+/// The server at `hkps://keys.openpgp.org` distributes updates for
+/// OpenPGP certificates. It is a good default choice.
///
/// Returns `NULL` on errors.
#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
-fn sq_keyserver_sks_pool(ctx: *mut Context) -> *mut KeyServer {
+fn sq_keyserver_keys_openpgp_org(ctx: *mut Context) -> *mut KeyServer {
let ctx = ffi_param_ref_mut!(ctx);
ffi_make_fry_from_ctx!(ctx);
- ffi_try_box!(KeyServer::sks_pool(&ctx.c))
+ ffi_try_box!(KeyServer::keys_openpgp_org(&ctx.c))
}
/// Frees a keyserver object.