From: Simon Josefsson Date: Wed, 14 Nov 2007 15:36:37 +0000 (+0100) Subject: Use new API. X-Git-Tag: gnutls_2_1_6~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=610bd3f31381dd2f802439b73142647783eeea51;p=thirdparty%2Fgnutls.git Use new API. --- diff --git a/src/cli.c b/src/cli.c index 29bba31226..a9af923a15 100644 --- a/src/cli.c +++ b/src/cli.c @@ -166,7 +166,7 @@ static unsigned int x509_crt_size; static gnutls_x509_crt_t x509_crt[MAX_CRT]; static gnutls_x509_privkey_t x509_key = NULL; -static gnutls_openpgp_key_t pgp_crt = NULL; +static gnutls_openpgp_crt_t pgp_crt = NULL; static gnutls_openpgp_privkey_t pgp_key = NULL; /* Load the certificate and the private key. @@ -245,10 +245,10 @@ load_keys (void) fprintf (stderr, "*** Error loading PGP cert file.\n"); exit (1); } - gnutls_openpgp_key_init (&pgp_crt); + gnutls_openpgp_crt_init (&pgp_crt); ret = - gnutls_openpgp_key_import (pgp_crt, &data, GNUTLS_OPENPGP_FMT_BASE64); + gnutls_openpgp_crt_import (pgp_crt, &data, GNUTLS_OPENPGP_FMT_BASE64); if (ret < 0) { fprintf (stderr, diff --git a/src/common.c b/src/common.c index 49a05e9be5..ab1a907687 100644 --- a/src/common.c +++ b/src/common.c @@ -365,7 +365,7 @@ print_openpgp_info (gnutls_session_t session, const char *hostname) print = raw_to_string (digest, digest_size); printf (" # PGP Key version: %d\n", - gnutls_openpgp_key_get_version (crt)); + gnutls_openpgp_crt_get_version (crt)); bits = 0; algo = gnutls_openpgp_crt_get_pk_algorithm (crt, &bits);