summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-02 22:00:31 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-02 22:00:31 +0000
commite7d5a4ee4a160060dec7fd27aed237da276dfc92 (patch)
treee12806c2904586079500c5bda5a57c3b93306e9a
parentb8393542bb50bb4503f65529a68d551d3e7e4d1b (diff)
downloadgnutls-e7d5a4ee4a160060dec7fd27aed237da276dfc92.tar.gz
depends on opencdk 0.3.5
-rw-r--r--configure.in4
-rw-r--r--doc/tex/ex-pgp-keyserver.tex12
2 files changed, 5 insertions, 11 deletions
diff --git a/configure.in b/configure.in
index 43e408971e..ef9fff0146 100644
--- a/configure.in
+++ b/configure.in
@@ -293,10 +293,10 @@ AC_ARG_ENABLE( openpgp-authentication, [ --disable-openpgp-authentication disab
)
if test x$ac_enable_openpgp != xno; then
AC_MSG_RESULT(no)
- AM_PATH_LIBOPENCDK( 0.3.2, AC_DEFINE(HAVE_LIBOPENCDK, 1, [have libopencdk]),
+ AM_PATH_LIBOPENCDK( 0.3.5, AC_DEFINE(HAVE_LIBOPENCDK, 1, [have libopencdk]),
AC_MSG_WARN([[
***
-*** libopencdk 0.3.2 was not found. You will not be able to use OpenPGP keys with gnutls.
+*** libopencdk 0.3.5 was not found. You will not be able to use OpenPGP keys with gnutls.
]]))
else
AC_MSG_RESULT(yes)
diff --git a/doc/tex/ex-pgp-keyserver.tex b/doc/tex/ex-pgp-keyserver.tex
index 6482d81527..c5eaca1ef3 100644
--- a/doc/tex/ex-pgp-keyserver.tex
+++ b/doc/tex/ex-pgp-keyserver.tex
@@ -39,15 +39,9 @@ recv_openpgp_key(gnutls_session session, const unsigned char *keyfpr,
CDK_DBSEARCH_FPR, &knode );
if( !rc ) {
- size_t len = 20000;
- buf = cdk_calloc( 1, len + 1 );
+ size_t len;
- if (buf == NULL) {
- rc = -1;
- goto finish;
- }
-
- cdk_kbnode_write_to_mem( knode, buf, &len);
+ cdk_kbnode_write_to_mem( knode, NULL, &len);
key->data = malloc( len);
if (key->data==NULL) {
@@ -55,7 +49,7 @@ recv_openpgp_key(gnutls_session session, const unsigned char *keyfpr,
goto finish;
}
- memcpy( key->data, buf, len);
+ cdk_kbnode_write_to_mem( knode, key->data, &len);
rc = 0; /* success */