From d54ee4863398a237e37bc3f6563f1e033116af66 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 14 Sep 2007 12:27:54 +0000 Subject: [PATCH] Fixed bug in gpgme_data_relase_and_get_mem. Typo fixes. --- trunk/doc/ChangeLog | 4 ++++ trunk/doc/gpgme.texi | 2 +- trunk/gpgme/ChangeLog | 4 ++++ trunk/gpgme/data-mem.c | 9 ++++++++- trunk/gpgme/verify.c | 2 +- 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/trunk/doc/ChangeLog b/trunk/doc/ChangeLog index f711a12..7328f38 100644 --- a/trunk/doc/ChangeLog +++ b/trunk/doc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-11 Werner Koch + + * gpgme.texi (I/O Callback Example): Typo fix. + 2007-08-07 Werner Koch * gpgme.texi (Verify): Describe chain_model. diff --git a/trunk/doc/gpgme.texi b/trunk/doc/gpgme.texi index f480715..4692d26 100644 --- a/trunk/doc/gpgme.texi +++ b/trunk/doc/gpgme.texi @@ -5031,7 +5031,7 @@ monitor these file descriptors for activity and call the appropriate I/O callbacks. The following example illustrates how to do that. The example uses -locking to show in which way the the callbacks and the event loop can +locking to show in which way the callbacks and the event loop can run concurrently. For the event loop, we use a fixed array. For a real-world implementation, you should use a dynamically sized structure because the number of file descriptors needed for a crypto diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index d115dc6..53a1d0b 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2007-09-14 Werner Koch + + * data-mem.c (gpgme_data_release_and_get_mem): Fix tracing bug. + 2007-09-14 Marcus Brinkmann * gpgme.c (gpgme_release): Call gpgme_sig_notation_clear. diff --git a/trunk/gpgme/data-mem.c b/trunk/gpgme/data-mem.c index bc71806..b58a3c0 100644 --- a/trunk/gpgme/data-mem.c +++ b/trunk/gpgme/data-mem.c @@ -257,7 +257,14 @@ gpgme_data_release_and_get_mem (gpgme_data_t dh, size_t *r_len) gpgme_data_release (dh); - TRACE_SUC2 ("buffer=%p, len=%u", str, *r_len); + if (r_len) + { + TRACE_SUC2 ("buffer=%p, len=%u", str, *r_len); + } + else + { + TRACE_SUC1 ("buffer=%p", str); + } return str; } diff --git a/trunk/gpgme/verify.c b/trunk/gpgme/verify.c index 71221bb..ef1ccd6 100644 --- a/trunk/gpgme/verify.c +++ b/trunk/gpgme/verify.c @@ -552,7 +552,7 @@ parse_trust (gpgme_signature_t sig, gpgme_status_code_t code, char *args) { while (*args == ' ') args++; - if (!strncmp (args, "cm", 2) && (args[2] == ' ' || !args[2])) + if (!strncmp (args, "chain", 2) && (args[2] == ' ' || !args[2])) sig->chain_model = 1; } } -- 2.26.2