aboutsummaryrefslogtreecommitdiffstats
path: root/common/estream.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-1/+1
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2012-01-25Port to npth.Marcus Brinkmann1-17/+12
* configure.ac: Don't check for PTH but for NPTH. (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. (have_pth): Rename to ... (have_npth): ... this. (USE_GNU_NPTH): Rename to ... (USE_GNU_PTH): ... this. * m4/npth.m4: New file. * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c, agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c, agent/trustlist.c, common/Makefile.am, common/estream.c, common/exechelp-posix.c, common/exechelp-w32.c, common/exechelp-w32ce.c, common/http.c, common/init.c, common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c, dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c, dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am, g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am, scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c, scd/scdaemon.c, tools/Makefile.am: Port to npth.
2011-12-15estream: New function es_fclose_snatch.Werner Koch1-0/+106
* 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, es_fopenmem_init): Init FUNC_IOCTL.
2011-11-30* common/estream.c (es_fopenmem_init): New.Werner Koch1-2/+35
* common/estream.h (es_fopenmem_init): New.
2011-11-30Add parameter checks and extend documentation of estream.Werner Koch1-10/+31
* estream.c (func_mem_create): Don't set FUNC_REALLOC if GROW is not set. Require FUNC_REALLOC if DATA is NULL and FUNC_FREE is given.
2011-08-10Fixed set but unused variable bugsWerner Koch1-4/+2
2011-03-03Simplify the management of the stream list in estream.cWerner Koch1-66/+72
2011-02-08Add finger support to dirmngr.Werner Koch1-3/+8
The basic network code from http.c is used for finger. This keeps the network related code at one place and we are able to use the somewhat matured code form http.c. Unfortunately I had to enhance the http code for more robustness and probably introduced new bugs. Test this code using gpg --fetch-key finger:[email protected] (I might be the last user of finger ;-)
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-95/+95
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2011-01-18Fix es_fopenmem and es_mopen bug.Werner Koch1-1/+1
2011-01-18Fix computation of NEWSIZE in es_func_mem_write.Werner Koch1-1/+1
The function used to fail and return EINVAL when enlarging the buffer.
2010-09-012010-09-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* estream.c (_es_set_std_fd): Disable debug output.
2010-08-26Fix for W32.Werner Koch1-0/+2
2010-08-26.Werner Koch1-67/+136
2010-08-23gpgconf does now work for Wince.Werner Koch1-1/+84
2010-08-20Reworked the posix and w32 exechelpers.Werner Koch1-36/+435
2010-08-18Fix regression in logging.Werner Koch1-20/+37
Add a registry key to enable catch-all remote debugging for W32. Replace more stdio stuff by estream.
2010-08-02Add code for a threaded LDAP access to replace the wrapper process.Werner Koch1-1/+22
Currently used for W32 and W32CE.
2010-07-26Fixed couple of build problems. However the W32 version is currentlyWerner Koch1-6/+6
under work.
2010-07-24Add new set_binary feature to estreamWerner Koch1-0/+33
2010-07-16Some work on porting dirmngr (unfinished)Werner Koch1-12/+4
Ported gpgtar to W32.
2010-06-102010-06-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* server.c (SERVER_STDIN, SERVER_STDOUT): New macros. (gpgsm_server): Use them with assuan_fdopen.
2010-06-07Add unfinished gpgtar.Werner Koch1-3/+86
Collected changes and ports of bug fixes from stable.
2010-05-04Auto starting the agent does now work on CE.Werner Koch1-26/+63
2010-04-21More changes on the way to remove secring.gpg.Werner Koch1-2/+13
2010-04-14Whole lot of changes to support CE.Werner Koch1-0/+3
2010-03-22More chnages to use estream. Add a way to replace the standardWerner Koch1-4/+37
descriptors.
2010-03-15Finished the bulk of changes to use estream in most places instead ofWerner Koch1-35/+103
stdio.
2010-03-11Use a custom log handler for libassuan.Werner Koch1-2/+4
2010-03-10Change logging to use estream. The makes logging to a socket alsoWerner Koch1-13/+54
work on Solaris etc. Further changes required.. This is just a first step.
2010-03-02First steps towards the W32CE portWerner Koch1-22/+88
2010-01-08Add dummu option --passwd for gpg.Werner Koch1-1/+1
Collected changes.
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.