mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-01-31 23:20:20 -05:00
Download from origin during ACTION_DOWNLOAD_AND_IMPORT_KEYS
This commit is contained in:
parent
8e5767f967
commit
be490307f9
@ -796,10 +796,11 @@ public class KeychainIntentService extends IntentService
|
|||||||
ArrayList<ImportKeysListEntry> entries = data.getParcelableArrayList(DOWNLOAD_KEY_LIST);
|
ArrayList<ImportKeysListEntry> entries = data.getParcelableArrayList(DOWNLOAD_KEY_LIST);
|
||||||
String keyServer = data.getString(DOWNLOAD_KEY_SERVER);
|
String keyServer = data.getString(DOWNLOAD_KEY_SERVER);
|
||||||
|
|
||||||
// this downloads the keys and places them into the ImportKeysListEntry entries
|
|
||||||
HkpKeyserver server = new HkpKeyserver(keyServer);
|
|
||||||
|
|
||||||
for (ImportKeysListEntry entry : entries) {
|
for (ImportKeysListEntry entry : entries) {
|
||||||
|
|
||||||
|
// this downloads the keys and places them into the ImportKeysListEntry entries
|
||||||
|
HkpKeyserver server = new HkpKeyserver(entry.getOrigin() != null ? entry.getOrigin() : keyServer);
|
||||||
|
|
||||||
// if available use complete fingerprint for get request
|
// if available use complete fingerprint for get request
|
||||||
byte[] downloadedKeyBytes;
|
byte[] downloadedKeyBytes;
|
||||||
if (entry.getFingerprintHex() != null) {
|
if (entry.getFingerprintHex() != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user