mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 09:12:16 -05:00
add untrusted signature status
This commit is contained in:
parent
468b7181e9
commit
e6801ec951
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user