chore: Fix typos for var names in formatSSLFingerprintColumns
This commit is contained in:
@ -148,23 +148,23 @@ int getCertLength(const std::string &path)
|
||||
|
||||
QString formatSSLFingerprintColumns(const QByteArray &fingerprint)
|
||||
{
|
||||
auto kmaxColumns = 24;
|
||||
auto kMaxColumns = 24;
|
||||
|
||||
QString hex = fingerprint.toHex(':').toUpper();
|
||||
if (hex.isEmpty()) {
|
||||
return hex;
|
||||
}
|
||||
|
||||
QString formatedString;
|
||||
QString formattedString;
|
||||
while (!hex.isEmpty()) {
|
||||
formatedString.append(hex.first(kmaxColumns));
|
||||
hex.remove(0, kmaxColumns);
|
||||
if (formatedString.endsWith(':'))
|
||||
formatedString.removeLast();
|
||||
formatedString.append('\n');
|
||||
formattedString.append(hex.first(kMaxColumns));
|
||||
hex.remove(0, kMaxColumns);
|
||||
if (formattedString.endsWith(':'))
|
||||
formattedString.removeLast();
|
||||
formattedString.append('\n');
|
||||
}
|
||||
formatedString.removeLast();
|
||||
return formatedString;
|
||||
formattedString.removeLast();
|
||||
return formattedString;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user