aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/crypto
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-25 23:14:43 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-25 23:14:43 +0200
commita55ddb889efb2645b5d72df23edca5bfdf4b8951 (patch)
treecc1a36ffe872e07c8c28b6cc0bb04e067e9c1604 /src/eu/siacs/conversations/crypto
parent69428400610f9eabf47635107aa0be9eda03ca71 (diff)
fixed #75
Diffstat (limited to 'src/eu/siacs/conversations/crypto')
-rw-r--r--src/eu/siacs/conversations/crypto/PgpEngine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/crypto/PgpEngine.java b/src/eu/siacs/conversations/crypto/PgpEngine.java
index 869a8437..308a17d9 100644
--- a/src/eu/siacs/conversations/crypto/PgpEngine.java
+++ b/src/eu/siacs/conversations/crypto/PgpEngine.java
@@ -118,11 +118,12 @@ public class PgpEngine {
return 0;
}
- public String generateSignature(String status)
+ public String generateSignature(Account account, String status)
throws UserInputRequiredException {
Intent params = new Intent();
params.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
params.setAction(OpenPgpApi.ACTION_SIGN);
+ params.putExtra(OpenPgpApi.EXTRA_ACCOUNT_NAME, account.getJid());
InputStream is = new ByteArrayInputStream(status.getBytes());
ByteArrayOutputStream os = new ByteArrayOutputStream();
Intent result = api.executeApi(params, is, os);