Bug 667471 - Pretty print names of ECDSA with SHA-2 algorithms in Certificate Viewer. r=dkeeler

--HG--
extra : rebase_source : eb961cbdf8fe1ccf74642d86c03ee6c41c30f2d4
This commit is contained in:
David Cooper 2015-03-27 23:13:00 +01:00
Родитель b86b9bb514
Коммит bb6cbdf02b
2 изменённых файлов: 17 добавлений и 1 удалений

Просмотреть файл

@ -110,6 +110,10 @@ CertDumpAuthInfoAccess=Authority Information Access
CertDumpAnsiX9DsaSignature=ANSI X9.57 DSA Signature
CertDumpAnsiX9DsaSignatureWithSha1=ANSI X9.57 DSA Signature with SHA1 Digest
CertDumpAnsiX962ECDsaSignatureWithSha1=ANSI X9.62 ECDSA Signature with SHA1
CertDumpAnsiX962ECDsaSignatureWithSha224=ANSI X9.62 ECDSA Signature with SHA224
CertDumpAnsiX962ECDsaSignatureWithSha256=ANSI X9.62 ECDSA Signature with SHA256
CertDumpAnsiX962ECDsaSignatureWithSha384=ANSI X9.62 ECDSA Signature with SHA384
CertDumpAnsiX962ECDsaSignatureWithSha512=ANSI X9.62 ECDSA Signature with SHA512
CertDumpKUSign=Signing
CertDumpKUNonRep=Non-repudiation
CertDumpKUEnc=Key Encipherment

Просмотреть файл

@ -364,9 +364,21 @@ GetOIDText(SECItem *oid, nsINSSComponent *nssComponent, nsAString &text)
case SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST:
bundlekey = "CertDumpAnsiX9DsaSignatureWithSha1";
break;
case SEC_OID_ANSIX962_ECDSA_SIGNATURE_WITH_SHA1_DIGEST:
case SEC_OID_ANSIX962_ECDSA_SHA1_SIGNATURE:
bundlekey = "CertDumpAnsiX962ECDsaSignatureWithSha1";
break;
case SEC_OID_ANSIX962_ECDSA_SHA224_SIGNATURE:
bundlekey = "CertDumpAnsiX962ECDsaSignatureWithSha224";
break;
case SEC_OID_ANSIX962_ECDSA_SHA256_SIGNATURE:
bundlekey = "CertDumpAnsiX962ECDsaSignatureWithSha256";
break;
case SEC_OID_ANSIX962_ECDSA_SHA384_SIGNATURE:
bundlekey = "CertDumpAnsiX962ECDsaSignatureWithSha384";
break;
case SEC_OID_ANSIX962_ECDSA_SHA512_SIGNATURE:
bundlekey = "CertDumpAnsiX962ECDsaSignatureWithSha512";
break;
case SEC_OID_RFC1274_UID:
bundlekey = "CertDumpUserID";
break;