mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -05:00
update OpenPgpApi, re-add EXTRA_PASSPHRASE
This commit is contained in:
parent
19ecd5f427
commit
6cc7b6141a
@ -56,6 +56,7 @@ import org.sufficientlysecure.keychain.ui.PassphraseDialogActivity;
|
|||||||
import org.sufficientlysecure.keychain.ui.ViewKeyActivity;
|
import org.sufficientlysecure.keychain.ui.ViewKeyActivity;
|
||||||
import org.sufficientlysecure.keychain.util.InputData;
|
import org.sufficientlysecure.keychain.util.InputData;
|
||||||
import org.sufficientlysecure.keychain.util.Log;
|
import org.sufficientlysecure.keychain.util.Log;
|
||||||
|
import org.sufficientlysecure.keychain.util.Passphrase;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -242,6 +243,10 @@ public class OpenPgpService extends RemoteService {
|
|||||||
InputData inputData = new InputData(is, inputLength);
|
InputData inputData = new InputData(is, inputLength);
|
||||||
|
|
||||||
CryptoInputParcel cryptoInput = data.getParcelableExtra(OpenPgpApi.EXTRA_CRYPTO_INPUT);
|
CryptoInputParcel cryptoInput = data.getParcelableExtra(OpenPgpApi.EXTRA_CRYPTO_INPUT);
|
||||||
|
if (data.hasExtra(OpenPgpApi.EXTRA_PASSPHRASE)) {
|
||||||
|
cryptoInput = new CryptoInputParcel(cryptoInput.getSignatureTime(),
|
||||||
|
new Passphrase(data.getStringExtra(OpenPgpApi.EXTRA_PASSPHRASE)));
|
||||||
|
}
|
||||||
|
|
||||||
// sign-only
|
// sign-only
|
||||||
PgpSignEncryptInputParcel pseInput = new PgpSignEncryptInputParcel()
|
PgpSignEncryptInputParcel pseInput = new PgpSignEncryptInputParcel()
|
||||||
@ -374,6 +379,10 @@ public class OpenPgpService extends RemoteService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CryptoInputParcel cryptoInput = data.getParcelableExtra(OpenPgpApi.EXTRA_CRYPTO_INPUT);
|
CryptoInputParcel cryptoInput = data.getParcelableExtra(OpenPgpApi.EXTRA_CRYPTO_INPUT);
|
||||||
|
if (data.hasExtra(OpenPgpApi.EXTRA_PASSPHRASE)) {
|
||||||
|
cryptoInput = new CryptoInputParcel(cryptoInput.getSignatureTime(),
|
||||||
|
new Passphrase(data.getStringExtra(OpenPgpApi.EXTRA_PASSPHRASE)));
|
||||||
|
}
|
||||||
|
|
||||||
PgpSignEncryptOperation op = new PgpSignEncryptOperation(this, new ProviderHelper(getContext()), null);
|
PgpSignEncryptOperation op = new PgpSignEncryptOperation(this, new ProviderHelper(getContext()), null);
|
||||||
|
|
||||||
@ -455,6 +464,10 @@ public class OpenPgpService extends RemoteService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
CryptoInputParcel cryptoInput = data.getParcelableExtra(OpenPgpApi.EXTRA_CRYPTO_INPUT);
|
CryptoInputParcel cryptoInput = data.getParcelableExtra(OpenPgpApi.EXTRA_CRYPTO_INPUT);
|
||||||
|
if (data.hasExtra(OpenPgpApi.EXTRA_PASSPHRASE)) {
|
||||||
|
cryptoInput = new CryptoInputParcel(cryptoInput.getSignatureTime(),
|
||||||
|
new Passphrase(data.getStringExtra(OpenPgpApi.EXTRA_PASSPHRASE)));
|
||||||
|
}
|
||||||
|
|
||||||
byte[] detachedSignature = data.getByteArrayExtra(OpenPgpApi.EXTRA_DETACHED_SIGNATURE);
|
byte[] detachedSignature = data.getByteArrayExtra(OpenPgpApi.EXTRA_DETACHED_SIGNATURE);
|
||||||
|
|
||||||
|
2
extern/openpgp-api-lib
vendored
2
extern/openpgp-api-lib
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 9abb91d3a69964a547f26aa1d56de233e75c4410
|
Subproject commit 97cf30e5b9190d06aba29ad08426bbfeb2ab3a28
|
Loading…
Reference in New Issue
Block a user