aboutsummaryrefslogtreecommitdiffstats
path: root/common/estream.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common: Fix build problem with Sun Studio compiler.Werner Koch2013-11-151-2/+2
| | | | | | | | | | * common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy functions. (ESTREAM_MUTEX_INITIALIZE): Ditto. -- GnuPG-bug-id: 1566 Signed-off-by: Werner Koch <[email protected]>
* estream: Backport es_fopemem_init from master.Werner Koch2013-07-031-0/+32
| | | | | | * common/estream.c (es_fopenmem_init): New. Signed-off-by: Werner Koch <[email protected]>
* estream: New function es_fclose_snatch.Werner Koch2013-07-011-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]>
* w32: Almost everywhere include winsock2.h before windows.h.Werner Koch2013-04-231-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.
* Cast second value of a ?: to void in estream.c.Werner Koch2012-03-301-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.
* Removed some set but unused variables.Werner Koch2011-08-041-4/+2
|
* Do not use pth functions after pth_kill. Fixes bug#1320.Werner Koch2011-04-291-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.
* Fix a bug in es_fopenmem etc.Werner Koch2011-01-201-2/+2
|
* Add gpgtar backportWerner Koch2011-01-111-105/+441
|
* A bunch of minor changesWerner Koch2009-12-211-1/+1
|
* Update estream.Werner Koch2009-09-031-1/+39
|
* Reworked the estream memory buffer allocation.Werner Koch2009-06-291-35/+50
| | | | | Committed already posted patches for the v2 card.
* The variable is called RET and not RC.Werner Koch2009-06-291-4/+43
|
* Fixed stupid typo.Werner Koch2009-06-251-1/+1
|
* Fixed a bunch of little bugs as reported by Fabian Keil.Werner Koch2009-06-241-5/+7
| | | | | Still one problem left; marked with a gcc #warning.
* Fixed an fopen problem on Windows Vista.Werner Koch2009-06-031-51/+33
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-9/+26
|
* Start support of TCOS 3 cards.Werner Koch2008-06-261-1/+1
| | | | | | | Support restriction attribute. Fix utf-8 printing problems. Use AES by default.
* Updated estream.Werner Koch2007-08-221-224/+288
| | | | | More changes for Windows.
* Properly close files opened by es_fopen.Werner Koch2007-07-161-0/+1
| | | | | | Allow setting of an empty passphrase. Assorted W32 changes.
* Changed to GPLv3.Werner Koch2007-07-041-5/+3
| | | | | Removed intl/.
* Fixed a problem in estream-printf.c.Werner Koch2007-06-251-81/+294
| | | | | Changes for Windows (gpgsm -k does now work). Minor cleanups.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-15/+14
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-061-31/+37
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* Use estream_asprintf instead of the GNU asprintf.Werner Koch2007-05-151-121/+22
|
* Changes to let the key listing use estream to help systems withoutWerner Koch2007-03-191-1/+190
| | | | | funopen.
* No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch2006-11-211-3/+0
| | | | | | | good chance that gpg2 will now work. Other cleanups. Updated gettext.
* Made some PIN pads work.Werner Koch2006-11-201-1/+12
| | | | | Some cleanups for 64 bit CPUs.
* Pth tweaks and improved estream.cWerner Koch2006-10-171-2/+93
|
* Changed HTTP API.Werner Koch2006-08-141-7/+131
|
* Added http.c from 1.4. Werner Koch2006-08-111-11/+14
| | | | | Added support for estream and gnutls.
* Updated FSF's address.Werner Koch2006-06-201-18/+19
|
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-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.
* * command.c (cmd_updatestartuptty): New.Werner Koch2005-06-031-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-26 Moritz Schulte <[email protected]>Moritz Schulte2005-01-261-0/+2609
* Makefile.am (libcommon_a_SOURCES): New source files: estream.c, estream.h. * estream.c, estream.h: New files.