mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-23 15:38:50 -05:00
Update api lib
This commit is contained in:
parent
55d03f539e
commit
acf5b99434
@ -20,7 +20,7 @@ package org.sufficientlysecure.keychain.pgp;
|
||||
|
||||
import android.webkit.MimeTypeMap;
|
||||
|
||||
import org.openintents.openpgp.OpenPgpDecryptMetadata;
|
||||
import org.openintents.openpgp.OpenPgpMetadata;
|
||||
import org.spongycastle.bcpg.ArmoredInputStream;
|
||||
import org.spongycastle.openpgp.PGPCompressedData;
|
||||
import org.spongycastle.openpgp.PGPEncryptedData;
|
||||
@ -485,7 +485,7 @@ public class PgpDecryptVerify {
|
||||
}
|
||||
}
|
||||
|
||||
OpenPgpDecryptMetadata metadata = new OpenPgpDecryptMetadata(
|
||||
OpenPgpMetadata metadata = new OpenPgpMetadata(
|
||||
originalFilename,
|
||||
mimeType,
|
||||
literalData.getModificationTime().getTime(),
|
||||
|
@ -20,7 +20,7 @@ package org.sufficientlysecure.keychain.pgp;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import org.openintents.openpgp.OpenPgpDecryptMetadata;
|
||||
import org.openintents.openpgp.OpenPgpMetadata;
|
||||
import org.openintents.openpgp.OpenPgpSignatureResult;
|
||||
|
||||
public class PgpDecryptVerifyResult implements Parcelable {
|
||||
@ -32,7 +32,7 @@ public class PgpDecryptVerifyResult implements Parcelable {
|
||||
long mKeyIdPassphraseNeeded;
|
||||
|
||||
OpenPgpSignatureResult mSignatureResult;
|
||||
OpenPgpDecryptMetadata mDecryptMetadata;
|
||||
OpenPgpMetadata mDecryptMetadata;
|
||||
|
||||
public int getStatus() {
|
||||
return mStatus;
|
||||
@ -58,11 +58,11 @@ public class PgpDecryptVerifyResult implements Parcelable {
|
||||
mSignatureResult = signatureResult;
|
||||
}
|
||||
|
||||
public OpenPgpDecryptMetadata getDecryptMetadata() {
|
||||
public OpenPgpMetadata getDecryptMetadata() {
|
||||
return mDecryptMetadata;
|
||||
}
|
||||
|
||||
public void setDecryptMetadata(OpenPgpDecryptMetadata decryptMetadata) {
|
||||
public void setDecryptMetadata(OpenPgpMetadata decryptMetadata) {
|
||||
mDecryptMetadata = decryptMetadata;
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ public class PgpDecryptVerifyResult implements Parcelable {
|
||||
vr.mStatus = source.readInt();
|
||||
vr.mKeyIdPassphraseNeeded = source.readLong();
|
||||
vr.mSignatureResult = source.readParcelable(OpenPgpSignatureResult.class.getClassLoader());
|
||||
vr.mDecryptMetadata = source.readParcelable(OpenPgpDecryptMetadata.class.getClassLoader());
|
||||
vr.mDecryptMetadata = source.readParcelable(OpenPgpMetadata.class.getClassLoader());
|
||||
return vr;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ import android.os.IBinder;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
|
||||
import org.openintents.openpgp.IOpenPgpService;
|
||||
import org.openintents.openpgp.OpenPgpDecryptMetadata;
|
||||
import org.openintents.openpgp.OpenPgpMetadata;
|
||||
import org.openintents.openpgp.OpenPgpError;
|
||||
import org.openintents.openpgp.OpenPgpSignatureResult;
|
||||
import org.openintents.openpgp.util.OpenPgpApi;
|
||||
@ -406,7 +406,7 @@ public class OpenPgpService extends RemoteService {
|
||||
}
|
||||
}
|
||||
|
||||
OpenPgpDecryptMetadata metadata = decryptVerifyResult.getDecryptMetadata();
|
||||
OpenPgpMetadata metadata = decryptVerifyResult.getDecryptMetadata();
|
||||
if (metadata != null) {
|
||||
result.putExtra(OpenPgpApi.RESULT_METADATA, metadata);
|
||||
}
|
||||
|
2
extern/openpgp-api-lib
vendored
2
extern/openpgp-api-lib
vendored
@ -1 +1 @@
|
||||
Subproject commit 9aa5f23788f19689fb172fd209de72bc6941afdf
|
||||
Subproject commit 777d22d75da9bfecf0bcfe2088da3fef01b2259f
|
Loading…
Reference in New Issue
Block a user