pgpsignencrypt: unsupported parameter combinations are a bug
This commit is contained in:
@@ -705,7 +705,6 @@ public abstract class OperationResult implements Parcelable {
|
|||||||
|
|
||||||
// pgpsignencrypt
|
// pgpsignencrypt
|
||||||
MSG_PSE_ASYMMETRIC (LogLevel.INFO, R.string.msg_pse_asymmetric),
|
MSG_PSE_ASYMMETRIC (LogLevel.INFO, R.string.msg_pse_asymmetric),
|
||||||
MSG_PSE_CLEARSIGN_ONLY (LogLevel.DEBUG, R.string.msg_pse_clearsign_only),
|
|
||||||
MSG_PSE_COMPRESSING (LogLevel.DEBUG, R.string.msg_pse_compressing),
|
MSG_PSE_COMPRESSING (LogLevel.DEBUG, R.string.msg_pse_compressing),
|
||||||
MSG_PSE_ENCRYPTING (LogLevel.DEBUG, R.string.msg_pse_encrypting),
|
MSG_PSE_ENCRYPTING (LogLevel.DEBUG, R.string.msg_pse_encrypting),
|
||||||
MSG_PSE_ERROR_BAD_PASSPHRASE (LogLevel.ERROR, R.string.msg_pse_error_bad_passphrase),
|
MSG_PSE_ERROR_BAD_PASSPHRASE (LogLevel.ERROR, R.string.msg_pse_error_bad_passphrase),
|
||||||
|
|||||||
@@ -491,9 +491,7 @@ public class PgpSignEncryptOperation extends BaseOperation {
|
|||||||
|
|
||||||
literalGen.close();
|
literalGen.close();
|
||||||
} else {
|
} else {
|
||||||
pOut = null;
|
throw new AssertionError("cannot clearsign in non-ascii armored text, this is a bug!");
|
||||||
// TODO: Is this log right?
|
|
||||||
log.add(LogType.MSG_PSE_CLEARSIGN_ONLY, indent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableSignature) {
|
if (enableSignature) {
|
||||||
|
|||||||
@@ -1221,7 +1221,6 @@
|
|||||||
|
|
||||||
<!-- Messages for PgpSignEncrypt operation -->
|
<!-- Messages for PgpSignEncrypt operation -->
|
||||||
<string name="msg_pse_asymmetric">"Preparing public keys for encryption"</string>
|
<string name="msg_pse_asymmetric">"Preparing public keys for encryption"</string>
|
||||||
<string name="msg_pse_clearsign_only">"Signing of cleartext input not supported!"</string>
|
|
||||||
<string name="msg_pse_compressing">"Preparing compression"</string>
|
<string name="msg_pse_compressing">"Preparing compression"</string>
|
||||||
<string name="msg_pse_encrypting">"Encrypting data"</string>
|
<string name="msg_pse_encrypting">"Encrypting data"</string>
|
||||||
<string name="msg_pse_error_bad_passphrase">"Bad password!"</string>
|
<string name="msg_pse_error_bad_passphrase">"Bad password!"</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user