refactor: TlsUtility::isCertValid we only use RSA keys for now
This commit is contained in:
parent
ff02285a6a
commit
4cb184989c
6 changed files with 12 additions and 12 deletions
|
|
@ -50,9 +50,9 @@ bool isCertValid(const QString &certPath)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (const auto type = key.algorithm(); (type != QSsl::Dsa || type != QSsl::Rsa)) {
|
if (key.algorithm() != QSsl::Rsa) {
|
||||||
//: %1 will be replaced by the certificate path
|
//: %1 will be replaced by the certificate path
|
||||||
qDebug() << QObject::tr("failed to read RSA or DSA key from certificate file: %1").arg(certPath);
|
qDebug() << QObject::tr("failed to read RSA key from certificate file: %1").arg(certPath);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -726,9 +726,9 @@ Nombres válidos:
|
||||||
<translation type="unfinished">La clave detectada es de tamaño incorrecto</translation>
|
<translation type="unfinished">La clave detectada es de tamaño incorrecto</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>failed to read RSA or DSA key from certificate file: %1</source>
|
<source>failed to read RSA key from certificate file: %1</source>
|
||||||
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
||||||
<translation type="unfinished">No se pudo leer la clave RSA o DSA del archivo de certificado: %1</translation>
|
<translation type="unfinished">No se pudo leer la clave RSA del archivo de certificado: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
||||||
|
|
@ -726,9 +726,9 @@ Nomi validi:
|
||||||
<translation type="unfinished">la chiave rilevata ha una dimensione errata</translation>
|
<translation type="unfinished">la chiave rilevata ha una dimensione errata</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>failed to read RSA or DSA key from certificate file: %1</source>
|
<source>failed to read RSA key from certificate file: %1</source>
|
||||||
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
||||||
<translation type="unfinished">impossibile leggere la chiave RSA o DSA dal file del certificato: %1</translation>
|
<translation type="unfinished">impossibile leggere la chiave RSA dal file del certificato: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
||||||
|
|
@ -727,9 +727,9 @@ Valid names:
|
||||||
<translation type="unfinished">検出されたキーのサイズが正しくありません</translation>
|
<translation type="unfinished">検出されたキーのサイズが正しくありません</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>failed to read RSA or DSA key from certificate file: %1</source>
|
<source>failed to read RSA key from certificate file: %1</source>
|
||||||
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
||||||
<translation type="unfinished">証明書ファイルから RSA または DSA キーを読み取ることができませんでした: %1</translation>
|
<translation type="unfinished">証明書ファイルから RSA キーを読み取ることができませんでした: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
||||||
|
|
@ -729,9 +729,9 @@ Valid names:
|
||||||
<translation type="unfinished">обнаружен ключ неправильного размера</translation>
|
<translation type="unfinished">обнаружен ключ неправильного размера</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>failed to read RSA or DSA key from certificate file: %1</source>
|
<source>failed to read RSA key from certificate file: %1</source>
|
||||||
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
||||||
<translation type="unfinished">не удалось прочитать ключ RSA или DSA из файла сертификата: %1</translation>
|
<translation type="unfinished">не удалось прочитать ключ RSA из файла сертификата: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
||||||
|
|
@ -727,9 +727,9 @@ Valid names:
|
||||||
<translation type="unfinished">检测到的密钥大小不正确。</translation>
|
<translation type="unfinished">检测到的密钥大小不正确。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>failed to read RSA or DSA key from certificate file: %1</source>
|
<source>failed to read RSA key from certificate file: %1</source>
|
||||||
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
<extracomment>%1 will be replaced by the certificate path</extracomment>
|
||||||
<translation type="unfinished">无法从证书文件中读取 RSA 或 DSA 密钥:%1</translation>
|
<translation type="unfinished">无法从证书文件中读取 RSA 密钥:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue