mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 08:28:50 -05:00
Fix SIGNATURE_SUCCESS_CERTIFIED
This commit is contained in:
parent
13ffd2038d
commit
4a2c3385d6
@ -443,11 +443,11 @@ public class PgpDecryptVerify {
|
|||||||
|
|
||||||
// get certification status of this key
|
// get certification status of this key
|
||||||
Object data = mProviderHelper.getGenericData(
|
Object data = mProviderHelper.getGenericData(
|
||||||
KeychainContract.UserIds.buildUserIdsUri(Long.toString(masterKeyId)),
|
KeychainContract.KeyRings.buildUnifiedKeyRingUri(Long.toString(masterKeyId)),
|
||||||
KeyRings.VERIFIED,
|
KeyRings.VERIFIED,
|
||||||
ProviderHelper.FIELD_TYPE_INTEGER);
|
ProviderHelper.FIELD_TYPE_INTEGER);
|
||||||
|
|
||||||
isSignatureKeyCertified = (Long) data > 0;
|
isSignatureKeyCertified = ((Long) data > 0);
|
||||||
} else {
|
} else {
|
||||||
// no key in our database -> return "unknown pub key" status including the first key id
|
// no key in our database -> return "unknown pub key" status including the first key id
|
||||||
if (!sigList.isEmpty()) {
|
if (!sigList.isEmpty()) {
|
||||||
@ -639,11 +639,11 @@ public class PgpDecryptVerify {
|
|||||||
|
|
||||||
// get certification status of this key
|
// get certification status of this key
|
||||||
Object data = mProviderHelper.getGenericData(
|
Object data = mProviderHelper.getGenericData(
|
||||||
KeychainContract.UserIds.buildUserIdsUri(Long.toString(masterKeyId)),
|
KeychainContract.KeyRings.buildUnifiedKeyRingUri(Long.toString(masterKeyId)),
|
||||||
KeyRings.VERIFIED,
|
KeyRings.VERIFIED,
|
||||||
ProviderHelper.FIELD_TYPE_INTEGER);
|
ProviderHelper.FIELD_TYPE_INTEGER);
|
||||||
|
|
||||||
isSignatureKeyCertified = (Long) data > 0;
|
isSignatureKeyCertified = ((Long) data > 0);
|
||||||
} else {
|
} else {
|
||||||
// no key in our database -> return "unknown pub key" status including the first key id
|
// no key in our database -> return "unknown pub key" status including the first key id
|
||||||
if (!sigList.isEmpty()) {
|
if (!sigList.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user