Skip to content

Commit

Permalink
fix(LCP): provider certificate expiration, will need further l10n imp…
Browse files Browse the repository at this point in the history
…rovement (Fixes #2748 )
  • Loading branch information
danielweck committed Jan 10, 2025
1 parent 0739830 commit 42d136a
Show file tree
Hide file tree
Showing 30 changed files with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function* importLcplFromFS(
// LCP license checks to avoid unnecessary download:
// CERTIFICATE_SIGNATURE_INVALID = 102
// CERTIFICATE_REVOKED = 101
// LICENSE_SIGNATURE_DATE_INVALID = 111
// LICENSE_CERTIFICATE_DATE_INVALID (was LICENSE_SIGNATURE_DATE_INVALID) = 111
// LICENSE_SIGNATURE_INVALID = 112
// (USER_KEY_CHECK_INVALID = 141) is guaranteed because of dummy passphrase
// (LICENSE_OUT_OF_DATE = 11) occurs afterwards, so will only be checked after passphrase try
Expand Down Expand Up @@ -91,7 +91,7 @@ export function* importLcplFromFS(
if (err !== 141) { // USER_KEY_CHECK_INVALID
// CERTIFICATE_SIGNATURE_INVALID = 102
// CERTIFICATE_REVOKED = 101
// LICENSE_SIGNATURE_DATE_INVALID = 111
// LICENSE_CERTIFICATE_DATE_INVALID (was LICENSE_SIGNATURE_DATE_INVALID) = 111
// LICENSE_SIGNATURE_INVALID = 112
const msg = lcpManager.convertUnlockPublicationResultToString(err);
yield put(
Expand Down
6 changes: 3 additions & 3 deletions src/main/services/lcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ export class LcpManager {
break;
}
case 111: {
// message = "LICENSE_SIGNATURE_DATE_INVALID: " + val;
message = this.translator.translate("publication.licenseSignatureDateInvalid");
// message = "LICENSE_CERTIFICATE_DATE_INVALID (was LICENSE_SIGNATURE_DATE_INVALID): " + val;
message = this.translator.translate("publication.licenseCertificateDateInvalid");
break;
}
case 112: {
Expand Down Expand Up @@ -794,7 +794,7 @@ export class LcpManager {
// // Certificate has not been signed by CA
// CERTIFICATE_SIGNATURE_INVALID = 102,
// // License has been issued by an expired certificate
// LICENSE_SIGNATURE_DATE_INVALID = 111,
// LICENSE_CERTIFICATE_DATE_INVALID (was LICENSE_SIGNATURE_DATE_INVALID) = 111,
// // License signature does not match
// LICENSE_SIGNATURE_INVALID = 112,
// // The drm context is invalid
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "",
"licenceLCP": "الترخيص (LCP)",
"licenseOutOfDate": "ترخيص LCP قديم.",
"licenseSignatureDateInvalid": "تاريخ توقيع ترخيص LCP غير صالح.",
"licenseCertificateDateInvalid": "تاريخ توقيع ترخيص LCP غير صالح.",
"licenseSignatureInvalid": "توقيع ترخيص LCP غير صالح.",
"licensed": "مرخَّص",
"markAsRead": "وضع علامة كمقروء",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Начало",
"licenceLCP": "",
"licenseOutOfDate": "Изтекъл срок на лиценза",
"licenseSignatureDateInvalid": "Датата на ключа за лиценза е невалидна",
"licenseCertificateDateInvalid": "Датата на ключа за лиценза е невалидна",
"licenseSignatureInvalid": "Ключа за лиценза е невалиден",
"licensed": "",
"markAsRead": "",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Inici",
"licenceLCP": "Llicència (LCP)",
"licenseOutOfDate": "La llicència està desactualitzada",
"licenseSignatureDateInvalid": "La data de la firma de la llicència no és vàlida",
"licenseCertificateDateInvalid": "La data de la firma de la llicència no és vàlida",
"licenseSignatureInvalid": "La firma de la llicència no és vàlida",
"licensed": "Llicenciat",
"markAsRead": "Marca com a llegit",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Start",
"licenceLCP": "Licens (LCP)",
"licenseOutOfDate": "Licensen er udløbet",
"licenseSignatureDateInvalid": "Licensens signatur-dato er ugyldig",
"licenseCertificateDateInvalid": "Licensens signatur-dato er ugyldig",
"licenseSignatureInvalid": "Licensens signatur er ugyldig",
"licensed": "Licenseret",
"markAsRead": "Markér som læst",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Start",
"licenceLCP": "Lizenz (LCP)",
"licenseOutOfDate": "Veraltete LCP-Lizenz.",
"licenseSignatureDateInvalid": "Ungültiges Signaturdatum der LCP-Lizenz.",
"licenseCertificateDateInvalid": "Ungültiges Signaturdatum der LCP-Lizenz.",
"licenseSignatureInvalid": "Invalid LCP license signature.",
"licensed": "Lizenziert",
"markAsRead": "Als gelesen markieren",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Αρχή",
"licenceLCP": "Άδεια χρήσης (LCP)",
"licenseOutOfDate": "Η άδεια έχει λήξει",
"licenseSignatureDateInvalid": "Η ημερομηνία υπογραφής της άδειας είναι άκυρη",
"licenseCertificateDateInvalid": "Η ημερομηνία υπογραφής της άδειας είναι άκυρη",
"licenseSignatureInvalid": "Η υπογραφή της άδειας είναι άκυρη",
"licensed": "Με άδεια χρήσης",
"markAsRead": "Σημείωση ως διαβασμένο",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Start",
"licenceLCP": "License (LCP)",
"licenseOutOfDate": "Out of date LCP License.",
"licenseSignatureDateInvalid": "Invalid LCP license signature date.",
"licenseCertificateDateInvalid": "Expired LCP provider certificate.",
"licenseSignatureInvalid": "Invalid LCP license signature.",
"licensed": "Licensed",
"markAsRead": "Mark as read",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Inicio",
"licenceLCP": "Licencia (LCP)",
"licenseOutOfDate": "La licencia está desactualizada.",
"licenseSignatureDateInvalid": "La fecha de la firma de la licencia LCP no es válida",
"licenseCertificateDateInvalid": "La fecha de la firma de la licencia LCP no es válida",
"licenseSignatureInvalid": "La firma de la licencia LCP no es válida",
"licensed": "Con licencia",
"markAsRead": "Marcar como leído",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Hasiera",
"licenceLCP": "Lizentzia (LCP)",
"licenseOutOfDate": "Lizentzia ez dago eguneratuta",
"licenseSignatureDateInvalid": "Lizentzia-sinaduraren data ez da baliozkoa",
"licenseCertificateDateInvalid": "Lizentzia-sinaduraren data ez da baliozkoa",
"licenseSignatureInvalid": "Lizentziaren sinadura ez da baliozkoa",
"licensed": "Lizentziarekin",
"markAsRead": "Markatu irakurritako gisa",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Aloita",
"licenceLCP": "Käyttöoikeus (LCP)",
"licenseOutOfDate": "LCP-käyttöoikeus on vanhentunut.",
"licenseSignatureDateInvalid": "LCP-käyttöoikeuden allekirjoituksen päiväys ei kelpaa",
"licenseCertificateDateInvalid": "LCP-käyttöoikeuden allekirjoituksen päiväys ei kelpaa",
"licenseSignatureInvalid": "LCP-käyttöoikeuden allekirjoitus ei kelpaa",
"licensed": "Lisensoitu",
"markAsRead": "Merkitse luetuksi",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Début",
"licenceLCP": "Licence (LCP)",
"licenseOutOfDate": "License LCP inutilisable à cette date.",
"licenseSignatureDateInvalid": "Date de signature de license LCP invalide",
"licenseCertificateDateInvalid": "Certificat de provider LCP expiré.",
"licenseSignatureInvalid": "Signature de license LCP invalide",
"licensed": "Accès protégé",
"markAsRead": "Marquer comme lu",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Inicio",
"licenceLCP": "Licenza (LCP)",
"licenseOutOfDate": "A licenza está desactualizada.",
"licenseSignatureDateInvalid": "A data da firma da licenza non é válida",
"licenseCertificateDateInvalid": "A data da firma da licenza non é válida",
"licenseSignatureInvalid": "A firma da licenza non é válida",
"licensed": "Con licenza",
"markAsRead": "Marcar como lido",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Početak",
"licenceLCP": "",
"licenseOutOfDate": "Licenca je istekla",
"licenseSignatureDateInvalid": "Datum potpisa licence je netočan",
"licenseCertificateDateInvalid": "Datum potpisa licence je netočan",
"licenseSignatureInvalid": "Potpis licence je netočan",
"licensed": "",
"markAsRead": "",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Inizio",
"licenceLCP": "Licenza (LCP)",
"licenseOutOfDate": "La licenza è scaduta",
"licenseSignatureDateInvalid": "La data della firma della licenza non è valida",
"licenseCertificateDateInvalid": "La data della firma della licenza non è valida",
"licenseSignatureInvalid": "La firma della licenza non è valida",
"licensed": "Concesso in licenza",
"markAsRead": "Segna come letto",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "開始",
"licenceLCP": "ライセンス(LCP)",
"licenseOutOfDate": "LCPライセンスの期限切れです",
"licenseSignatureDateInvalid": "LCPライセンスの署名の日付が無効です",
"licenseCertificateDateInvalid": "LCPライセンスの署名の日付が無効です",
"licenseSignatureInvalid": "LCPライセンスの署名が無効です",
"licensed": "ライセンスが付与されています",
"markAsRead": "既読にする",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/ka.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "დაწყება",
"licenceLCP": "",
"licenseOutOfDate": "ლიცენზია მოძველდა",
"licenseSignatureDateInvalid": "ლიცენზიის ხელმოწერის თარიღი არასწორია",
"licenseCertificateDateInvalid": "ლიცენზიის ხელმოწერის თარიღი არასწორია",
"licenseSignatureInvalid": "ლიცენზიის ხელმოწერა არასწორია",
"licensed": "",
"markAsRead": "",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "시작",
"licenceLCP": "",
"licenseOutOfDate": "라이선스가 만료되었습니다",
"licenseSignatureDateInvalid": "라이선스 서명날짜가 유효하지 않습니다",
"licenseCertificateDateInvalid": "라이선스 서명날짜가 유효하지 않습니다",
"licenseSignatureInvalid": "라이선스 서명이 유효하지 않습니다",
"licensed": "",
"markAsRead": "",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/lt.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Pradžia",
"licenceLCP": "Licencija (LCP)",
"licenseOutOfDate": "Licencijos galiojimas pasibaigęs",
"licenseSignatureDateInvalid": "Negaliojanti licencijos parašo data",
"licenseCertificateDateInvalid": "Negaliojanti licencijos parašo data",
"licenseSignatureInvalid": "Negaliojantis licencijos parašas",
"licensed": "Licencijuotas",
"markAsRead": "Žymėti kaip perskaitytą",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Start",
"licenceLCP": "Licentie (LCP)",
"licenseOutOfDate": "Licentie is verlopen",
"licenseSignatureDateInvalid": "Datum in de Licentie handtekening is iongeldig",
"licenseCertificateDateInvalid": "Datum in de Licentie handtekening is iongeldig",
"licenseSignatureInvalid": "Licentie handtekening is ongeldig",
"licensed": "Gelicentieerd",
"markAsRead": "Markeer als gelezen",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Iniciar",
"licenceLCP": "Licença (LCP)",
"licenseOutOfDate": "Licença vencida",
"licenseSignatureDateInvalid": "A data da assinatura da licença é inválida",
"licenseCertificateDateInvalid": "A data da assinatura da licença é inválida",
"licenseSignatureInvalid": "A assinatura da licença é inválida",
"licensed": "Licenciado",
"markAsRead": "Marcar como lido",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/pt-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Início",
"licenceLCP": "Licença (LCP)",
"licenseOutOfDate": "Licença LCP caducada.",
"licenseSignatureDateInvalid": "A data de assinatura da licença LCP é inválida.",
"licenseCertificateDateInvalid": "A data de assinatura da licença LCP é inválida.",
"licenseSignatureInvalid": "A assinatura da licença LCP é inválida.",
"licensed": "Licenciado",
"markAsRead": "Marcar como Lido",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Начать",
"licenceLCP": "Лицензия (LCP)",
"licenseOutOfDate": "Лицензия LCP устарела",
"licenseSignatureDateInvalid": "Дата подписания лицензии недействительна",
"licenseCertificateDateInvalid": "Дата подписания лицензии недействительна",
"licenseSignatureInvalid": "Лицензионная подпись недействительна",
"licensed": "Лицензированная",
"markAsRead": "Отметить как прочитанное",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Začetek",
"licenceLCP": "Licenca (LCP)",
"licenseOutOfDate": "Licenca ni več veljavna",
"licenseSignatureDateInvalid": "Datum podpisa licence ni veljaven",
"licenseCertificateDateInvalid": "Datum podpisa licence ni veljaven",
"licenseSignatureInvalid": "Podpis licence ni veljaven",
"licensed": "Licencirano",
"markAsRead": "Označi kot prebrano",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "Start",
"licenceLCP": "Licens (LCP)",
"licenseOutOfDate": "Licensen har löpt ut.",
"licenseSignatureDateInvalid": "Licensens signeringsdatum är ogiltigt.",
"licenseCertificateDateInvalid": "Licensens signeringsdatum är ogiltigt.",
"licenseSignatureInvalid": "Licensens signatur är ogiltig.",
"licensed": "Licensierad",
"markAsRead": "Markera som läst",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "开始",
"licenceLCP": "许可证(LCP)",
"licenseOutOfDate": "许可证过期",
"licenseSignatureDateInvalid": "许可证签名日期无效",
"licenseCertificateDateInvalid": "许可证签名日期无效",
"licenseSignatureInvalid": "许可证签名无效",
"licensed": "已授权",
"markAsRead": "标记为已读",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"lcpStart": "開始",
"licenceLCP": "授權(LCP)",
"licenseOutOfDate": "授權過期",
"licenseSignatureDateInvalid": "授權簽名日期無效",
"licenseCertificateDateInvalid": "授權簽名日期無效",
"licenseSignatureInvalid": "授權簽名無效",
"licensed": "已授權",
"markAsRead": "標記為已讀",
Expand Down
Loading

0 comments on commit 42d136a

Please sign in to comment.