add untrusted signature status

This commit is contained in:
Dominik Schürmann 2013-09-15 15:26:41 +02:00
parent 468b7181e9
commit e6801ec951
3 changed files with 5 additions and 3 deletions

View File

@ -21,8 +21,9 @@ import android.os.Parcelable;
public class OpenPgpSignatureResult implements Parcelable { public class OpenPgpSignatureResult implements Parcelable {
public static final int SIGNATURE_ERROR = 0; 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_UNKNOWN = 2;
public static final int SIGNATURE_SUCCESS_UNTRUSTED = 3;
int signatureStatus; int signatureStatus;
String signatureUserId; String signatureUserId;

View File

@ -21,8 +21,9 @@ import android.os.Parcelable;
public class OpenPgpSignatureResult implements Parcelable { public class OpenPgpSignatureResult implements Parcelable {
public static final int SIGNATURE_ERROR = 0; 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_UNKNOWN = 2;
public static final int SIGNATURE_SUCCESS_UNTRUSTED = 3;
int signatureStatus; int signatureStatus;
String signatureUserId; String signatureUserId;

View File

@ -433,7 +433,7 @@ public class OpenPgpService extends RemoteService {
int signatureStatus = OpenPgpSignatureResult.SIGNATURE_ERROR; int signatureStatus = OpenPgpSignatureResult.SIGNATURE_ERROR;
if (signatureSuccess) { if (signatureSuccess) {
signatureStatus = OpenPgpSignatureResult.SIGNATURE_SUCCESS; signatureStatus = OpenPgpSignatureResult.SIGNATURE_SUCCESS_TRUSTED;
} else if (signatureUnknown) { } else if (signatureUnknown) {
signatureStatus = OpenPgpSignatureResult.SIGNATURE_UNKNOWN; signatureStatus = OpenPgpSignatureResult.SIGNATURE_UNKNOWN;
} }