mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +02:00
Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
e46e50556f | |||
e158d9365d | |||
19818f6e9d | |||
ffb8d297d3 | |||
51bca5eb4f |
4 changed files with 24 additions and 7 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -6,6 +6,10 @@ SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 8.0.2
|
||||||
|
- CLI `change-key-password`: Fix indirect parameter passing for new and old passwords (thanks to @dkg for the report)
|
||||||
|
- Backport: `revoke-key`: Allow for multiple password options
|
||||||
|
|
||||||
## 8.0.1
|
## 8.0.1
|
||||||
- `decrypt`: Do not throw `NoSignature` exception (exit code 3) if `--verify-with` is provided, but `VERIFICATIONS` is empty.
|
- `decrypt`: Do not throw `NoSignature` exception (exit code 3) if `--verify-with` is provided, but `VERIFICATIONS` is empty.
|
||||||
|
|
||||||
|
@ -24,6 +28,13 @@ SPDX-License-Identifier: Apache-2.0
|
||||||
- Change `EncryptAs` values into lowercase
|
- Change `EncryptAs` values into lowercase
|
||||||
- Change `SignAs` values into lowercase
|
- Change `SignAs` values into lowercase
|
||||||
|
|
||||||
|
## 7.0.2
|
||||||
|
- CLI `change-key-password`: Fix indirect parameter passing for new and old passwords (thanks to @dkg for the report)
|
||||||
|
- Backport: revoke-key command: Allow for multiple '--with-key-password' options
|
||||||
|
|
||||||
|
## 7.0.1
|
||||||
|
- `decrypt`: Do not throw `NoSignature` exception (exit code 3) if `--verify-with` is provided, but `VERIFICATIONS` is empty.
|
||||||
|
|
||||||
## 7.0.0
|
## 7.0.0
|
||||||
- Update implementation to [SOP Specification revision 07](https://www.ietf.org/archive/id/draft-dkg-openpgp-stateless-cli-07.html).
|
- Update implementation to [SOP Specification revision 07](https://www.ietf.org/archive/id/draft-dkg-openpgp-stateless-cli-07.html).
|
||||||
- Add support for new `revoke-key` subcommand
|
- Add support for new `revoke-key` subcommand
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -19,8 +19,8 @@ class RevokeKeyCmd : AbstractSopCmd() {
|
||||||
|
|
||||||
@Option(names = ["--no-armor"], negatable = true) var armor = true
|
@Option(names = ["--no-armor"], negatable = true) var armor = true
|
||||||
|
|
||||||
@Option(names = ["--with-key-password"], paramLabel = "PASSWORD")
|
@Option(names = ["--with-key-password"], paramLabel = "PASSWORD", arity = "0..*")
|
||||||
var withKeyPassword: String? = null
|
var withKeyPassword: List<String> = listOf()
|
||||||
|
|
||||||
override fun run() {
|
override fun run() {
|
||||||
val revokeKey = throwIfUnsupportedSubcommand(SopCLI.getSop().revokeKey(), "revoke-key")
|
val revokeKey = throwIfUnsupportedSubcommand(SopCLI.getSop().revokeKey(), "revoke-key")
|
||||||
|
@ -29,9 +29,9 @@ class RevokeKeyCmd : AbstractSopCmd() {
|
||||||
revokeKey.noArmor()
|
revokeKey.noArmor()
|
||||||
}
|
}
|
||||||
|
|
||||||
withKeyPassword?.let {
|
for (passwordIn in withKeyPassword) {
|
||||||
try {
|
try {
|
||||||
val password = stringFromInputStream(getInput(it))
|
val password = stringFromInputStream(getInput(passwordIn))
|
||||||
revokeKey.withKeyPassword(password)
|
revokeKey.withKeyPassword(password)
|
||||||
} catch (e: SOPGPException.UnsupportedOption) {
|
} catch (e: SOPGPException.UnsupportedOption) {
|
||||||
val errorMsg =
|
val errorMsg =
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
allprojects {
|
allprojects {
|
||||||
ext {
|
ext {
|
||||||
shortVersion = '8.0.2'
|
shortVersion = '8.0.2'
|
||||||
isSnapshot = true
|
isSnapshot = false
|
||||||
minAndroidSdk = 10
|
minAndroidSdk = 10
|
||||||
javaSourceCompatibility = 1.8
|
javaSourceCompatibility = 1.8
|
||||||
gsonVersion = '2.10.1'
|
gsonVersion = '2.10.1'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue