aboutsummaryrefslogtreecommitdiffstats
path: root/common/homedir.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-02-16w32: Do not error out if gpgconf is not installed.Werner Koch1-3/+1
* common/homedir.c (check_portable_app): Remove error message. -- It is sometimes useful to install just gpgv and no other parts. Our test for a portable application returned an error if gpgconf is not installed. That error is not required but was merely a debug aid. Signed-off-by: Werner Koch <[email protected]>
2015-07-28w32: Try more places to find an installed Pinentry.Werner Koch1-8/+33
* common/homedir.c (get_default_pinentry_name): Re-implement to support several choices for Windows. Signed-off-by: Werner Koch <[email protected]>
2015-04-24common: Rename log and gcc attribute macros (jnlib merge).Werner Koch1-1/+1
* common/logging.h: Rename JNLIB_LOG_* to GPGRT_LOG_*. * common/mischelp.h: Rename JNLIB_GCC_* to GPGRT_GCC_*. -- JNLIB has no more meaning. Thus we switch to a GPGRT_ prefix in anticipation that some code may eventually be moved to libgpg-error. Signed-off-by: Werner Koch <[email protected]>
2015-02-04gpg-agent: Use "pinentry-basic" as fallback.Werner Koch1-2/+47
* common/homedir.c (get_default_pinentry_name): New. (gnupg_module_name): Use that for the default pinentry. (gnupg_module_name_flush_some): New. * agent/gpg-agent.c (agent_sighup_action): Flush some module names. * agent/call-pinentry.c (start_pinentry): Do not modify opt.pinentry_program. -- The idea with this change is that under Windows we can install a simple native Windows pinentry as "pinentry-basic" and a full GUI version may then later install pinentry-gtk etc which would then automatically be used. Unfortunately installing another pinentry from a different package would clobber the GnuPG core directory which is not nice. To fix that we would need to agree on standard installation directories for GUIs to also look there. Signed-off-by: Werner Koch <[email protected]>
2015-02-01w32: Allow for Unicocde installation directory.Werner Koch1-13/+7
* common/homedir.c (w32_rootdir): Use Unicode fucntion not only for WinCE. -- This uses the same code We used for WindowsCE. It has not been tested with a Unicode requiring installation directory. Signed-off-by: Werner Koch <[email protected]>
2014-06-27dirmngr: Use the homedir based socket also under W32.Werner Koch1-4/+0
* common/homedir.c (dirmngr_user_socket_name): Use same code for all platforms.
2014-04-22gpg: Pass --homedir to gpg-agent.Werner Koch1-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.
2014-03-14dirmngr: Default to a user socket name and enable autostart.Werner Koch1-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.
2014-01-08w32: Add macro for the registry key.Werner Koch1-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.
2013-11-18Make use of the *_NAME etc macros.Werner Koch1-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.
2013-08-01w32: Fix recent patch 9ff72e4.Werner Koch1-1/+1
* common/homedir.c (check_portable_app): Fix the name of the control file.
2013-08-01w32: Add code to support a portable use of GnuPG.Werner Koch1-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 <[email protected]>
2013-04-01scd: move SCDaemon to libexecdir.NIIBE Yutaka1-1/+1
* common/homedir.c (gnupg_module_name): It's now libexecdir. * scd/Makefile.am (libexec_PROGRAMS): Add scdaemon (bin_PROGRAMS): Remove scdaemon.
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-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.
2012-04-20Change license for some files in common to LGPLv3+/GPLv2+.Werner Koch1-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+/
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-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.
2011-01-19Use estream for dirmngr's --gpgconf-list.Werner Koch1-1/+1
Change insalled name of gpg2 for Wince.
2010-12-172010-12-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+2
* homedir.c (gnupg_cachedir): Create /temp subdirectories.
2010-09-13Fix standard directories for Wince.Werner Koch1-39/+28
Typo fix.
2010-08-06More work on the dirmngr. It now builds for W32 and W32CE and quickWerner Koch1-1/+16
tests show that it works on W32.
2010-06-09Merged Dirmngr with GnuPG.Werner Koch1-14/+79
A few code changes to support dirmngr.
2010-03-02First steps towards the W32CE portWerner Koch1-4/+27
2009-03-02Modernized gpg-agent startup instructionsWerner Koch1-1/+1
2008-11-04Revamped the W32 gettext implementation.Werner Koch1-0/+21
2008-06-16Add controlo statement %ask-passphraseWerner Koch1-0/+3
2008-06-16[W32] Change location of /etc.Werner Koch1-1/+30
2008-05-27Fixed segv in gpg-agent (command marktrusted).Werner Koch1-0/+6
Replaced almost all free by xfree. Translation fixes.
2007-11-27[W32] Changed default socket for dirmngr.Werner Koch1-2/+7
[W32] Add some code for event notifications between scdaemon and gpg-agent.
2007-10-01Use Assuan socket wrapper calls.Werner Koch1-1/+1
Made socket servers secure under Windows.
2007-08-29New command --check-programs for gpgconf.Werner Koch1-0/+6
2007-08-27Implemented more gpg-agen options to support certain passphrase policies.Werner Koch1-0/+3
New tool gpg-check-pattern.
2007-08-14Documentaion updates.Werner Koch1-0/+23
Support doe Dirmngr under W32. Fixed a yat2m bug.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-26More W32 related changesWerner Koch1-12/+53
2007-06-25Fixed a problem in estream-printf.c.Werner Koch1-34/+73
Changes for Windows (gpgsm -k does now work). Minor cleanups.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-0/+149
See the ChangeLogs for details.
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-6/+47
The gpg part does not yet build.
2004-12-21* homedir.c: New. Use CSIDL_APPDATA for W32 as the default homeWerner Koch1-0/+40
directory.
2004-12-21* gpg-agent.c (main): Use default_homedir().Werner Koch1-17/+17
* 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-01-302004-01-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-18/+20
* Makefile.am (libcommon_a_SOURCES): Add xasprintf.c. * miscellaneous.c (xasprintf): Moved to ... * xasprintf (xasprintf): ... here. New file. This allows to use xasprintf without sucking in gpg-error.
2001-12-10The Agent does now call the pin entry program; however because we haveWerner Koch1-4/+14
not yet implemeted secret key protection, its purpose is somewhat limited. Well, the PIN entry modules can now be tested.
2001-11-24Added new directory common to enable sharing of some code and errorWerner Koch1-59/+0
numbers between gpg, gpgsm and gpg-agent. Move some files and code to there.
2001-11-13We have reached a state where we are able to import certs andWerner Koch1-2/+52
check the certification path.
2001-11-07Implemented server main loop and started with import command.Werner Koch1-3/+17
2001-11-07Assuan server mode is now basically usableWerner Koch1-19/+2
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
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-3/+3
1999-03-20See ChangeLog: Sat Mar 20 11:53:40 CET 1999 Werner KochWerner Koch1-0/+1