OLD | NEW |
1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
3 * | 3 * |
4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
8 * | 8 * |
9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 {certificateUsageSSLClient, IDS_CERT_USAGE_SSL_CLIENT}, | 55 {certificateUsageSSLClient, IDS_CERT_USAGE_SSL_CLIENT}, |
56 {certificateUsageSSLServer, IDS_CERT_USAGE_SSL_SERVER}, | 56 {certificateUsageSSLServer, IDS_CERT_USAGE_SSL_SERVER}, |
57 {certificateUsageSSLServerWithStepUp, | 57 {certificateUsageSSLServerWithStepUp, |
58 IDS_CERT_USAGE_SSL_SERVER_WITH_STEPUP}, | 58 IDS_CERT_USAGE_SSL_SERVER_WITH_STEPUP}, |
59 {certificateUsageEmailSigner, IDS_CERT_USAGE_EMAIL_SIGNER}, | 59 {certificateUsageEmailSigner, IDS_CERT_USAGE_EMAIL_SIGNER}, |
60 {certificateUsageEmailRecipient, IDS_CERT_USAGE_EMAIL_RECEIVER}, | 60 {certificateUsageEmailRecipient, IDS_CERT_USAGE_EMAIL_RECEIVER}, |
61 {certificateUsageObjectSigner, IDS_CERT_USAGE_OBJECT_SIGNER}, | 61 {certificateUsageObjectSigner, IDS_CERT_USAGE_OBJECT_SIGNER}, |
62 {certificateUsageSSLCA, IDS_CERT_USAGE_SSL_CA}, | 62 {certificateUsageSSLCA, IDS_CERT_USAGE_SSL_CA}, |
63 {certificateUsageStatusResponder, IDS_CERT_USAGE_STATUS_RESPONDER}, | 63 {certificateUsageStatusResponder, IDS_CERT_USAGE_STATUS_RESPONDER}, |
64 }; | 64 }; |
65 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(usage_string_map); ++i) { | 65 for (size_t i = 0; i < arraysize(usage_string_map); ++i) { |
66 if (usages & usage_string_map[i].usage) | 66 if (usages & usage_string_map[i].usage) |
67 out->push_back(l10n_util::GetStringUTF8( | 67 out->push_back(l10n_util::GetStringUTF8( |
68 usage_string_map[i].string_id)); | 68 usage_string_map[i].string_id)); |
69 } | 69 } |
70 } | 70 } |
71 } | 71 } |
72 | 72 |
73 } // namespace mozilla_security_manager | 73 } // namespace mozilla_security_manager |
OLD | NEW |