aboutsummaryrefslogtreecommitdiffstats
path: root/common/estream.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-07-03estream: Backport es_fopemem_init from master.Werner Koch1-0/+32
* common/estream.c (es_fopenmem_init): New. Signed-off-by: Werner Koch <[email protected]>
2013-07-01estream: New function es_fclose_snatch.Werner Koch1-1/+102
* common/estream.c (cookie_ioctl_function_t): New type. (es_fclose_snatch): New function. (COOKIE_IOCTL_SNATCH_BUFFER): New constant. (struct estream_internal): Add field FUNC_IOCTL. (es_initialize): Clear FUNC_IOCTL. (es_func_mem_ioctl): New function. (es_fopenmem): Init FUNC_IOCTL. -- (back ported from commit id 7737a2c269657189a583cde7f214f20871d264f8) Signed-off-by: Werner Koch <[email protected]>
2013-04-23w32: Almost everywhere include winsock2.h before windows.h.Werner Koch1-0/+3
-- This is required by newer mingw toolchain versions which demand that winsock2.h is included before windows.h. Now, due to the use of socket definitions in pth.h we need to include winsock2.h also in pth.h, now pth.h is often included after an include of windows.h and thus the compiler spits out a warning. To avoid that we include winsock2.h at all places the compiler complains about.
2012-03-30Cast second value of a ?: to void in estream.c.Werner Koch1-1/+1
* common/estream.c (ESTREAM_MUTEX_LOCK): Cast pth_mutex_acquire result to void. Some compilers choke on mixing void and int in an conditional operator. Reported by Nelson H. F. Beebe.
2011-08-04Removed some set but unused variables.Werner Koch1-4/+2
2011-04-29Do not use pth functions after pth_kill. Fixes bug#1320.Werner Koch1-113/+161
Fabian Keil found the reason for a SIGBUS: In the "gpg-agent --daemon" case, main() calls pth_kill() after the client has been forked, so when es_deinit() is called on exit, acquiring the estream_list_lock seems to cause pth to dereference a pointer located in a memory region that has previously been free()'d. My approach to fix it is different than his suggestion. It should allow to continue all estream operations after a pth_kill except for restarting pth.
2011-01-20Fix a bug in es_fopenmem etc.Werner Koch1-2/+2
2011-01-11Add gpgtar backportWerner Koch1-105/+441
2009-12-21A bunch of minor changesWerner Koch1-1/+1
2009-09-03Update estream.Werner Koch1-1/+39
2009-06-29Reworked the estream memory buffer allocation.Werner Koch1-35/+50
Committed already posted patches for the v2 card.
2009-06-29The variable is called RET and not RC.Werner Koch1-4/+43
2009-06-25Fixed stupid typo.Werner Koch1-1/+1
2009-06-24Fixed a bunch of little bugs as reported by Fabian Keil.Werner Koch1-5/+7
Still one problem left; marked with a gcc #warning.
2009-06-03Fixed an fopen problem on Windows Vista.Werner Koch1-51/+33
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-9/+26
2008-06-26Start support of TCOS 3 cards.Werner Koch1-1/+1
Support restriction attribute. Fix utf-8 printing problems. Use AES by default.
2007-08-22Updated estream.Werner Koch1-224/+288
More changes for Windows.
2007-07-16Properly close files opened by es_fopen.Werner Koch1-0/+1
Allow setting of an empty passphrase. Assorted W32 changes.
2007-07-04Changed to GPLv3.Werner Koch1-5/+3
Removed intl/.
2007-06-25Fixed a problem in estream-printf.c.Werner Koch1-81/+294
Changes for Windows (gpgsm -k does now work). Minor cleanups.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-15/+14
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-31/+37
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-05-15Use estream_asprintf instead of the GNU asprintf.Werner Koch1-121/+22
2007-03-19Changes to let the key listing use estream to help systems withoutWerner Koch1-1/+190
funopen.
2006-11-21No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch1-3/+0
good chance that gpg2 will now work. Other cleanups. Updated gettext.
2006-11-20Made some PIN pads work.Werner Koch1-1/+12
Some cleanups for 64 bit CPUs.
2006-10-17Pth tweaks and improved estream.cWerner Koch1-2/+93
2006-08-14Changed HTTP API.Werner Koch1-7/+131
2006-08-11Added http.c from 1.4. Werner Koch1-11/+14
Added support for estream and gnutls.
2006-06-20Updated FSF's address.Werner Koch1-18/+19
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-10/+11
char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
2005-06-03* command.c (cmd_updatestartuptty): New.Werner Koch1-3/+7
* gpg-agent.c: New option --write-env-file. * gpg-agent.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. * estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H! (es_func_fd_read, es_func_fd_write): Protect against EINTR. * gpg-agent.texi (Agent UPDATESTARTUPTTY): New. * scdaemon.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. (handle_connections): Include the file descriptor into the name of the thread.
2005-01-262005-01-26 Moritz Schulte <[email protected]>Moritz Schulte1-0/+2609
* Makefile.am (libcommon_a_SOURCES): New source files: estream.c, estream.h. * estream.c, estream.h: New files.