summaryrefslogtreecommitdiffstats
path: root/common/util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* g10/ does build again.Werner Koch2006-05-231-0/+3
|
* Merged with gpg 1.4.3 code. Werner Koch2006-04-191-1/+5
| | | | | The gpg part does not yet build.
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-1/+1
| | | | | | | 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.
* * configure.ac (gl_INIT): Add gnulib stuff.Werner Koch2005-06-011-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (fseeko, ftello, ttyname, isascii): Replaced the AC_REPLACE_FUNCS by a simple check. (putc_unlocked): Removed check. Not used. (strsep, mkdtemp, asprintf): Replaced checks by gnulib checks. (xsize): Added will probably come handy soon. (CFLAGS): Use -Wformat-security instead of -Wformat-nonliteral. Add --Wno-format-y2k. * gl/, gl/m4/: New. * gpg-agent.c: Include setenv.h. * Makefile.am (AM_CPPFLAGS): Added. * util.h: Add some includes for gnulib. (ttyname, isascii): Define them inline. * fseeko.c, ftello.c: Removed. * strsep.c, mkdtemp.c: Removed. * ttyname.c, isascii.c: Removed. * mkdtemp.c: Removed. * exec.c: Include mkdtemp.h * keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement function. Copied from ../common/ftello.c. * keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement function. Copied from ../common/iobuf.c. * scdaemon.c: Include mkdtemp.h. * misc.c: Include setenv.h. * symcryptrun.c: Include mkdtemp.h.
* * configure.ac: Require libksba 0.9.11.Werner Koch2005-04-181-0/+3
| | | | | | | | | | | | sm/ * call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI. * certlist.c (gpgsm_find_cert): Add new arg KEYID and implement this filter. Changed all callers. * certchain.c (find_up_search_by_keyid): New helper. (find_up): Also try using the AKI.keyIdentifier. (find_up_external): Ditto.
* * sexputil.c: New.Werner Koch2005-04-111-0/+3
|
* * findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch2005-02-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | %0A may pass through. * agent.h (server_control_s): New field USE_AUTH_CALL. * call-scd.c (agent_card_pksign): Make use of it. * command-ssh.c (data_sign): Set the flag. (ssh_send_key_public): New arg OVERRIDE_COMMENT. (card_key_available): Add new arg CARDSN. (ssh_handler_request_identities): Use the card s/n as comment. (sexp_key_extract): Use GCRYMPI_FMT_STD. (data_sign): Ditto. * learncard.c (make_shadow_info): Moved to .. * protect.c (make_shadow_info): .. here. Return NULL on malloc failure. Made global. * agent.h: Add prototype. * xasprintf.c (xtryasprintf): New. * app-openpgp.c (get_public_key): Make sure not to return negative numbers. (do_sign): Allow passing of indata with algorithm prefix. (do_auth): Allow OPENPGP.3 as an alternative ID. * app.c (app_getattr): Return just the S/N but not the timestamp. * no-libgcrypt.c (gcry_strdup): New.
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-211-0/+4
| | | | | | | | | | | | | | | | | | | * protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
* * configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch2004-12-201-0/+4
| | | | | | | | | | | | | | | | | | | | directories default to c:/gnupg. Require libassuan 0.6.9. * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove the pth_init kludge. (main): Add new options --[no-]use-standard-socket. (check_for_running_agent): Check whether it is running on the standard socket. * sysutils.h [W32]: Define sleep. * util.h: Add prototype for mkdtemp. * call-agent.c (start_agent): Before starting a pipe server start to connect to a server on the standard socket. Use PATHSEP * call-dirmngr.c (start_dirmngr): Use PATHSEP. * import.c: Include unistd.h for dup and close.
* Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2004-12-181-1/+1
|
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-151-1/+3
|
* First take on a W32 portWerner Koch2004-12-021-1/+3
|
* * xreadline.c: New. Based on the iobuf_read_line function.Werner Koch2004-06-141-0/+5
| | | | | | | | | | * no-libgcrypt.c (gcry_realloc, gcry_xmalloc, gcry_xcalloc): New. * gpgconf-comp.c (retrieve_options_from_program) (retrieve_options_from_file, change_options_file) (change_options_program, gc_component_change_options): Replaced getline by read_line and test for allocation failure.
* * util.h (xtrycalloc_secure,xtrymalloc_secure): New.Werner Koch2004-06-061-1/+3
|
* New. Based on code from ../sm/base64.c.Werner Koch2004-02-101-2/+18
|
* Some minor bug fixes, new test utilities and started support for otherWerner Koch2004-01-271-1/+2
| | | | | smartcard applications.
* * gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.Werner Koch2003-12-171-1/+7
| | | | | | | | * util.h [!HAVE_VASPRINTF]: Add printf format attribute to the replacement function. * miscellaneous.c (xasprintf): New.
* (vasprintf): Also fixed the prototype.Werner Koch2003-11-131-1/+1
|
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-121-2/+0
|
* * util.h (gnupg_isotime_t): New.Werner Koch2003-10-311-0/+19
| | | | | | | (gnupg_copy_time): New. * gettime.c (gnupg_get_isotime): New.
* Merged most of David Shaw's changes in 1.3 since 2003-06-03.Werner Koch2003-09-231-0/+4
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+120
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-117/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * signal.c: New. Taken from GnuPG 1.1.91.Werner Koch2002-08-091-2/+8
|
* * fseeko.c, ftello.c: New.Werner Koch2002-07-221-1/+0
| | | | | * configure.ac: Check for ftello and provide a replacement.
* sm/Werner Koch2002-05-141-0/+7
| | | | | | | | | | | | | | * gpgsm.c: New option --faked-system-time * sign.c (gpgsm_sign): And use it here. * certpath.c (gpgsm_validate_path): Ditto. common/ * gettime.c: New. agent/ * cache.c (housekeeping, agent_put_cache): Use our time() wrapper. / * doc/: New * configure.ac, Makefile.am: Added doc/
* * fopencookie.c: Dummy function.Werner Koch2002-02-121-2/+24
| | | | | | | | * vasprintf.c: New. Taken from binutils-2.9.1 and dropped all non ANSI-C stuff. Merged with asprintf version. * no-pth.c: New.
* *** empty log message ***Werner Koch2002-01-101-0/+8
|
* * util.h (digitp, hexdigitp): New ctype like macros.Werner Koch2001-12-141-2/+2
| | | | | | | | (atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New. * command.c: Removed the conversion macros as they are now in ../common/util.h.
* * util.h (digitp, hexdigitp): New ctype like macros.Werner Koch2001-12-141-0/+15
| | | | | (atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.
* New error codes and another mapping fnc.Werner Koch2001-12-061-0/+1
|
* Added new directory common to enable sharing of some code and errorWerner Koch2001-11-241-0/+59
numbers between gpg, gpgsm and gpg-agent. Move some files and code to there.