mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-22 20:32:05 +01:00
Cleartext-signatures MUST use TEXT mode
This commit is contained in:
parent
23130b6c8a
commit
66abd5f65f
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class InlineSignImpl implements InlineSign {
|
||||||
for (PGPSecretKeyRing key : signingKeys) {
|
for (PGPSecretKeyRing key : signingKeys) {
|
||||||
try {
|
try {
|
||||||
if (mode == InlineSignAs.clearsigned) {
|
if (mode == InlineSignAs.clearsigned) {
|
||||||
signingOptions.addDetachedSignature(protector, key);
|
signingOptions.addDetachedSignature(protector, key, DocumentSignatureType.CANONICAL_TEXT_DOCUMENT);
|
||||||
} else {
|
} else {
|
||||||
signingOptions.addInlineSignature(protector, key, modeToSigType(mode));
|
signingOptions.addInlineSignature(protector, key, modeToSigType(mode));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue