summaryrefslogtreecommitdiffstats
path: root/common/homedir.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dirmngr: Use the homedir based socket also under W32.Werner Koch2014-06-271-4/+0
| | | | | * common/homedir.c (dirmngr_user_socket_name): Use same code for all platforms.
* gpg: Pass --homedir to gpg-agent.Werner Koch2014-04-221-2/+2
| | | | | | | | | | | | | | | * agent/gpg-agent.c (main): Make sure homedir is absolute. * common/asshelp.c (lock_spawning): Create lock file with an absolute name. (start_new_gpg_agent): Use an absolute name for the socket and pass option --homedir to the agent. (start_new_dirmngr): Use an absolute name for the --homedir. -- This patch makes gpg's --homedir option behave again like in older versions. This is done by starting a new agent for each different home directory. Note that this assumes --use-standard-socket is used which is the default for 2.1.
* dirmngr: Default to a user socket name and enable autostart.Werner Koch2014-03-141-2/+18
| | | | | | | | | | | | | | | * common/homedir.c (dirmngr_socket_name): Rename to dirmngr_sys_socket_name. (dirmngr_user_socket_name): New. * common/asshelp.c (start_new_dirmngr): Handle sys and user dirmngr socket. * dirmngr/dirmngr.c (main): Ditto. * dirmngr/server.c (cmd_getinfo): Ditto. * sm/server.c (gpgsm_server): Ditto. * dirmngr/dirmngr-client.c (start_dirmngr): Likewise. * tools/gpgconf.c (main): Print "dirmngr-sys-socket" with --list-dirs. * configure.ac (USE_DIRMNGR_AUTO_START): Set by default.
* w32: Add macro for the registry key.Werner Koch2014-01-081-1/+1
| | | | | | * configure.ac (GNUPG_REGISTRY_DIR) [W32]: New ac-define. * common/homedir.c (default_homedir): Use it. * common/logging.c (do_logv): Use it.
* Make use of the *_NAME etc macros.Werner Koch2013-11-181-4/+5
| | | | | | | | | Replace hardwired strings at many places with new macros from config.h and use the new strusage macro replacement feature. * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn sentinels. * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
* w32: Fix recent patch 9ff72e4.Werner Koch2013-08-011-1/+1
| | | | | * common/homedir.c (check_portable_app): Fix the name of the control file.
* w32: Add code to support a portable use of GnuPG.Werner Koch2013-08-011-58/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | * common/homedir.c (w32_bin_is_bin, w32_portable_app) [W32]: New. (check_portable_app) [W32]: New. (standard_homedir, default_homedir) [W32]: Support the portable flag. (w32_rootdir, w32_commondir) [W32]: Ditto. (gnupg_bindir, gnupg_cachedir, dirmngr_socket_name) [W32]: Ditto. * common/logging.h (JNLIB_LOG_NO_REGISTRY): New. * common/logging.c (no_registry): New variable. (log_set_prefix, log_get_prefix): Set/get that variable. (do_logv): Do not check the registry if that variable is set. -- Beware: This code has not been tested because it is not yet possible to build GnuPG 2.1 for Windows. However, the code will be the base for an implementation in 2.0. A portable use of GnuPG under Windows means that GnuPG uses a home directory depending on the location of the actual binary. No registry variables are considered. The portable mode is enabled if in the installation directory of the the binary "gpgconf.exe" and a file "gpgconf.ctl" are found. The latter file is empty or consists only of empty or '#' comment lines. Signed-off-by: Werner Koch <wk@gnupg.org>
* scd: move SCDaemon to libexecdir.NIIBE Yutaka2013-04-011-1/+1
| | | | | | * common/homedir.c (gnupg_module_name): It's now libexecdir. * scd/Makefile.am (libexec_PROGRAMS): Add scdaemon (bin_PROGRAMS): Remove scdaemon.
* Change all quotes in strings and comments to the new GNU standard.Werner Koch2012-06-051-1/+1
| | | | | | | | | | | | | | | | | | | The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
* Change license for some files in common to LGPLv3+/GPLv2+.Werner Koch2012-04-201-5/+15
| | | | | | | | | | | | | | | | | | | | | | | Having the LGPL on the common GnuPG code helps to share code between GnuPG and related projects (like GPGME and Libassuan). This is good for interoperability and to reduces bugs. * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c * common/b64enc.c, common/convert.c, common/dns-cert.c * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c * common/helpfile.c, common/homedir.c, common/http.c, common/http.h * common/i18n.c, common/init.c, common/init.h, common/iobuf.c * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h * common/percent.c, common/pka.c, common/pka.h, common/session-env.c * common/session-env.h, common/sexp-parse.h, common/sexputil.c * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c * common/ssh-utils.h, common/sysutils.c, common/sysutils.h * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h * common/userids.c, common/userids.h, common/xasprintf.c: Change license to LGPLv3+/GPLv2+/
* Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch2011-02-041-23/+23
| | | | | | | | We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
* Use estream for dirmngr's --gpgconf-list.Werner Koch2011-01-191-1/+1
| | | | Change insalled name of gpg2 for Wince.
* 2010-12-17 Marcus Brinkmann <mb@g10code.com>Marcus Brinkmann2010-12-171-0/+2
| | | | | * homedir.c (gnupg_cachedir): Create /temp subdirectories.
* Fix standard directories for Wince.Werner Koch2010-09-131-39/+28
| | | | | Typo fix.
* More work on the dirmngr. It now builds for W32 and W32CE and quickWerner Koch2010-08-061-1/+16
| | | | | tests show that it works on W32.
* Merged Dirmngr with GnuPG.Werner Koch2010-06-091-14/+79
| | | | | A few code changes to support dirmngr.
* First steps towards the W32CE portWerner Koch2010-03-021-4/+27
|
* Modernized gpg-agent startup instructionsWerner Koch2009-03-021-1/+1
|
* Revamped the W32 gettext implementation.Werner Koch2008-11-041-0/+21
|
* Add controlo statement %ask-passphraseWerner Koch2008-06-161-0/+3
|
* [W32] Change location of /etc.Werner Koch2008-06-161-1/+30
|
* Fixed segv in gpg-agent (command marktrusted).Werner Koch2008-05-271-0/+6
| | | | | | Replaced almost all free by xfree. Translation fixes.
* [W32] Changed default socket for dirmngr.Werner Koch2007-11-271-2/+7
| | | | | | [W32] Add some code for event notifications between scdaemon and gpg-agent.
* Use Assuan socket wrapper calls.Werner Koch2007-10-011-1/+1
| | | | | Made socket servers secure under Windows.
* New command --check-programs for gpgconf.Werner Koch2007-08-291-0/+6
|
* Implemented more gpg-agen options to support certain passphrase policies.Werner Koch2007-08-271-0/+3
| | | | | New tool gpg-check-pattern.
* Documentaion updates.Werner Koch2007-08-141-0/+23
| | | | | | Support doe Dirmngr under W32. Fixed a yat2m bug.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* More W32 related changesWerner Koch2007-06-261-12/+53
|
* Fixed a problem in estream-printf.c.Werner Koch2007-06-251-34/+73
| | | | | Changes for Windows (gpgsm -k does now work). Minor cleanups.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-0/+149
| | | | | See the ChangeLogs for details.
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Merged with gpg 1.4.3 code. Werner Koch2006-04-191-6/+47
| | | | | The gpg part does not yet build.
* * homedir.c: New. Use CSIDL_APPDATA for W32 as the default homeWerner Koch2004-12-211-0/+40
| | | | | directory.
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-211-0/+44
* 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().