OUT-552: Fix import of keys during startup sync
authorThomas
Mon, 20 May 2019 09:54:50 +0200
branchsync
changeset 2629ce9d82a16cea
parent 2628 05efdbd7c21d
child 2630 5776d726aae8
OUT-552: Fix import of keys during startup
ThisAddIn.cs
     1.1 --- a/ThisAddIn.cs	Mon May 20 09:33:57 2019 +0200
     1.2 +++ b/ThisAddIn.cs	Mon May 20 09:54:50 2019 +0200
     1.3 @@ -2828,7 +2828,8 @@
     1.4                  bool keysImported = false;
     1.5                  try
     1.6                  {
     1.7 -                    ThisAddIn.PEPEngine.ImportKey(gpgKeysFilePath, out pEpIdentity[] privateKeys);
     1.8 +                    string gpgKeys = File.ReadAllText(gpgKeysFilePath);
     1.9 +                    ThisAddIn.PEPEngine.ImportKey(gpgKeys, out pEpIdentity[] privateKeys);
    1.10  
    1.11                      for (int i = 0; i < privateKeys.Length; i++)
    1.12                      {