diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2016-03-10 18:31:30 +0100 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2016-03-10 18:31:46 +0100 |
commit | 710a0d8fe8d89cb9a1f247007000a7f49a29c527 (patch) | |
tree | 91e1e51512ea1030a2c5ccfc622c6db1a0779096 | |
parent | 8ca0f578bb843db7744dbd5724b32f6664b5c3db (diff) | |
download | openpgp-api-710a0d8fe8d89cb9a1f247007000a7f49a29c527.tar.gz openpgp-api-710a0d8fe8d89cb9a1f247007000a7f49a29c527.tar.bz2 openpgp-api-710a0d8fe8d89cb9a1f247007000a7f49a29c527.zip |
add extra for opportunistic encryption and according return status
-rw-r--r-- | openpgp-api/src/main/java/org/openintents/openpgp/OpenPgpError.java | 2 | ||||
-rw-r--r-- | openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/openpgp-api/src/main/java/org/openintents/openpgp/OpenPgpError.java b/openpgp-api/src/main/java/org/openintents/openpgp/OpenPgpError.java index 69c39fd..67b10aa 100644 --- a/openpgp-api/src/main/java/org/openintents/openpgp/OpenPgpError.java +++ b/openpgp-api/src/main/java/org/openintents/openpgp/OpenPgpError.java @@ -33,6 +33,8 @@ public class OpenPgpError implements Parcelable { public static final int INCOMPATIBLE_API_VERSIONS = 1; public static final int NO_OR_WRONG_PASSPHRASE = 2; public static final int NO_USER_IDS = 3; + public static final int OPPORTUNISTIC_MISSING_KEYS = 4; + int errorId; String message; diff --git a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java index 658823a..fe019ab 100644 --- a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java +++ b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java @@ -236,6 +236,7 @@ public class OpenPgpApi { public static final String EXTRA_PASSPHRASE = "passphrase"; public static final String EXTRA_ORIGINAL_FILENAME = "original_filename"; public static final String EXTRA_ENABLE_COMPRESSION = "enable_compression"; + public static final String EXTRA_OPPORTUNISTIC_ENCRYPTION = "opportunistic"; // GET_SIGN_KEY_ID public static final String EXTRA_USER_ID = "user_id"; |