mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-01 06:25:59 +01:00
Fix password parameter passing in change-key-password
This commit is contained in:
parent
7092baee4f
commit
51bca5eb4f
1 changed files with 8 additions and 2 deletions
|
@ -33,9 +33,15 @@ class ChangeKeyPasswordCmd : AbstractSopCmd() {
|
||||||
changeKeyPassword.noArmor()
|
changeKeyPassword.noArmor()
|
||||||
}
|
}
|
||||||
|
|
||||||
oldKeyPasswords.forEach { changeKeyPassword.oldKeyPassphrase(it) }
|
oldKeyPasswords.forEach {
|
||||||
|
val password = stringFromInputStream(getInput(it))
|
||||||
|
changeKeyPassword.oldKeyPassphrase(password)
|
||||||
|
}
|
||||||
|
|
||||||
newKeyPassword?.let { changeKeyPassword.newKeyPassphrase(it) }
|
newKeyPassword?.let {
|
||||||
|
val password = stringFromInputStream(getInput(it))
|
||||||
|
changeKeyPassword.newKeyPassphrase(password)
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
changeKeyPassword.keys(System.`in`).writeTo(System.out)
|
changeKeyPassword.keys(System.`in`).writeTo(System.out)
|
||||||
|
|
Loading…
Reference in a new issue