aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2013-09-15 15:26:41 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2013-09-15 15:26:41 +0200
commite6801ec9513381ff81eb2584f020a717920e1934 (patch)
treeae4ece3ff848c48ad20b254e30ec6a759203ce8a /OpenPGP-Keychain
parent468b7181e92689831d5414abf027794570a45125 (diff)
downloadopen-keychain-e6801ec9513381ff81eb2584f020a717920e1934.tar.gz
open-keychain-e6801ec9513381ff81eb2584f020a717920e1934.tar.bz2
open-keychain-e6801ec9513381ff81eb2584f020a717920e1934.zip
add untrusted signature status
Diffstat (limited to 'OpenPGP-Keychain')
-rw-r--r--OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpSignatureResult.java3
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/remote/OpenPgpService.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpSignatureResult.java b/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpSignatureResult.java
index a84d026bf..0d24e7bd4 100644
--- a/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpSignatureResult.java
+++ b/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpSignatureResult.java
@@ -21,8 +21,9 @@ import android.os.Parcelable;
public class OpenPgpSignatureResult implements Parcelable {
public static final int SIGNATURE_ERROR = 0;
- public static final int SIGNATURE_SUCCESS = 1;
+ public static final int SIGNATURE_SUCCESS_TRUSTED = 1;
public static final int SIGNATURE_UNKNOWN = 2;
+ public static final int SIGNATURE_SUCCESS_UNTRUSTED = 3;
int signatureStatus;
String signatureUserId;
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/remote/OpenPgpService.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/remote/OpenPgpService.java
index 3a8c6059e..862ac3536 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/remote/OpenPgpService.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/remote/OpenPgpService.java
@@ -433,7 +433,7 @@ public class OpenPgpService extends RemoteService {
int signatureStatus = OpenPgpSignatureResult.SIGNATURE_ERROR;
if (signatureSuccess) {
- signatureStatus = OpenPgpSignatureResult.SIGNATURE_SUCCESS;
+ signatureStatus = OpenPgpSignatureResult.SIGNATURE_SUCCESS_TRUSTED;
} else if (signatureUnknown) {
signatureStatus = OpenPgpSignatureResult.SIGNATURE_UNKNOWN;
}