summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-08-23 16:55:26 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-08-27 12:58:07 +0200
commite5746684e84377dd8828f6a5a8ab4c0eec73c3ec (patch)
tree5261ba9f497ec5ce51d47198742919673de3c893 /openpgp-ffi
parent078c4d7ee16ea06977ec8cb7cf5571c880e9c710 (diff)
Convert markdown to intra-doc links.
- Apply cargo intraconv.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r--openpgp-ffi/src/amalgamation.rs6
-rw-r--r--openpgp-ffi/src/armor.rs6
-rw-r--r--openpgp-ffi/src/cert.rs6
-rw-r--r--openpgp-ffi/src/crypto.rs2
-rw-r--r--openpgp-ffi/src/error.rs2
-rw-r--r--openpgp-ffi/src/fingerprint.rs4
-rw-r--r--openpgp-ffi/src/key_amalgamation.rs6
-rw-r--r--openpgp-ffi/src/keyid.rs4
-rw-r--r--openpgp-ffi/src/lib.rs22
-rw-r--r--openpgp-ffi/src/packet/key.rs2
-rw-r--r--openpgp-ffi/src/packet/literal.rs2
-rw-r--r--openpgp-ffi/src/packet/mod.rs2
-rw-r--r--openpgp-ffi/src/packet/signature.rs2
-rw-r--r--openpgp-ffi/src/packet/userid.rs2
-rw-r--r--openpgp-ffi/src/packet_pile.rs4
-rw-r--r--openpgp-ffi/src/parse/mod.rs10
-rw-r--r--openpgp-ffi/src/parse/stream.rs4
-rw-r--r--openpgp-ffi/src/policy.rs2
-rw-r--r--openpgp-ffi/src/serialize.rs4
-rw-r--r--openpgp-ffi/src/tsk.rs4
20 files changed, 48 insertions, 48 deletions
diff --git a/openpgp-ffi/src/amalgamation.rs b/openpgp-ffi/src/amalgamation.rs
index b67a9752..f351c6ac 100644
--- a/openpgp-ffi/src/amalgamation.rs
+++ b/openpgp-ffi/src/amalgamation.rs
@@ -3,7 +3,7 @@
//!
//! Wraps [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`].
//!
-//! [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`]: ../../../sequoia_openpgp/cert/key_amalgamation/struct.KeyAmalgamation.html
+//! [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`]: super::super::super::sequoia_openpgp::cert::key_amalgamation::KeyAmalgamation
use libc::time_t;
@@ -32,7 +32,7 @@ type UserIDAmalgamationType<'a>
///
/// Wraps [`sequoia-openpgp::cert::amalgamation::ComponentAmalgamation`].
///
-/// [`sequoia-openpgp::cert::amalgamation::ComponentAmalgamation`]: ../../../sequoia_openpgp/cert/amalgamation/struct.ComponentAmalgamation.html
+/// [`sequoia-openpgp::cert::amalgamation::ComponentAmalgamation`]: super::super::super::sequoia_openpgp::cert::amalgamation::ComponentAmalgamation
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug")]
pub struct UserIDAmalgamation<'a>(UserIDAmalgamationType<'a>);
@@ -56,7 +56,7 @@ type ValidUserIDAmalgamationType<'a>
///
/// Wraps [`sequoia-openpgp::cert::amalgamation::ValidComponentAmalgamation`].
///
-/// [`sequoia-openpgp::cert::amalgamation::ValidComponentAmalgamation`]: ../../../sequoia_openpgp/cert/amalgamation/struct.ValidComponentAmalgamation.html
+/// [`sequoia-openpgp::cert::amalgamation::ValidComponentAmalgamation`]: super::super::super::sequoia_openpgp::cert::amalgamation::ValidComponentAmalgamation
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug")]
pub struct ValidUserIDAmalgamation<'a>(ValidUserIDAmalgamationType<'a>);
diff --git a/openpgp-ffi/src/armor.rs b/openpgp-ffi/src/armor.rs
index cc6c6fa2..a1c42a22 100644
--- a/openpgp-ffi/src/armor.rs
+++ b/openpgp-ffi/src/armor.rs
@@ -2,7 +2,7 @@
//!
//! Wraps [`sequoia-openpgp::armor`].
//!
-//! [`sequoia-openpgp::armor`]: ../../../sequoia_openpgp/armor/index.html
+//! [`sequoia-openpgp::armor`]: super::super::super::sequoia_openpgp::armor
use std::mem::size_of;
use std::ptr;
@@ -223,7 +223,7 @@ fn pgp_armor_reader_from_bytes(b: *const u8, len: size_t,
///
/// See [this] example.
///
-/// [this]: fn.pgp_armor_reader_new.html
+/// [this]: pgp_armor_reader_new()
#[::sequoia_ffi_macros::extern_fn] #[no_mangle]
pub extern "C" fn pgp_armor_reader_kind(reader: *const Reader)
-> c_int {
@@ -253,7 +253,7 @@ pub extern "C" fn pgp_armor_reader_kind(reader: *const Reader)
///
/// See [this] example.
///
-/// [this]: fn.pgp_armor_reader_new.html
+/// [this]: pgp_armor_reader_new()
#[::sequoia_ffi_macros::extern_fn] #[no_mangle]
pub extern "C" fn pgp_armor_reader_headers(errp: Option<&mut *mut crate::error::Error>,
reader: *mut Reader,
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs
index 37b17472..cf503019 100644
--- a/openpgp-ffi/src/cert.rs
+++ b/openpgp-ffi/src/cert.rs
@@ -2,8 +2,8 @@
//!
//! Wraps [`sequoia-openpgp::Cert`] and [related functionality].
//!
-//! [`sequoia-openpgp::Cert`]: ../../../sequoia_openpgp/cert/struct.Cert.html
-//! [related functionality]: ../../../sequoia_openpgp/cert/index.html
+//! [`sequoia-openpgp::Cert`]: super::super::super::sequoia_openpgp::cert::Cert
+//! [related functionality]: super::super::super::sequoia_openpgp::cert
use std::convert::TryFrom;
use std::ptr;
@@ -151,7 +151,7 @@ fn pgp_cert_fingerprint(cert: *const Cert)
///
/// This object writes out secret keys during serialization.
///
-/// [`TSK`]: ../tsk/struct.TSK.html
+/// [`TSK`]: super::tsk::TSK
#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
fn pgp_cert_as_tsk(cert: *const Cert) -> *mut TSK<'static> {
cert.ref_raw().as_tsk().move_into_raw()
diff --git a/openpgp-ffi/src/crypto.rs b/openpgp-ffi/src/crypto.rs
index d19732fc..ffc77c1e 100644
--- a/openpgp-ffi/src/crypto.rs
+++ b/openpgp-ffi/src/crypto.rs
@@ -2,7 +2,7 @@
//!
//! Wraps [`sequoia-openpgp::crypto`].
//!
-//! [`sequoia-openpgp::crypto`]: ../../../sequoia_openpgp/crypto/index.html
+//! [`sequoia-openpgp::crypto`]: super::super::super::sequoia_openpgp::crypto
use libc::size_t;
diff --git a/openpgp-ffi/src/error.rs b/openpgp-ffi/src/error.rs
index c03855ae..bb10c89c 100644
--- a/openpgp-ffi/src/error.rs
+++ b/openpgp-ffi/src/error.rs
@@ -12,7 +12,7 @@ use crate::RefRaw;
///
/// This wraps [`anyhow::Error`]s.
///
-/// [`anyhow::Error`]: https://docs.rs/failure/0.1.5/failure/struct.Error.html
+/// [`anyhow::Error`]: failure::Error
#[crate::ffi_wrapper_type(prefix = "pgp_", derive = "Display")]
pub struct Error(anyhow::Error);
diff --git a/openpgp-ffi/src/fingerprint.rs b/openpgp-ffi/src/fingerprint.rs
index 5d81b56c..6bb7ea80 100644
--- a/openpgp-ffi/src/fingerprint.rs
+++ b/openpgp-ffi/src/fingerprint.rs
@@ -8,7 +8,7 @@
//!
//! Wraps [`sequoia-openpgp::Fingerprint`].
//!
-//! [`sequoia-openpgp::Fingerprint`]: ../../../sequoia_openpgp/enum.Fingerprint.html
+//! [`sequoia-openpgp::Fingerprint`]: super::super::super::sequoia_openpgp::Fingerprint
use std::slice;
use libc::{c_char, size_t};
@@ -29,7 +29,7 @@ use crate::RefRaw;
///
/// Wraps [`sequoia-openpgp::Fingerprint`].
///
-/// [`sequoia-openpgp::Fingerprint`]: ../../../sequoia_openpgp/enum.Fingerprint.html
+/// [`sequoia-openpgp::Fingerprint`]: super::super::super::sequoia_openpgp::Fingerprint
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug, Display, Hash, PartialEq")]
pub struct Fingerprint(openpgp::Fingerprint);
diff --git a/openpgp-ffi/src/key_amalgamation.rs b/openpgp-ffi/src/key_amalgamation.rs
index 49544b91..2c9efebb 100644
--- a/openpgp-ffi/src/key_amalgamation.rs
+++ b/openpgp-ffi/src/key_amalgamation.rs
@@ -3,7 +3,7 @@
//!
//! Wraps [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`].
//!
-//! [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`]: ../../../sequoia_openpgp/cert/key_amalgamation/struct.KeyAmalgamation.html
+//! [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`]: super::super::super::sequoia_openpgp::cert::key_amalgamation::KeyAmalgamation
use std::slice;
use libc::{size_t, time_t};
@@ -35,7 +35,7 @@ type ErasedKeyAmalgamation<'a> =
///
/// Wraps [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`].
///
-/// [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`]: ../../../sequoia_openpgp/cert/key_amalgamation/struct.KeyAmalgamation.html
+/// [`sequoia-openpgp::cert::key_amalgamation::KeyAmalgamation`]: super::super::super::sequoia_openpgp::cert::key_amalgamation::KeyAmalgamation
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug")]
pub struct KeyAmalgamation<'a>(ErasedKeyAmalgamation<'a>);
@@ -60,7 +60,7 @@ pub extern "C" fn pgp_key_amalgamation_key<'a>(ka: *const KeyAmalgamation<'a>)
///
/// Wraps [`sequoia-openpgp::cert::key_amalgamation::ValidKeyAmalgamation`].
///
-/// [`sequoia-openpgp::cert::key_amalgamation::ValidKeyAmalgamation`]: ../../../sequoia_openpgp/cert/key_amalgamation/struct.ValidKeyAmalgamation.html
+/// [`sequoia-openpgp::cert::key_amalgamation::ValidKeyAmalgamation`]: super::super::super::sequoia_openpgp::cert::key_amalgamation::ValidKeyAmalgamation
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug")]
pub struct ValidKeyAmalgamation<'a>(ValidErasedKeyAmalgamation<'a>);
diff --git a/openpgp-ffi/src/keyid.rs b/openpgp-ffi/src/keyid.rs
index 1ad11207..f45555aa 100644
--- a/openpgp-ffi/src/keyid.rs
+++ b/openpgp-ffi/src/keyid.rs
@@ -8,7 +8,7 @@
//!
//! Wraps [`sequoia-openpgp::KeyID`].
//!
-//! [`sequoia-openpgp::KeyID`]: ../../../sequoia_openpgp/enum.KeyID.html
+//! [`sequoia-openpgp::KeyID`]: super::super::super::sequoia_openpgp::KeyID
use std::slice;
use libc::{c_char};
@@ -29,7 +29,7 @@ use crate::MoveIntoRaw;
///
/// Wraps [`sequoia-openpgp::KeyID`].
///
-/// [`sequoia-openpgp::KeyID`]: ../../../sequoia_openpgp/enum.KeyID.html
+/// [`sequoia-openpgp::KeyID`]: super::super::super::sequoia_openpgp::KeyID
#[crate::ffi_wrapper_type(prefix = "pgp_", name = "keyid",
derive = "Clone, Debug, Display, Hash, PartialEq")]
pub struct KeyID(openpgp::KeyID);
diff --git a/openpgp-ffi/src/lib.rs b/openpgp-ffi/src/lib.rs
index 8300dc5f..2b27d386 100644
--- a/openpgp-ffi/src/lib.rs
+++ b/openpgp-ffi/src/lib.rs
@@ -36,7 +36,7 @@
//! [RFC 6637]: https://tools.ietf.org/html/rfc6637
//! [RFC 4880bis]: https://tools.ietf.org/html/draft-ietf-openpgp-rfc4880bis-05
//! [unhashed signature subpackets]: https://tools.ietf.org/html/rfc4880#section-5.2.3.2
-//! [sequoia-core]: ../sequoia_core
+//! [sequoia-core]: super::sequoia_core
//!
//!
//! # Dear User,
@@ -70,7 +70,7 @@
//! closely resembles this crate.
//!
//! [The Rules]: #the-rules
-//! [corresponding Rust crate]: ../sequoia_openpgp/index.html
+//! [corresponding Rust crate]: super::sequoia_openpgp
//!
//!
//! # Examples
@@ -134,7 +134,7 @@
//! or the allocation for the string failed, which is considered
//! undefined behavior.
//!
-//! [`pgp_fingerprint_to_string`]: fingerprint/struct.Fingerprint.html#method.pgp_fingerprint_to_string
+//! [`pgp_fingerprint_to_string`]: fingerprint::Fingerprint::pgp_fingerprint_to_string()
//!
//! Failing functions signal failure either in-band (e.g. `NULL`, or
//! -1), using `pgp_status_t`, and may store complex error information
@@ -145,16 +145,16 @@
//! on the other hand, will return `NULL` and store a complex error at
//! the location given using the `errp` parameter.
//!
-//! [`pgp_fingerprint_from_hex`]: fingerprint/struct.Fingerprint.html#method.pgp_fingerprint_from_hex
-//! [`pgp_packet_parser_from_bytes`]: parse/fn.pgp_packet_parser_from_bytes.html
+//! [`pgp_fingerprint_from_hex`]: fingerprint::Fingerprint::pgp_fingerprint_from_hex()
+//! [`pgp_packet_parser_from_bytes`]: parse::pgp_packet_parser_from_bytes()
//!
//! Errors may be inspected using [`pgp_error_status`], and formatted
//! as an error message using [`pgp_error_to_string`]. Errors must be freed
//! using [`pgp_error_free`].
//!
-//! [`pgp_error_status`]: error/fn.pgp_error_status.html
-//! [`pgp_error_to_string`]: error/fn.pgp_error_to_string.html
-//! [`pgp_error_free`]: error/fn.pgp_error_free.html
+//! [`pgp_error_status`]: error::pgp_error_status()
+//! [`pgp_error_to_string`]: error::pgp_error_to_string()
+//! [`pgp_error_free`]: error::pgp_error_free()
//!
//! ## Types
//!
@@ -173,8 +173,8 @@
//! from a hexadecimal number, and then [pretty-print] it for user
//! consumption:
//!
-//! [parse a fingerprint]: fingerprint/fn.pgp_fingerprint_from_hex.html
-//! [pretty-print]: fingerprint/fn.pgp_fingerprint_to_string.html
+//! [parse a fingerprint]: fingerprint::pgp_fingerprint_from_hex()
+//! [pretty-print]: fingerprint::pgp_fingerprint_to_string()
//!
//! ```c
//! #include <assert.h>
@@ -281,7 +281,7 @@
//! data, and later use `PGP_ARMOR_KIND_FILE` to check what we got in
//! the end.
//!
-//! [constructor]: armor/fn.pgp_armor_reader_from_bytes.html
+//! [constructor]: armor::pgp_armor_reader_from_bytes()
//!
//! ```c
//! #include <assert.h>
diff --git a/openpgp-ffi/src/packet/key.rs b/openpgp-ffi/src/packet/key.rs
index 60d2ae3c..2a2386c5 100644
--- a/openpgp-ffi/src/packet/key.rs
+++ b/openpgp-ffi/src/packet/key.rs
@@ -29,7 +29,7 @@ type UnspecifiedKey =
///
/// Wraps [`sequoia-openpgp::packet::Key`].
///
-/// [`sequoia-openpgp::packet::key::Key`]: ../../../../sequoia_openpgp/packet/enum.Key.html
+/// [`sequoia-openpgp::packet::key::Key`]: super::super::super::super::sequoia_openpgp::packet::Key
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug, PartialEq, Parse")]
pub struct Key(UnspecifiedKey);
diff --git a/openpgp-ffi/src/packet/literal.rs b/openpgp-ffi/src/packet/literal.rs
index 7bb25844..65ddaaa3 100644
--- a/openpgp-ffi/src/packet/literal.rs
+++ b/openpgp-ffi/src/packet/literal.rs
@@ -28,7 +28,7 @@ use crate::RefRaw;
///
/// Wraps [`sequoia-openpgp::packet::literal::Literal`].
///
-/// [`sequoia-openpgp::packet::literal::Literal`]: ../../../../sequoia_openpgp/packet/literal/struct.Literal.html
+/// [`sequoia-openpgp::packet::literal::Literal`]: super::super::super::super::sequoia_openpgp::packet::literal::Literal
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Debug, Parse")]
pub struct Literal(openpgp::packet::Literal);
diff --git a/openpgp-ffi/src/packet/mod.rs b/openpgp-ffi/src/packet/mod.rs
index 5ccd2eab..d8727590 100644
--- a/openpgp-ffi/src/packet/mod.rs
+++ b/openpgp-ffi/src/packet/mod.rs
@@ -43,7 +43,7 @@ use crate::RefRaw;
///
/// Wraps [`sequoia-openpgp::Packet`].
///
-/// [`sequoia-openpgp::Packet`]: ../../../sequoia_openpgp/enum.Packet.html
+/// [`sequoia-openpgp::Packet`]: super::super::super::sequoia_openpgp::Packet
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug, Hash, PartialEq")]
pub struct Packet(openpgp::Packet);
diff --git a/openpgp-ffi/src/packet/signature.rs b/openpgp-ffi/src/packet/signature.rs
index 0cb34fa5..5705900d 100644
--- a/openpgp-ffi/src/packet/signature.rs
+++ b/openpgp-ffi/src/packet/signature.rs
@@ -34,7 +34,7 @@ use crate::RefRaw;
///
/// Wraps [`sequoia-openpgp::packet::Signature`].
///
-/// [`sequoia-openpgp::packet::Signature`]: ../../../../sequoia_openpgp/packet/enum.Signature.html
+/// [`sequoia-openpgp::packet::Signature`]: super::super::super::super::sequoia_openpgp::packet::Signature
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug, PartialEq, Parse")]
pub struct Signature(openpgp::packet::Signature);
diff --git a/openpgp-ffi/src/packet/userid.rs b/openpgp-ffi/src/packet/userid.rs
index 2e9a68c0..796e4778 100644
--- a/openpgp-ffi/src/packet/userid.rs
+++ b/openpgp-ffi/src/packet/userid.rs
@@ -20,7 +20,7 @@ use crate::MoveIntoRaw;
///
/// Wraps [`sequoia-openpgp::packet::UserID`].
///
-/// [`sequoia-openpgp::packet::UserID`]: ../../../sequoia_openpgp/packet/struct.UserID.html
+/// [`sequoia-openpgp::packet::UserID`]: super::super::super::sequoia_openpgp::packet::UserID
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug, PartialEq")]
pub struct UserID(openpgp::packet::UserID);
diff --git a/openpgp-ffi/src/packet_pile.rs b/openpgp-ffi/src/packet_pile.rs
index eca015c6..3a64a3c3 100644
--- a/openpgp-ffi/src/packet_pile.rs
+++ b/openpgp-ffi/src/packet_pile.rs
@@ -3,7 +3,7 @@
//!
//! Wraps [`sequoia-openpgp::PacketPile`].
//!
-//! [`sequoia-openpgp::PacketPile`]: ../../../sequoia_openpgp/struct.PacketPile.html
+//! [`sequoia-openpgp::PacketPile`]: super::super::super::sequoia_openpgp::PacketPile
use sequoia_openpgp as openpgp;
@@ -11,7 +11,7 @@ use sequoia_openpgp as openpgp;
///
/// Wraps [`sequoia-openpgp::PacketPile`].
///
-/// [`sequoia-openpgp::PacketPile`]: ../../../sequoia_openpgp/struct.PacketPile.html
+/// [`sequoia-openpgp::PacketPile`]: super::super::super::sequoia_openpgp::PacketPile
#[crate::ffi_wrapper_type(prefix = "pgp_",
derive = "Clone, Debug, PartialEq, Parse, Serialize")]
pub struct PacketPile(openpgp::PacketPile);
diff --git a/openpgp-ffi/src/parse/mod.rs b/openpgp-ffi/src/parse/mod.rs
index dea6d0e4..7372fd72 100644
--- a/openpgp-ffi/src/parse/mod.rs
+++ b/openpgp-ffi/src/parse/mod.rs
@@ -3,8 +3,8 @@
//! Wraps [`sequoia-openpgp::parse::PacketParser`] and [related
//! functionality].
//!
-//! [`sequoia-openpgp::parse::PacketParser`]: ../../../sequoia_openpgp/parse/struct.PacketParser.html
-//! [related functionality]: ../../../sequoia_openpgp/parse/index.html
+//! [`sequoia-openpgp::parse::PacketParser`]: super::super::super::sequoia_openpgp::parse::PacketParser
+//! [related functionality]: super::super::super::sequoia_openpgp::parse
use std::mem::forget;
use std::ptr;
@@ -140,8 +140,8 @@ pub extern "C" fn pgp_packet_parser_recursion_depth
/// recurse into the container, but skips any packets it contains.
/// To recurse into the container, use the [`recurse()`] method.
///
-/// [`PacketParsererBuilder`]: ../../../sequoia_openpgp/parse/struct.PacketParserBuilder.html
-/// [`recurse()`]: fn.pgp_packet_parser_recurse.html
+/// [`PacketParsererBuilder`]: super::super::super::sequoia_openpgp::parse::PacketParserBuilder
+/// [`recurse()`]: pgp_packet_parser_recurse()
///
/// The return value is a tuple containing:
///
@@ -234,7 +234,7 @@ pub extern "C" fn pgp_packet_parser_next<'a>
/// because we always visit interior nodes, we can't recurse more
/// than one level at a time.
///
-/// [`next()`]: fn.pgp_packet_parser_next.html
+/// [`next()`]: pgp_packet_parser_next()
///
/// The items of the tuple are returned in out-parameters. If you do
/// not wish to receive the value, pass `NULL` as the parameter.
diff --git a/openpgp-ffi/src/parse/stream.rs b/openpgp-ffi/src/parse/stream.rs
index 8f889b14..653c152b 100644
--- a/openpgp-ffi/src/parse/stream.rs
+++ b/openpgp-ffi/src/parse/stream.rs
@@ -8,7 +8,7 @@
//! Wraps the streaming parsing functions, see
//! [`sequoia-openpgp::parse::stream`].
//!
-//! [`sequoia-openpgp::parse::stream`]: ../../../../sequoia_openpgp/parse/stream/index.html
+//! [`sequoia-openpgp::parse::stream`]: super::super::super::super::sequoia_openpgp::parse::stream
use std::ptr;
use std::sync::Mutex;
@@ -670,7 +670,7 @@ fn pgp_verifier_new<'a>(errp: Option<&mut *mut crate::error::Error>,
///
/// Wraps [`sequoia-openpgp::parse::stream::DetachedVerifier`].
///
-/// [`sequoia-openpgp::parse::stream::DetachedVerifier`]: ../../../../sequoia_openpgp/parse/stream/struct.DetachedVerifier.html
+/// [`sequoia-openpgp::parse::stream::DetachedVerifier`]: super::super::super::super::sequoia_openpgp::parse::stream::DetachedVerifier
#[crate::ffi_wrapper_type(prefix = "pgp_")]
pub struct DetachedVerifier(openpgp::parse::stream::DetachedVerifier<'static, VHelper>);
diff --git a/openpgp-ffi/src/policy.rs b/openpgp-ffi/src/policy.rs
index d1857796..6614c271 100644
--- a/openpgp-ffi/src/policy.rs
+++ b/openpgp-ffi/src/policy.rs
@@ -6,7 +6,7 @@
//! Wraps the policy object functions, see
//! [`sequoia-openpgp::policy`].
//!
-//! [`sequoia-openpgp::policy`]: ../../sequoia_openpgp/policy/index.html
+//! [`sequoia-openpgp::policy`]: super::super::sequoia_openpgp::policy
use sequoia_openpgp as openpgp;
diff --git a/openpgp-ffi/src/serialize.rs b/openpgp-ffi/src/serialize.rs
index 0d654457..36a60a1f 100644
--- a/openpgp-ffi/src/serialize.rs
+++ b/openpgp-ffi/src/serialize.rs
@@ -3,7 +3,7 @@
//! Wraps the streaming packet serialization, see
//! [`sequoia-openpgp::serialize::stream`].
//!
-//! [`sequoia-openpgp::serialize::stream`]: ../../../sequoia_openpgp/serialize/stream/index.html
+//! [`sequoia-openpgp::serialize::stream`]: super::super::super::sequoia_openpgp::serialize::stream
use std::ptr;
use std::slice;
@@ -238,7 +238,7 @@ pub extern "C" fn pgp_literal_writer_new
///
/// Wraps [`sequoia-openpgp::serialize::stream::Recipient`].
///
-/// [`sequoia-openpgp::serialize::stream::Recipient`]: ../../../sequoia_openpgp/serialize/stream/struct.Recipient.html
+/// [`sequoia-openpgp::serialize::stream::Recipient`]: super::super::super::sequoia_openpgp::serialize::stream::Recipient
#[crate::ffi_wrapper_type(prefix = "pgp_", derive = "Debug")]
pub struct Recipient<'a>(openpgp::serialize::stream::Recipient<'a>);
diff --git a/openpgp-ffi/src/tsk.rs b/openpgp-ffi/src/tsk.rs
index 08785015..c232a93f 100644
--- a/openpgp-ffi/src/tsk.rs
+++ b/openpgp-ffi/src/tsk.rs
@@ -2,7 +2,7 @@
//!
//! Wraps [`sequoia-openpgp::serialize::TSK`].
//!
-//! [`sequoia-openpgp::serialize::TSK`]: ../../../sequoia_openpgp/serialize/struct.TSK.html
+//! [`sequoia-openpgp::serialize::TSK`]: super::super::super::sequoia_openpgp::serialize::TSK
use sequoia_openpgp as openpgp;
@@ -15,6 +15,6 @@ use sequoia_openpgp as openpgp;
///
/// Wraps [`sequoia-openpgp::serialize::TSK`].
///
-/// [`sequoia-openpgp::serialize::TSK`]: ../../../sequoia_openpgp/serialize/struct.TSK.html
+/// [`sequoia-openpgp::serialize::TSK`]: super::super::super::sequoia_openpgp::serialize::TSK
#[crate::ffi_wrapper_type(prefix = "pgp_", name = "tsk", derive = "Serialize")]
pub struct TSK<'a>(openpgp::serialize::TSK<'a>);