[svn] assuan - r195 - in trunk: . src

svn author wk cvs at cvs.gnupg.org
Tue Jun 27 12:37:32 CEST 2006


Author: wk
Date: 2006-06-27 12:37:31 +0200 (Tue, 27 Jun 2006)
New Revision: 195

Modified:
   trunk/TODO
   trunk/src/assuan-client.c
Log:
Doc updates.


Modified: trunk/TODO
===================================================================
--- trunk/TODO	2005-10-24 09:25:25 UTC (rev 194)
+++ trunk/TODO	2006-06-27 10:37:31 UTC (rev 195)
@@ -3,3 +3,9 @@
 * When turning libassuan into a shared library, provide a general
   version as well as a Pth-enabled one.
 * Need API documentation.
+* assuan_transact returns immetitely on an error in the callback
+  function.  It might be Better to return the error to the caller. As
+  an example see dirmngr-client, where we need to send empty reponses
+  for unknown inquiries, albeit dirmngr itself would handle the
+  returns for assuan_inquire gracefully.  We need to chekc all
+  applications whether it is safe to change this.

Modified: trunk/src/assuan-client.c
===================================================================
--- trunk/src/assuan-client.c	2005-10-24 09:25:25 UTC (rev 194)
+++ trunk/src/assuan-client.c	2006-06-27 10:37:31 UTC (rev 195)
@@ -125,7 +125,9 @@
  * 
  * Return value: 0 on success or error code.  The error code may be
  * the one one returned by the server in error lines or from the
- * callback functions.
+ * callback functions.  Take care: When a callback returns an error
+ * this function returns immediately with an error and thus the caller
+ * will altter return an Assuan error (write erro in most cases).
  **/
 assuan_error_t
 assuan_transact (ASSUAN_CONTEXT ctx,




More information about the Gnupg-commits mailing list