chore: Fix typos for var names in formatSSLFingerprintColumns
This commit is contained in:
parent
63026752b5
commit
477c7b07e5
1 changed files with 9 additions and 9 deletions
|
|
@ -148,23 +148,23 @@ int getCertLength(const std::string &path)
|
||||||
|
|
||||||
QString formatSSLFingerprintColumns(const QByteArray &fingerprint)
|
QString formatSSLFingerprintColumns(const QByteArray &fingerprint)
|
||||||
{
|
{
|
||||||
auto kmaxColumns = 24;
|
auto kMaxColumns = 24;
|
||||||
|
|
||||||
QString hex = fingerprint.toHex(':').toUpper();
|
QString hex = fingerprint.toHex(':').toUpper();
|
||||||
if (hex.isEmpty()) {
|
if (hex.isEmpty()) {
|
||||||
return hex;
|
return hex;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString formatedString;
|
QString formattedString;
|
||||||
while (!hex.isEmpty()) {
|
while (!hex.isEmpty()) {
|
||||||
formatedString.append(hex.first(kmaxColumns));
|
formattedString.append(hex.first(kMaxColumns));
|
||||||
hex.remove(0, kmaxColumns);
|
hex.remove(0, kMaxColumns);
|
||||||
if (formatedString.endsWith(':'))
|
if (formattedString.endsWith(':'))
|
||||||
formatedString.removeLast();
|
formattedString.removeLast();
|
||||||
formatedString.append('\n');
|
formattedString.append('\n');
|
||||||
}
|
}
|
||||||
formatedString.removeLast();
|
formattedString.removeLast();
|
||||||
return formatedString;
|
return formattedString;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue