summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-04-02 14:18:39 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-04-02 16:42:51 +0200
commit66209838f4a76f8cf542263fb8837c10cb0c3501 (patch)
tree04e55c1ebaff12dc51a53ac65f19aeee0a348f33
parent1e177d46893824f92d730a58dc0b006a52f2e5d4 (diff)
openpgp-ffi: A Rust bool is a C _Bool, not a C int.
-rw-r--r--openpgp-ffi/include/sequoia/openpgp.h6
-rw-r--r--openpgp-ffi/include/sequoia/openpgp/crypto.h4
-rw-r--r--openpgp-ffi/include/sequoia/openpgp/packet.h2
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.