show bitsizes in import key list again

closes #802
This commit is contained in:
Vincent Breitmoser 2014-08-30 15:45:36 +02:00
parent 456aa00e2a
commit ac080b21ef

View File

@ -280,10 +280,10 @@ public class HkpKeyserver extends Keyserver {
entry.setQuery(query); entry.setQuery(query);
entry.setOrigin(getUrlPrefix() + mHost + ":" + mPort); entry.setOrigin(getUrlPrefix() + mHost + ":" + mPort);
entry.setBitStrength(Integer.parseInt(matcher.group(3))); int bitSize = Integer.parseInt(matcher.group(3));
entry.setBitStrength(bitSize);
final int algorithmId = Integer.decode(matcher.group(2)); int algorithmId = Integer.decode(matcher.group(2));
entry.setAlgorithm(PgpKeyHelper.getAlgorithmInfo(algorithmId, null, null)); entry.setAlgorithm(PgpKeyHelper.getAlgorithmInfo(algorithmId, bitSize, null));
// group 1 contains the full fingerprint (v4) or the long key id if available // group 1 contains the full fingerprint (v4) or the long key id if available
// see http://bit.ly/1d4bxbk and http://bit.ly/1gD1wwr // see http://bit.ly/1d4bxbk and http://bit.ly/1gD1wwr