From 66209838f4a76f8cf542263fb8837c10cb0c3501 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 2 Apr 2020 14:18:39 +0200 Subject: openpgp-ffi: A Rust bool is a C _Bool, not a C int. - Cf. c4f087f886bd66f4177093569db615dc1c1e9e1d --- openpgp-ffi/include/sequoia/openpgp.h | 6 +++--- openpgp-ffi/include/sequoia/openpgp/crypto.h | 4 ++-- openpgp-ffi/include/sequoia/openpgp/packet.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h index c5056b15..73f65886 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -60,7 +60,7 @@ char *pgp_keyid_to_hex (const pgp_keyid_t keyid); /*/ /// Compares KeyIDs. /*/ -int pgp_keyid_equal (const pgp_keyid_t a, const pgp_keyid_t b); +bool pgp_keyid_equal (const pgp_keyid_t a, const pgp_keyid_t b); /* sequoia::openpgp::Fingerprint. */ @@ -122,7 +122,7 @@ pgp_keyid_t pgp_fingerprint_to_keyid (const pgp_fingerprint_t fp); /*/ /// Compares Fingerprints. /*/ -int pgp_fingerprint_equal (const pgp_fingerprint_t a, const pgp_fingerprint_t b); +bool pgp_fingerprint_equal (const pgp_fingerprint_t a, const pgp_fingerprint_t b); /* sequoia::openpgp::RevocationStatus. */ @@ -795,7 +795,7 @@ pgp_cert_t pgp_cert_clone (pgp_cert_t cert); /*/ /// Compares Certs. /*/ -int pgp_cert_equal (const pgp_cert_t a, const pgp_cert_t b); +bool pgp_cert_equal (const pgp_cert_t a, const pgp_cert_t b); /*/ /// Returns a human readable description of this object intended for diff --git a/openpgp-ffi/include/sequoia/openpgp/crypto.h b/openpgp-ffi/include/sequoia/openpgp/crypto.h index 9a3c3964..d0330da4 100644 --- a/openpgp-ffi/include/sequoia/openpgp/crypto.h +++ b/openpgp-ffi/include/sequoia/openpgp/crypto.h @@ -32,7 +32,7 @@ pgp_session_key_t pgp_session_key_clone (pgp_session_key_t session_key); /*/ /// Compares session keys. /*/ -int pgp_session_key_equal (const pgp_session_key_t a, +bool pgp_session_key_equal (const pgp_session_key_t a, const pgp_session_key_t b); /*/ @@ -59,7 +59,7 @@ pgp_password_t pgp_password_clone (pgp_password_t password); /*/ /// Compares passwords. /*/ -int pgp_password_equal (const pgp_password_t a, const pgp_password_t b); +bool pgp_password_equal (const pgp_password_t a, const pgp_password_t b); typedef struct pgp_key_unencrypted *pgp_key_unencrypted_t; diff --git a/openpgp-ffi/include/sequoia/openpgp/packet.h b/openpgp-ffi/include/sequoia/openpgp/packet.h index 8035b0c3..702ad355 100644 --- a/openpgp-ffi/include/sequoia/openpgp/packet.h +++ b/openpgp-ffi/include/sequoia/openpgp/packet.h @@ -20,7 +20,7 @@ char *pgp_packet_debug (const pgp_packet_t fp); /*/ /// Compares objects of this kind. /*/ -int pgp_packet_equal (const pgp_packet_t a, const pgp_packet_t b); +bool pgp_packet_equal (const pgp_packet_t a, const pgp_packet_t b); /*/ /// Hashes this object. -- cgit v1.2.3