jgit/org.eclipse.jgit.gpg.bc
Thomas Wolf ca7a30f231 [gpg] Better GPG home directory determination
GPG can use customized directories instead of the standard ~/.gnupg or
%APPDATA%\gnupg directories:

* Environment variable GNUPGHOME can define the location.
* On Windows, a registry key may define the location (but this is
  deprecated).
* Portable installations may use a directory defined via a file
  "gpgconf.ctl".
* GPG programs may take a --homedir command-line argument, which
  overrides anything.

Implement handling of environment variable GNUPGHOME. The other ways of
GPG to get its home directory are outside the reach of JGit. Provide a
system property "jgit.gpg.home" that the user can set in such cases.

Do tilde replacement for the system property and for GNUPGHOME.

Note that on VMS, the default directory would be ~/gnupg (without dot).
This is not accounted for, but a user on VMS could now use either the
system property or GNUPGHOME to direct JGit to the right directory.

Bug: 575327
Change-Id: Id5ea04a85d58dba0c0df7a705777630d36042467
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2021-08-18 08:57:14 +02:00
..
.settings Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
META-INF [gpg] Update to Bouncy Castle 1.69 2021-07-26 13:30:37 +02:00
resources [gpg] Better GPG home directory determination 2021-08-18 08:57:14 +02:00
src/org/eclipse/jgit/gpg/bc [gpg] Better GPG home directory determination 2021-08-18 08:57:14 +02:00
.classpath Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
.fbprefs Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
.gitignore Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
.project Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
BUILD Update orbit to I20210713220109 2021-07-16 23:47:30 +02:00
about.html GPG: handle extended private key format 2021-02-19 18:24:47 -05:00
build.properties Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
plugin.properties Decouple BouncyCastle from JGit Core 2020-06-01 01:26:22 +02:00
pom.xml Update orbit to I20210713220109 2021-07-16 23:47:30 +02:00