summaryrefslogtreecommitdiff
path: root/libextra/gnutls_openpgp.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2007-10-19 19:22:38 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2007-10-19 19:22:38 +0300
commit673cd9568589a79d5b4da76cc686acd79d5cbb87 (patch)
treefab8515c6935f07698cff7db49f8a59b3fb62f47 /libextra/gnutls_openpgp.c
parent1fdb085eb3e844ca38b3010b0bdebf63263acce7 (diff)
downloadgnutls-673cd9568589a79d5b4da76cc686acd79d5cbb87.tar.gz
Occurences of gnutls_openpgp_key were renamed to gnutls_openpgp_cert,
leaving an API compatibility layer.
Diffstat (limited to 'libextra/gnutls_openpgp.c')
-rw-r--r--libextra/gnutls_openpgp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c
index 82066586a6..cc867975da 100644
--- a/libextra/gnutls_openpgp.c
+++ b/libextra/gnutls_openpgp.c
@@ -307,7 +307,7 @@ openpgp_pk_to_gnutls_cert (gnutls_cert * cert, cdk_pkt_pubkey_t pk)
int
_gnutls_openpgp_raw_privkey_to_gkey (gnutls_privkey * pkey,
const gnutls_datum_t * raw_key,
- gnutls_openpgp_key_fmt_t format)
+ gnutls_openpgp_cert_fmt_t format)
{
cdk_kbnode_t snode = NULL;
cdk_packet_t pkt;
@@ -999,7 +999,7 @@ _gnutls_openpgp_cert_to_gcert (gnutls_cert * gcert, gnutls_openpgp_cert_t cert)
gcert->cert_type = GNUTLS_CRT_OPENPGP;
- ret = gnutls_openpgp_key_export (cert, GNUTLS_OPENPGP_FMT_RAW,
+ ret = gnutls_openpgp_cert_export (cert, GNUTLS_OPENPGP_FMT_RAW,
NULL, &der_size);
if (ret != GNUTLS_E_SHORT_MEMORY_BUFFER)
{
@@ -1014,7 +1014,7 @@ _gnutls_openpgp_cert_to_gcert (gnutls_cert * gcert, gnutls_openpgp_cert_t cert)
return GNUTLS_E_MEMORY_ERROR;
}
- ret = gnutls_openpgp_key_export (cert, GNUTLS_OPENPGP_FMT_RAW,
+ ret = gnutls_openpgp_cert_export (cert, GNUTLS_OPENPGP_FMT_RAW,
der, &der_size);
if (ret < 0)
{