mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Close #643: secp521r1 ssh fingerprints incorrect
SSH only uses and supports curve "prime256v1". Only display SSH fingerprints for supported keys.
This commit is contained in:
parent
70d217b354
commit
51de716caf
@ -50,9 +50,9 @@ void KeyDetail::setupFingerprints(pki_key *key)
|
||||
v->addWidget(widget);
|
||||
v->addStretch();
|
||||
|
||||
QStringList sl; sl <<
|
||||
"ssh MD5" << "ssh SHA256 B64" <<
|
||||
"x509 SHA1" << "DER SHA256";
|
||||
QStringList sl = { "x509 SHA1", "DER SHA256" };
|
||||
if (key->SSH2_compatible())
|
||||
sl += QStringList({ "ssh MD5", "ssh SHA256 B64" });
|
||||
|
||||
foreach(QString type, sl) {
|
||||
qDebug() << type << key->fingerprint(type);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user