aboutsummaryrefslogtreecommitdiffstats
path: root/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clarified cURL and OpenLDAP license issues.Werner Koch2006-09-224-22/+68
| | | | | Made readline support work.
* Various updatesWerner Koch2006-09-217-50/+111
|
* Allow for a global trustlist.Werner Koch2006-09-155-0/+368
|
* Take advantage of newer gpg-error features.Werner Koch2006-09-148-50/+68
|
* Let scdaemon call a script on status changesWerner Koch2006-09-073-41/+146
|
* The big Assuan error code removal.Werner Koch2006-09-065-11/+22
|
* Minor changes and typo fixes.Werner Koch2006-09-062-1/+4
|
* Support to read response headers. Required for redirection support in theWerner Koch2006-09-043-4/+187
| | | | | dirmngr package.
* Migrated more stuff to doc/Werner Koch2006-08-213-1/+97
| | | | | | | | Migrated the gpg regression tests. Some changes tp the gpg code to fix bugs and for the use in testing. make distcheck works now with gpg enabled.
* With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch2006-08-166-3/+365
| | | | | shows no prblems. Needs more testing of course.
* Changed HTTP API.Werner Koch2006-08-146-57/+288
|
* Added http.c from 1.4. Werner Koch2006-08-115-12/+1885
| | | | | Added support for estream and gnutls.
* Updated FSF's address.Werner Koch2006-06-2038-73/+110
|
* Added missing filesWerner Koch2006-06-162-0/+274
|
* g10/ does build again.Werner Koch2006-05-2311-56/+518
|
* Still merging 1.4.3 code backWerner Koch2006-04-214-133/+198
|
* Merged with gpg 1.4.3 code. Werner Koch2006-04-194-7/+58
| | | | | The gpg part does not yet build.
* 2005-10-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-072-1/+6
| | | | | | * signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST instead of just if it is defined.
* 2005-09-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-09-282-1/+6
| | | | | * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
* 2005-07-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-07-043-1/+31
| | | | | | * simple-pwquery.h (simple_pwclear): New prototype. * simple-pwquery.c (simple_pwclear): New function.
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-1610-32/+63
| | | | | | | 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.
* New debugging optionhs, updates to the manual.Werner Koch2005-06-071-1/+1
|
* * command.c (cmd_updatestartuptty): New.Werner Koch2005-06-032-3/+13
| | | | | | | | | | | | | | | | | | | | * 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.
* * configure.ac (gl_INIT): Add gnulib stuff.Werner Koch2005-06-0110-353/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * agent.h (out_of_core): s/__inline__/inine. Noted by Ray Link.Werner Koch2005-05-312-4/+8
| | | | | | | | | | | * dynload.h: s/__inline__/inline/. * tlv.c [GNUPG_MAJOR_VERSION==1]: Define constants instead of including a gnupg 1.4 header. * watchgnupg.c: Make sure that PF_LCOAL and AF_LOCAL are defines. Noted by Ray Link.
* (got_fatal_signal): Print the signal number if we can'tWerner Koch2005-05-132-4/+4
| | | | | | | get a name for it. (get_signal_name): Return NULL if no name is available. Fixed conditional for sys_siglist to the correct one.
* (got_fatal_signal): Print the signal number if we can'tWerner Koch2005-05-132-6/+39
| | | | | | get a name for it. (get_signal_name): Return NULL if no name is available.
* * configure.ac: Require libksba 0.9.11.Werner Koch2005-04-183-0/+86
| | | | | | | | | | | | 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.
* Added missing fileWerner Koch2005-04-131-0/+63
|
* * sexputil.c: New.Werner Koch2005-04-113-1/+9
|
* 2005-04-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-04-102-1/+5
| | | | | * simple-pwquery.c (simple_pwquery): Use spwq_secure_free.
* * acinclude.m4 (GNUPG_PTH_VERSION_CHECK): Accidently usedWerner Koch2005-03-032-1/+5
| | | | | | | | | --ldflags instead of --cflags. Reported by Kazu Yamamoto. * Makefile.am (AM_CFLAGS): Added PTH_CFLAGS. Noted by Kazu Yamamoto. * Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
* * findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch2005-02-253-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | %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 (handle_connections): Need to check for events ifWerner Koch2005-02-242-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | select returns with -1. * tools.texi (gpg-connect-agent): New. * app-openpgp.c (get_one_do): Never try to get a non cacheable object from the cache. (get_one_do): Add new arg to return an error code. Changed all callers. (do_getattr): Let it return a proper error code. * app.c (select_application): Return an error code and the application context in an new arg. * command.c (open_card): Adjusted for that. Don't use the fallback if no card is present. Return an error if the card has been removed without a reset. (do_reset, cmd_serialno): Clear that error flag. (TEST_CARD_REMOVAL): New. Use it with all command handlers. * scdaemon.c (ticker_thread): Termintate if a shutdown is pending. * apdu.c: Added some PCSC error codes. (pcsc_error_to_sw): New. (reset_pcsc_reader, pcsc_get_status, pcsc_send_apdu) (open_pcsc_reader): Do proper error code mapping. * gpg-connect-agent.c: New. * Makefile.am: Add it.
* * AUTHORS: Copied from 1.4 and edited to refelct the changes inWerner Koch2005-02-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.9. * agent.h (agent_exit): Add JNLIB_GCC_A_NR to indicate that this function won't return. * gpg-agent.c (check_for_running_agent): Initialize pid to a default value if not needed. * command-ssh.c: Removed stdint.h. s/byte_t/unsigned char/, s/uint32/u32/ becuase that is what we have always used in GnuPG. (ssh_request_specs): Moved to top of file. (ssh_key_types): Ditto. (make_cstring): Ditto. (data_sign): Don't use a variable for the passphrase prompt, make it translatable. (ssh_request_process): * findkey.c (modify_description): Renamed arguments for clarity, polished documentation. Make comment a C-string. Fixed case of DESCRIPTION being just "%". (agent_key_from_file): Make sure comment string to a C-string. * gpg-agent.c (create_socket_name): Cleanup the implemntation, use DIMof, agent_exit, removed superflous args and return the allocated string as value. Documented. Changed callers. (create_server_socket): Cleanups similar to above. Changed callers. (cleanup_do): Renamed to .. (remove_socket): .. this. Changed caller. (handle_connections): The signals are to be handled in the select and not in the accept. Test all FDs after returning from a select. Remove the event tests from the accept calls. The select already assured that the accept won't block.
* 2005-01-26 Moritz Schulte <[email protected]>Moritz Schulte2005-01-264-1/+2818
| | | | | | | * Makefile.am (libcommon_a_SOURCES): New source files: estream.c, estream.h. * estream.c, estream.h: New files.
* (send_pinentry_environment): Fixed changed fromWerner Koch2005-01-032-1/+6
| | | | | 2004-12-18; cut+paste error for lc-messages.
* * preset-passphrase.c (preset_passphrase): Handle --passphrase.Werner Koch2004-12-213-12/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that pwquery may use stuff from jnlib. Conditionally add -lwsock2 (gpg_protect_tool_LDADD): Ditto. * preset-passphrase.c (main): Use default_homedir(). (main) [W32]: Initialize sockets. * simple-pwquery.c (agent_open) [W32]: Implement for W32. (readline) [W32]: Use recv instead of read. (writen) [W32]: Use send instead of write. (my_stpcpy): Define a stpcpy replacement so that this file continues to be self-contained. (agent_send_all_options) [W32]: Don't call ttyname. * gnupg-badge-openpgp.eps, gnupg-badge-openpgp.jpg: New * gnupg.texi: Add a logo. * sysnotes.texi: New. * gpgsm.c (main): Use default_homedir(). (main) [W32]: Default to disabled CRL checks. * gpgconf-comp.c (get_config_pathname) [DOSISH]: Detect absolute pathnames with a drive letter.
* * homedir.c: New. Use CSIDL_APPDATA for W32 as the default homeWerner Koch2004-12-212-1/+42
| | | | | directory.
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-216-7/+70
| | | | | | | | | | | | | | | | | | | * 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-204-1/+17
| | | | | | | | | | | | | | | | | | | | 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.
* * call-scd.c (init_membuf, put_membuf, get_membuf): Removed. WeWerner Koch2004-12-202-0/+9
| | | | | | | | | | | | | | | now use the identical implementation from ../common/membuf.c. * pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use membuf functions to return the value. * pkdecrypt.c (agent_pkdecrypt): Ditto. * genkey.c (agent_genkey): Ditto. * command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced assuan_get_data_fp() by a the membuf scheme. (clear_outbuf, write_and_clear_outbuf): New. * membuf.c (put_membuf): Wipe out buffer after a failed realloc.
* * maperror.c (map_assuan_err_with_source): Oops, args were swapped.Werner Koch2004-12-192-1/+5
| | | | | * w32-pth.c (pth_init): Enable debugging depending on env var.
* * configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2004-12-181-1/+1
| | | | | | | | | | | | | | * autogen.sh: Updated --build-w32 feature. * gpg-agent.c (main): Remove special Pth initialize. * w32-pth.c (pth_init): Reverse return values. Use TRUE and FALSE constants. (pth_kill, pth_mutex_acquire, pth_attr_set, pth_join, pth_cancel): Ditto. * scdaemon.c (main) [W32]: Remove special Pth initialize..
* Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2004-12-185-10/+20
|
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-159-83/+385
|
* VArious hacks to make it at least build under W32.Werner Koch2004-12-131-0/+2
| | | | | | | | | | * stringhelp.c (w32_strerror) [W32]: New. * w32-pth.c, w32-pth.h: Added real code written by Timo Schulz. Not finished, though. * gpgconf-comp.c <ignore-ocsp-service-url>: Fixed typo.
* * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.Werner Koch2004-12-072-0/+9
| | | | | | | | | | * w32-pth.c, w32-pth.h: New. * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because under W32 we need the w32 pth code from jnlib. * misc.c (setup_pinentry_env) [W32]: Disabled.
* * exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.Werner Koch2004-12-064-0/+280
| | | | | | | | | | | * gpgsm.c (run_protect_tool) [_WIN32]: Disabled. * import.c (popen_protect_tool): Simplified by making use of gnupg_spawn_process. (parse_p12): Likewise, using gnupg_wait_process. * export.c (popen_protect_tool): Ditto. (export_p12): Ditto.
* Fixed copyright comments.V1-9-13Werner Koch2004-12-032-14/+21
|