Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef CKMK_H |
michael@0 | 6 | #include "ckmk.h" |
michael@0 | 7 | #endif /* CKMK_H */ |
michael@0 | 8 | |
michael@0 | 9 | static const CK_TRUST ckt_netscape_valid = CKT_NETSCAPE_VALID; |
michael@0 | 10 | static const CK_OBJECT_CLASS cko_certificate = CKO_CERTIFICATE; |
michael@0 | 11 | static const CK_TRUST ckt_netscape_trusted_delegator = CKT_NETSCAPE_TRUSTED_DELEGATOR; |
michael@0 | 12 | static const CK_OBJECT_CLASS cko_netscape_trust = CKO_NETSCAPE_TRUST; |
michael@0 | 13 | static const CK_BBOOL ck_true = CK_TRUE; |
michael@0 | 14 | static const CK_OBJECT_CLASS cko_data = CKO_DATA; |
michael@0 | 15 | static const CK_CERTIFICATE_TYPE ckc_x_509 = CKC_X_509; |
michael@0 | 16 | static const CK_BBOOL ck_false = CK_FALSE; |
michael@0 | 17 | static const CK_OBJECT_CLASS cko_netscape_builtin_root_list = CKO_NETSCAPE_BUILTIN_ROOT_LIST; |
michael@0 | 18 | |
michael@0 | 19 | /* example of a static object */ |
michael@0 | 20 | static const CK_ATTRIBUTE_TYPE nss_ckmk_types_1 [] = { |
michael@0 | 21 | CKA_CLASS, CKA_TOKEN, CKA_PRIVATE, CKA_MODIFIABLE, CKA_LABEL |
michael@0 | 22 | }; |
michael@0 | 23 | |
michael@0 | 24 | static const NSSItem nss_ckmk_items_1 [] = { |
michael@0 | 25 | { (void *)&cko_data, (PRUint32)sizeof(CK_OBJECT_CLASS) }, |
michael@0 | 26 | { (void *)&ck_true, (PRUint32)sizeof(CK_BBOOL) }, |
michael@0 | 27 | { (void *)&ck_false, (PRUint32)sizeof(CK_BBOOL) }, |
michael@0 | 28 | { (void *)&ck_false, (PRUint32)sizeof(CK_BBOOL) }, |
michael@0 | 29 | { (void *)"Mozilla Mac Key Ring Access", (PRUint32)28 } |
michael@0 | 30 | }; |
michael@0 | 31 | |
michael@0 | 32 | ckmkInternalObject nss_ckmk_data[] = { |
michael@0 | 33 | { ckmkRaw, {{ 5, nss_ckmk_types_1, nss_ckmk_items_1}} , CKO_DATA, {NULL} }, |
michael@0 | 34 | }; |
michael@0 | 35 | |
michael@0 | 36 | const PRUint32 nss_ckmk_nObjects = 1; |