Skip to content

Commit

Permalink
Refactor GPG support to improve security
Browse files Browse the repository at this point in the history
- update gpg context setup and key saving
  • Loading branch information
stcarrez committed Nov 20, 2019
1 parent c8d81ac commit 98965ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/akt-commands-password.adb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ package body AKT.Commands.Password is
declare
GPG : Keystore.Passwords.GPG.Context_Type;
begin
AKT.Commands.Initialize (GPG);
GPG.Create_Secret;
Context.Change_Password (New_Password => GPG,
Config => Config,
Mode => Command.Mode);
GPG.Save_Secret (Command.Gpg_User.all, Context.Wallet);
GPG.Save_Secret (Command.Gpg_User.all, 2, Context.Wallet);
end;
else
if Command.Password_File'Length > 0 then
Expand Down

0 comments on commit 98965ae

Please sign in to comment.