mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
Merge remote-tracking branch 'origin/master' into development
This commit is contained in:
commit
e174b8af3b
@ -53,7 +53,7 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class KeychainDatabase extends SQLiteOpenHelper {
|
public class KeychainDatabase extends SQLiteOpenHelper {
|
||||||
private static final String DATABASE_NAME = "openkeychain.db";
|
private static final String DATABASE_NAME = "openkeychain.db";
|
||||||
private static final int DATABASE_VERSION = 9;
|
private static final int DATABASE_VERSION = 10;
|
||||||
static Boolean apgHack = false;
|
static Boolean apgHack = false;
|
||||||
private Context mContext;
|
private Context mContext;
|
||||||
|
|
||||||
@ -272,6 +272,8 @@ public class KeychainDatabase extends SQLiteOpenHelper {
|
|||||||
db.execSQL("DROP TABLE IF EXISTS user_ids");
|
db.execSQL("DROP TABLE IF EXISTS user_ids");
|
||||||
db.execSQL(CREATE_USER_PACKETS);
|
db.execSQL(CREATE_USER_PACKETS);
|
||||||
db.execSQL(CREATE_CERTS);
|
db.execSQL(CREATE_CERTS);
|
||||||
|
case 10:
|
||||||
|
// do nothing here, just consolidate
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ public class RequiredInputParcel implements Parcelable {
|
|||||||
public final byte[][] mInputHashes;
|
public final byte[][] mInputHashes;
|
||||||
public final int[] mSignAlgos;
|
public final int[] mSignAlgos;
|
||||||
|
|
||||||
private long mMasterKeyId;
|
private Long mMasterKeyId;
|
||||||
private long mSubKeyId;
|
private Long mSubKeyId;
|
||||||
|
|
||||||
private RequiredInputParcel(RequiredInputType type, byte[][] inputHashes,
|
private RequiredInputParcel(RequiredInputType type, byte[][] inputHashes,
|
||||||
int[] signAlgos, Date signatureTime, Long masterKeyId, Long subKeyId) {
|
int[] signAlgos, Date signatureTime, Long masterKeyId, Long subKeyId) {
|
||||||
@ -61,8 +61,8 @@ public class RequiredInputParcel implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mSignatureTime = source.readInt() != 0 ? new Date(source.readLong()) : null;
|
mSignatureTime = source.readInt() != 0 ? new Date(source.readLong()) : null;
|
||||||
mMasterKeyId = source.readLong();
|
mMasterKeyId = source.readInt() != 0 ? source.readLong() : null;
|
||||||
mSubKeyId = source.readLong();
|
mSubKeyId = source.readInt() != 0 ? source.readLong() : null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,8 +137,18 @@ public class RequiredInputParcel implements Parcelable {
|
|||||||
} else {
|
} else {
|
||||||
dest.writeInt(0);
|
dest.writeInt(0);
|
||||||
}
|
}
|
||||||
|
if (mMasterKeyId != null) {
|
||||||
|
dest.writeInt(1);
|
||||||
dest.writeLong(mMasterKeyId);
|
dest.writeLong(mMasterKeyId);
|
||||||
|
} else {
|
||||||
|
dest.writeInt(0);
|
||||||
|
}
|
||||||
|
if (mSubKeyId != null) {
|
||||||
|
dest.writeInt(1);
|
||||||
dest.writeLong(mSubKeyId);
|
dest.writeLong(mSubKeyId);
|
||||||
|
} else {
|
||||||
|
dest.writeInt(0);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user