summaryrefslogtreecommitdiffstats
path: root/jnlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (stream_read_string): Removed call to abort onWerner Koch2005-02-222-2/+3
| | | | | | | memory error because the CVS version of libgcrypt makes sure that ERRNO gets always set on error even with a faulty user supplied function.
* Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch2005-02-032-28/+18
|
* * preset-passphrase.c (preset_passphrase): Handle --passphrase.Werner Koch2004-12-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (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.
* * query.c (initialize_module_query):Werner Koch2004-12-193-79/+67
| | | | | | | | | | * 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-192-7/+23
| | | | | * w32-pth.c (pth_init): Enable debugging depending on env var.
* * configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2004-12-182-39/+78
| | | | | | | | | | | | | | * 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..
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-152-5/+6
|
* Yep. No lost threads anymore.Werner Koch2004-12-142-38/+70
| | | | | | | | | | | | | | (_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 <twoaday@g10code.com>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-141-52/+82
|
* * 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 <twoaday@g10code.com>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-135-10/+52
| | | | | | | | | | * 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.
* * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.Werner Koch2004-12-074-4/+52
| | | | | | | | | | * 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.
* * configure.ac (have_w32_system): New. Disable Pth checks for W32.Werner Koch2004-12-061-0/+29
| | | | | | | | | Link jnlib/w32-pth.h to pth.h. * Makefile.am (pkglib_PROGRAMS): Build only for W32. * keydb.c: Don't define DIRSEP_S here.
* First take on a W32 portWerner Koch2004-12-023-1/+11
|
* 2004-11-30 Timo Schulz <ts@g10code.com>Timo Schulz2004-11-303-0/+167
| | | | | | * w32-afunix.c: New. AF_UNIX emulation for W32. * w32-afunix.h: Likewise.
* * b64enc.c: Include stdio.h and string.hWerner Koch2004-11-232-3/+16
| | | | | | | | | * 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.
* * 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.
* (print_sanitized_utf8_string): Actually implementWerner Koch2004-08-182-2/+8
| | | | | it.
* (log_set_file): Do not close an old logstream if itWerner Koch2004-06-212-6/+12
| | | | | used to be stderr or stdout.
* (log_set_file): Oops, don't close if LOGSTREAM is NULL.Werner Koch2004-05-052-1/+5
|
* * gpg-agent.c (parse_rereadable_options): New arg REREAD. AllowWerner Koch2004-04-302-1/+13
| | | | | | | | | changing oLogFile. (current_logfile): New. * logging.c (log_set_file): Make sure the log stream will be closed even if the stderr fileno will be assigned to a new socket.
* * gpg-agent.c (main): Tell the logging code taht we are runnignWerner Koch2004-04-163-25/+70
| | | | | | | | | | | detached. * logging.h (JNLIB_LOG_WITH_PREFIX): Add constants for the flag values. * logging.c (log_set_prefix): New flag DETACHED. (fun_writer): Take care of this flag. (log_test_fd): New.
* (print_sanitized_buffer): Don't care aboutWerner Koch2004-02-182-5/+9
| | | | | | non-ASCII characaters. (sanitize_buffer): Ditto.
* Replaced INCLUDES by AM_CPPFLAGS.Werner Koch2004-02-122-3/+9
|
* * argparse.c (strusage): Changed default copyright year to 2004.Werner Koch2004-01-162-2/+6
|
* (initialize): Replaced use of non-literal formaWerner Koch2003-12-172-15/+22
| | | | | args. Suggested by Florian Weimer.
* (writen, fun_writer, fun_closer): New.Werner Koch2003-12-162-6/+14
| | | | | | (log_set_file): Add feature to log to a socket. (log_set_file, do_logv): Force printing with prefix and pid.
* * configure.ac: Check for funopen and fopencookie as part of theWerner Koch2003-12-162-13/+173
| | | | | | | | jnlib checks. * logging.c (writen, fun_writer, fun_closer): New. (log_set_file): Add feature to log to a socket.
* Preparing for 1.9.2 release.V1-9-2Werner Koch2003-11-174-22/+67
|
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-122-9/+18
|
* Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch2003-06-1813-46/+840
| | | | | | | | | | | 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.
* Updated from NewPGWerner Koch2003-01-0918-0/+3105
|
* Removed files for CVS reorganizationDavid Shaw2002-06-2915-2268/+0
|
* Removed the libgcrypt stuff and started to modify the source to work withWerner Koch2000-12-191-3/+2
| | | | | that external library.
* See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch2000-07-144-8/+43
|
* See ChangeLog: Mon Jan 31 16:37:34 CET 2000 Werner KochWerner Koch2000-01-311-1/+1
|
* See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch2000-01-271-0/+14
|
* Add files to new directory.Werner Koch2000-01-2414-0/+2220
This is mainly stuff moved from ../util to here.