mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Fix yubikey for signAndEncrypt via API
This commit is contained in:
parent
e6e70ec7d9
commit
fd7f187364
@ -354,6 +354,12 @@ public class OpenPgpService extends RemoteService {
|
|||||||
throw new Exception(getString(R.string.error_wrong_passphrase));
|
throw new Exception(getString(R.string.error_wrong_passphrase));
|
||||||
} catch (PgpSignEncrypt.NoSigningKeyException e) {
|
} catch (PgpSignEncrypt.NoSigningKeyException e) {
|
||||||
throw new Exception(getString(R.string.error_no_signature_key));
|
throw new Exception(getString(R.string.error_no_signature_key));
|
||||||
|
} catch (PgpSignEncrypt.NeedNfcDataException e) {
|
||||||
|
// return PendingIntent to execute NFC activity
|
||||||
|
// pass through the signature creation timestamp to be used again on second execution
|
||||||
|
// of PgpSignEncrypt when we have the signed hash!
|
||||||
|
data.putExtra(OpenPgpApi.EXTRA_NFC_SIG_CREATION_TIMESTAMP, e.mCreationTimestamp.getTime());
|
||||||
|
return getNfcIntent(data, e.mHashToSign, e.mHashAlgo);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
is.close();
|
is.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user