mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 19:22:14 -05:00
Don't guess keybase key algorithm and size
Once keybase reports them, we can display them. Until then we simply don't know and shouldn't lie about it.
This commit is contained in:
parent
6162247155
commit
056a6dd347
@ -98,10 +98,8 @@ public class KeybaseKeyServer extends KeyServer {
|
|||||||
entry.setExtraData(keybaseId);
|
entry.setExtraData(keybaseId);
|
||||||
|
|
||||||
// TODO: Fix; have suggested keybase provide this value to avoid search-time crypto calls
|
// TODO: Fix; have suggested keybase provide this value to avoid search-time crypto calls
|
||||||
entry.setBitStrength(4096);
|
//entry.setBitStrength(4096);
|
||||||
entry.setAlgorithm("RSA");
|
//entry.setAlgorithm("RSA");
|
||||||
entry.setKeyIdHex("0x" + key_fingerprint);
|
|
||||||
entry.setRevoked(false);
|
|
||||||
|
|
||||||
// ctime
|
// ctime
|
||||||
final long creationDate = JWalk.getLong(match, "them", "public_keys", "primary", "ctime");
|
final long creationDate = JWalk.getLong(match, "them", "public_keys", "primary", "ctime");
|
||||||
|
@ -153,7 +153,12 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
|
|||||||
holder.fingerprint.setVisibility(View.GONE);
|
holder.fingerprint.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (entry.bitStrength != 0 && entry.algorithm != null) {
|
||||||
holder.algorithm.setText("" + entry.bitStrength + "/" + entry.algorithm);
|
holder.algorithm.setText("" + entry.bitStrength + "/" + entry.algorithm);
|
||||||
|
holder.algorithm.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
holder.algorithm.setVisibility(View.INVISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
if (entry.revoked) {
|
if (entry.revoked) {
|
||||||
holder.status.setVisibility(View.VISIBLE);
|
holder.status.setVisibility(View.VISIBLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user