aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2006-10-20Allow to select X.509 certificates using the keygrip.Werner Koch1-0/+1
2006-10-10Various changesWerner Koch1-0/+7
2006-09-27Add missing file and other changes.Werner Koch1-9/+0
2006-09-21Various updatesWerner Koch1-0/+9
2006-09-15Allow for a global trustlist.Werner Koch1-0/+6
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-3/+1
2006-09-06The big Assuan error code removal.Werner Koch1-6/+12
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-05-23g10/ does build again.Werner Koch1-0/+3
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-1/+5
The gpg part does not yet build.
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-120/+0
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-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.
2005-06-01* configure.ac (gl_INIT): Add gnulib stuff.Werner Koch1-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.
2005-04-18* configure.ac: Require libksba 0.9.11.Werner Koch1-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.
2005-04-11* sexputil.c: New.Werner Koch1-0/+3
2005-02-25* findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch1-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.
2004-12-21* gpg-agent.c (main): Use default_homedir().Werner Koch1-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().
2004-12-20* configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch1-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.
2004-12-18Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch1-1/+1
2004-12-15A whole bunch of changes to allow building for W32.Werner Koch1-1/+3
2004-12-02First take on a W32 portWerner Koch1-1/+3
2004-06-14* xreadline.c: New. Based on the iobuf_read_line function.Werner Koch1-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.
2004-06-06* util.h (xtrycalloc_secure,xtrymalloc_secure): New.Werner Koch1-1/+3
2004-02-10New. Based on code from ../sm/base64.c.Werner Koch1-2/+18
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-1/+2
smartcard applications.
2003-12-17* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.Werner Koch1-1/+7
* util.h [!HAVE_VASPRINTF]: Add printf format attribute to the replacement function. * miscellaneous.c (xasprintf): New.
2003-11-13(vasprintf): Also fixed the prototype.Werner Koch1-1/+1
2003-11-12Mainly changes to adjust for the changed KSBA API.Werner Koch1-2/+0
2003-10-31* util.h (gnupg_isotime_t): New.Werner Koch1-0/+19
(gnupg_copy_time): New. * gettime.c (gnupg_get_isotime): New.
2003-09-23Merged most of David Shaw's changes in 1.3 since 2003-06-03.Werner Koch1-0/+4
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+120
'GNUPG-1-9-BRANCH'.
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-2/+25
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
2003-06-05A small step for GnuPG but a huge leap for error codes.Werner Koch1-3/+4
(Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
2003-04-29* util.h (fopencokokie): Removed prototype and struct.Werner Koch1-22/+1
* maperror.c: Use system assuan.h
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-117/+0
'GNUPG-1-9-BRANCH'.
2002-08-09* signal.c: New. Taken from GnuPG 1.1.91.Werner Koch1-2/+8
2002-07-22* fseeko.c, ftello.c: New.Werner Koch1-1/+0
* configure.ac: Check for ftello and provide a replacement.
2002-05-14sm/Werner Koch1-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/
2002-02-12* fopencookie.c: Dummy function.Werner Koch1-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.
2002-01-10*** empty log message ***Werner Koch1-0/+8
2001-12-14* util.h (digitp, hexdigitp): New ctype like macros.Werner Koch1-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.
2001-12-14* util.h (digitp, hexdigitp): New ctype like macros.Werner Koch1-0/+15
(atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.
2001-12-05New error codes and another mapping fnc.Werner Koch1-0/+1
2001-11-24Added new directory common to enable sharing of some code and errorWerner Koch1-9/+10
numbers between gpg, gpgsm and gpg-agent. Move some files and code to there.
2001-11-19gpgsm --verify does now work like gpg including theWerner Koch1-1/+1
--enable-special-filenames option.
2001-11-13We have reached a state where we are able to import certs andWerner Koch1-0/+8
check the certification path.
2001-11-07Implemented server main loop and started with import command.Werner Koch1-0/+4
2001-11-06gpgsm does now build and a dummy server can be started.Werner Koch1-18/+20
2001-11-06First chunk of code for the Assuan libraryWerner Koch1-8/+22
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-1/+1