aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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-2118-67/+103
| | | | | | | | | | | | | | | | | | | * 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-2018-114/+270
| | | | | | | | | | | | | | | | | | | | 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.
* (do_pth_event_free): The events are hold in a ringWerner Koch2004-12-202-101/+169
| | | | | | | | | | | | buffer. Adjust for that. (do_pth_event_body): Ditto. (pth_event_isolate): Ditto. (do_pth_wait): Ditto. (_pth_event_count): Renamed to .. (event_count): .. and adjusted as above. (pth_init): Define 3 debug levels and change all debug calls to make use of them. This makes the moule now silent.
* * call-scd.c (init_membuf, put_membuf, get_membuf): Removed. WeWerner Koch2004-12-209-108/+112
| | | | | | | | | | | | | | | 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.
* * query.c (initialize_module_query): New.Werner Koch2004-12-191-3/+3
| | | | | | * call-scd.c (initialize_module_call_scd): New. * gpg-agent.c (main): Call them.
* * query.c (initialize_module_query):Werner Koch2004-12-199-82/+123
| | | | | | | | | | * call-scd.c (initialize_module_call_scd): New. * w32-pth.c (pth_init): Enable debugging depending on env var. (pth_self): New. (pth_mutex_release, pth_mutex_acquire): Implemented directly using the W32 API.
* * maperror.c (map_assuan_err_with_source): Oops, args were swapped.Werner Koch2004-12-196-10/+36
| | | | | * w32-pth.c (pth_init): Enable debugging depending on env var.
* * configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2004-12-1811-105/+147
| | | | | | | | | | | | | | * 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-1818-13/+68
|
* 2004-12-17 Moritz Schulte <[email protected]>Moritz Schulte2004-12-172-5/+9
| | | | | * query.c: Undo change from 2004-12-05.
* * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)Werner Koch2004-12-174-17/+33
| | | | | | | | | | (run_command_status_cb): Return cancel status if gpgsm_status returned an error. * server.c (gpgsm_status, gpgsm_status2) (gpgsm_status_with_err_code): Return an error code. (gpgsm_status2): Always call va_end().
* (lookup_status_cb): Send progress messagesWerner Koch2004-12-152-3/+41
| | | | | | | | | upstream. (isvalid_status_cb): Ditto. (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters. (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to status callback and handle PROGRESS.
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-1532-158/+589
|
* Yep. No lost threads anymore.Werner Koch2004-12-143-39/+71
| | | | | | | | | | | | | | (_pth_strerror): Renamed to ... (w32_strerror): .. this. And let callers provide a buffer. (spawn_helper_thread): Removed HD arg and hardwire the stack size to 32k. (do_pth_wait): Removed use of ATTR; not needed for the helper threads. (helper_thread): Renamed to .. (launch_thread): .. this. Release handle if not joinable. (struct pth_priv_hd_s): Renamed to ... (struct thread_info_s): .. this. Add member JOINABLE and TH.
* 2004-12-14 Timo Schulz <[email protected]>Timo Schulz2004-12-142-52/+83
| | | | | | | | | * w32-pth.c (pth_kill): Just release the crit section if pth_init was really called. And set all handles to NULL. (_pth_strerror): New. (do_pth_wait): Before we enter the loop we check if there are too much events in the ring.
* More fixes. First successful use; leaks threads, though.Werner Koch2004-12-142-57/+104
|
* * w32-pth.h (pth_event_occured): Removed macro.Werner Koch2004-12-143-111/+296
| | | | | | | * w32-pth.c: Fixed license statement; its under the LGPL. (enter_pth, leave_pth): Use them to bracket almost all public functions.
* 2004-12-13 Timo Schulz <[email protected]>Timo Schulz2004-12-132-612/+693
| | | | | | | | | * w32-pth.c (enter_pth, leave_pth): New. (pth_init): Initialize global mutex section. (pth_kill): Release global mutex section. (helper_thread): New. (pth_spawn): Make sure only one thread is running.
* VArious hacks to make it at least build under W32.Werner Koch2004-12-1312-22/+110
| | | | | | | | | | * 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.
* Added real code written by Timo Schulz.Werner Koch2004-12-133-7/+1270
| | | | | Not finished, though.
* (keybox_release): Close the file pointer.Werner Koch2004-12-072-0/+9
|
* * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.Werner Koch2004-12-0710-9/+75
| | | | | | | | | | * 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-068-233/+331
| | | | | | | | | | | * 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.
* * configure.ac (have_w32_system): New. Disable Pth checks for W32.Werner Koch2004-12-069-22/+85
| | | | | | | | | Link jnlib/w32-pth.h to pth.h. * Makefile.am (pkglib_PROGRAMS): Build only for W32. * keydb.c: Don't define DIRSEP_S here.
* 2004-12-05 Moritz Schulte <[email protected]>Moritz Schulte2004-12-052-5/+9
| | | | | * query.c (start_pinentry): Allow CTRL be NULL.
* post release version number updatesWerner Koch2004-12-032-1/+5
|
* Fixed copyright comments.V1-9-13Werner Koch2004-12-032-14/+21
|
* Preparing 1.9.13Werner Koch2004-12-037-52/+84
|
* First take on a W32 portWerner Koch2004-12-0222-41/+1476
|
* 2004-11-30 Timo Schulz <[email protected]>Timo Schulz2004-11-303-0/+167
| | | | | | * w32-afunix.c: New. AF_UNIX emulation for W32. * w32-afunix.h: Likewise.
* Add dirmngr options to gpgconf and updated the DE translationWerner Koch2004-11-244-107/+118
|
* Add --ignore-http-dp andWerner Koch2004-11-242-0/+11
| | | | | --ignore-ldap-dp.
* * b64enc.c: Include stdio.h and string.hWerner Koch2004-11-2316-38/+131
| | | | | | | | | * gpgsm.c: New option --prefer-system-dirmngr. * call-dirmngr.c (start_dirmngr): Implement this option. * gpgconf-comp.c <dirmngr>: Add the proxy options. <gpgsm>: Add --prefer-system-daemon.
* Post release preparationsWerner Koch2004-10-222-2/+6
|
* Releasing 1.9.12V1-9-12Werner Koch2004-10-223-2/+4
|
* Compile fixes.Werner Koch2004-10-2213-87/+142
|
* Cleaned upWerner Koch2004-10-221-7/+0
|
* * Makefile.am (bin_SCRIPTS): Add gpgsm-gencert.shWerner Koch2004-10-223-12/+24
| | | | | * gpgsm-gencert.sh: Fixed copyright; its part of GnuPG thus FSF.
* (gpgsm_genkey): Remove the NEW from the certificateWerner Koch2004-10-222-1/+6
| | | | | request PEM header. This is according to the Sphinx standard.
* (Helper Tools): Document gpgsm-gencert.sh.Werner Koch2004-10-222-0/+22
|
* * app-openpgp.c (do_sign): Replace asprintf by direct allocation.Werner Koch2004-10-223-2/+22
| | | | | | | | This avoids problems with missing vasprintf implementations in gnupg 1.4. * app-common.h (app_openpgp_storekey: Add prototype.
* * logging.c (do_logv): Use set_log_stream to setup a default.Werner Koch2004-10-222-119/+193
| | | | | | | | (log_set_file): Factored code out to .. (set_file_fd): .. New function to allow using a file descriptor. (log_set_fd): Make use of new fucntion. (fun_writer): Reworked.
* Updated from 1.3Werner Koch2004-10-221-130/+489
|
* (parse_rereadable_options): Return "not handled"Werner Koch2004-10-222-5/+15
| | | | | | | | when the log file has not beend hadled. This is will let the main option processing continue. Fixed a bug introduced on 2004-09-4 resulting in logging to stderr until a HUP has been given. (main): Don't close the listen FD.
* typo fixWerner Koch2004-10-201-1/+1
|
* * sc-investigate: Removed.Werner Koch2004-10-2012-917/+727
| | | | | | | | | | | | | | | | | * Makefile.am (sc_investigate): Removed. * pcsc-wrapper.c (load_pcsc_driver): Load get_status_change func. (handle_open): Succeed even without a present card. (handle_status, handle_reset): New. * apdu.c (apdu_open_reader): Load pcsc_get_status_change fucntion. (pcsc_get_status): Implemented. (reset_pcsc_reader): Implemented. (open_pcsc_reader): Succeed even with no card inserted. (open_ccid_reader): Set LAST_STATUS. * iso7816.c (iso7816_select_application): Always use 0 for P1.
* Fixed copyright yearsWerner Koch2004-10-151-1/+2
|
* (parse_login_data): New.Werner Koch2004-10-142-29/+112
| | | | | | (app_select_openpgp): Call it. (do_setattr): Reparse it after change.
* Added ID keywords because these files are often used in other packages.Werner Koch2004-10-148-0/+29
|