summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-02-21 11:26:52 +0100
committerSimon Josefsson <simon@josefsson.org>2008-02-21 11:26:52 +0100
commitf70be662d54b075394099b0182494c3b17a6c725 (patch)
treee48b159165c9ffcd8bba05feb1238cfd4a8985fc
parent0d9e0e07aa18981ff01ac67360a3feb1f4410078 (diff)
downloadgnutls-f70be662d54b075394099b0182494c3b17a6c725.tar.gz
Cleanup gnutls_openpgp_crt_get_id vs gnutls_openpgp_crt_get_key_id.
-rw-r--r--NEWS4
-rw-r--r--includes/gnutls/compat.h3
-rw-r--r--lib/openpgp/pgp.c15
3 files changed, 4 insertions, 18 deletions
diff --git a/NEWS b/NEWS
index 1b1935dece..e85cbb9549 100644
--- a/NEWS
+++ b/NEWS
@@ -45,9 +45,7 @@ gnutls_certificate_export_x509_cas: ADDED
gnutls_certificate_export_x509_crls: ADDED
gnutls_certificate_export_openpgp_keyring: ADDED
gnutls_openpgp_keyid_t: ADDED, instead of hard-coded 'unsigned char[8]'.
-gnutls_openpgp_crt_get_key_id: ADDED to account for new keyid type,
- obsoletes gnutls_openpgp_crt_get_id().
-gnutls_openpgp_privkey_get_id: RENAMED to gnutls_openpgp_privkey_get_key_id
+gnutls_openpgp_crt_get_key_id: ADDED, obsoletes gnutls_openpgp_crt_get_id.
gnutls_openpgp_crt_get_revoked_status: ADDED
gnutls_openpgp_crt_get_subkey_count: ADDED
gnutls_openpgp_crt_get_subkey_idx: ADDED
diff --git a/includes/gnutls/compat.h b/includes/gnutls/compat.h
index ee23e49ad2..a60e8fedc1 100644
--- a/includes/gnutls/compat.h
+++ b/includes/gnutls/compat.h
@@ -93,4 +93,7 @@
#define gnutls_openpgp_key_get_id gnutls_openpgp_crt_get_id
#define gnutls_openpgp_key_check_hostname gnutls_openpgp_crt_check_hostname
+/* OpenPGP stuff renamed in 2.2.x. */
+#define gnutls_openpgp_crt_get_id gnutls_openpgp_crt_get_key_id
+
#endif /* GCOMPAT_H */
diff --git a/lib/openpgp/pgp.c b/lib/openpgp/pgp.c
index 1775569ed6..7b07e319b3 100644
--- a/lib/openpgp/pgp.c
+++ b/lib/openpgp/pgp.c
@@ -471,21 +471,6 @@ gnutls_openpgp_crt_get_key_id (gnutls_openpgp_crt_t key, gnutls_openpgp_keyid_t
return 0;
}
-/*-
- * gnutls_openpgp_crt_get_id - Gets the keyID
- * @key: the structure that contains the OpenPGP public key.
- * @keyid: the buffer to save the keyid.
- *
- * Returns the 64-bit keyID of the OpenPGP key.
- *
- * Deprecated: Use gnutls_openpgp_crt_get_key_id() instead.
- -*/
-int
-gnutls_openpgp_crt_get_id (gnutls_openpgp_crt_t key, unsigned char keyid[8])
-{
- return gnutls_openpgp_crt_get_key_id( key, keyid);
-}
-
/**
* gnutls_openpgp_crt_get_revoked_status - Gets the revoked status of the key
* @key: the structure that contains the OpenPGP public key.