diff options
author | Werner Koch <wk@gnupg.org> | 2006-11-22 13:03:20 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-11-22 13:03:20 +0000 |
commit | e064b81c0ad9f5d6933aff6753b03a6b53f6d752 (patch) | |
tree | 7a963d1f4e704dfb6b3e8d33a8a3f4cffaa28663 | |
parent | 86015ecc789e84597c9b50119799e42b4c97f8ff (diff) | |
download | libassuan-e064b81c0ad9f5d6933aff6753b03a6b53f6d752.tar.gz |
Preparing a release
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/assuan-handler.c | 15 |
6 files changed, 29 insertions, 3 deletions
@@ -1,3 +1,7 @@ +2006-11-22 Werner Koch <wk@g10code.com> + + Released 1.0.1. + 2006-11-21 Werner Koch <wk@g10code.com> * configure.ac (AH_BOTTOM): Define PTH_SYSCALL_SOFT to 0. @@ -1,10 +1,12 @@ -Noteworthy changes in version 1.0.1 +Noteworthy changes in version 1.0.1 (2006-11-22) ------------------------------------------------ * New function: assuan_set_io_monitor. * New function: assuan_register_post_cmd_notify. + * Fixed a memory leak. + Noteworthy changes in version 1.0.0 (2006-10-31) ------------------------------------------------ @@ -1,7 +1,7 @@ Libassuan =========== -This is the IPC library used by GnuPG 1.9, GPGME and a few other +This is the IPC library used by GnuPG 2, GPGME and a few other packages. It used to be included with the latter packages but we decided to make your life not too easy and separated it out to a stand alone library. diff --git a/configure.ac b/configure.ac index 6c15e57..939d91d 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ min_automake_version="1.9.3" # Set my_issvn to "yes" for non-released code. Remember to run an # "svn up" and "autogen.sh" right before creating a distribution. m4_define([my_version], [1.0.1]) -m4_define([my_issvn], [yes]) +m4_define([my_issvn], [no]) m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \ || echo 'Revision: 0')|sed -n '/^Revision:/ {s/[^0-9]//gp;q;}')])) diff --git a/src/ChangeLog b/src/ChangeLog index c0a704b..98b0f81 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-11-22 Werner Koch <wk@g10code.com> + + * assuan-handler.c (fun_cookie_write): New. + (assuan_get_data_fp) [HAVE_FUNOPEN]: Use it. + 2006-11-21 Werner Koch <wk@g10code.com> * Makefile.am (libassuan_pth_a_CFLAGS): New. diff --git a/src/assuan-handler.c b/src/assuan-handler.c index fd3a52b..205ad10 100644 --- a/src/assuan-handler.c +++ b/src/assuan-handler.c @@ -652,6 +652,17 @@ assuan_get_active_fds (assuan_context_t ctx, int what, return n; } + +/* funopen uses a different prototype for the write fucntions. We use + this wrapper here to fix it. */ +#ifdef HAVE_FUNOPEN +static int +fun_cookie_write (void *cookie, const char *buffer, int orig_size) +{ + return _assuan_cookie_write_data (cookie, buffer, orig_size); +} +#endif /*HAVE_FUNOPEN*/ + /* Return a FP to be used for data output. The FILE pointer is valid until the end of a handler. So a close is not needed. Assuan does all the buffering needed to insert the status line as well as the @@ -669,7 +680,11 @@ assuan_get_data_fp (assuan_context_t ctx) ctx->outbound.data.fp = funopen (ctx, 0, +#ifdef HAVE_FUNOPEN + fun_cookie_write, +#else _assuan_cookie_write_data, +#endif 0, _assuan_cookie_write_flush); ctx->outbound.data.error = 0; return ctx->outbound.data.fp; |