michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef CKMK_H michael@0: #include "ckmk.h" michael@0: #endif /* CKMK_H */ michael@0: michael@0: static const CK_TRUST ckt_netscape_valid = CKT_NETSCAPE_VALID; michael@0: static const CK_OBJECT_CLASS cko_certificate = CKO_CERTIFICATE; michael@0: static const CK_TRUST ckt_netscape_trusted_delegator = CKT_NETSCAPE_TRUSTED_DELEGATOR; michael@0: static const CK_OBJECT_CLASS cko_netscape_trust = CKO_NETSCAPE_TRUST; michael@0: static const CK_BBOOL ck_true = CK_TRUE; michael@0: static const CK_OBJECT_CLASS cko_data = CKO_DATA; michael@0: static const CK_CERTIFICATE_TYPE ckc_x_509 = CKC_X_509; michael@0: static const CK_BBOOL ck_false = CK_FALSE; michael@0: static const CK_OBJECT_CLASS cko_netscape_builtin_root_list = CKO_NETSCAPE_BUILTIN_ROOT_LIST; michael@0: michael@0: /* example of a static object */ michael@0: static const CK_ATTRIBUTE_TYPE nss_ckmk_types_1 [] = { michael@0: CKA_CLASS, CKA_TOKEN, CKA_PRIVATE, CKA_MODIFIABLE, CKA_LABEL michael@0: }; michael@0: michael@0: static const NSSItem nss_ckmk_items_1 [] = { michael@0: { (void *)&cko_data, (PRUint32)sizeof(CK_OBJECT_CLASS) }, michael@0: { (void *)&ck_true, (PRUint32)sizeof(CK_BBOOL) }, michael@0: { (void *)&ck_false, (PRUint32)sizeof(CK_BBOOL) }, michael@0: { (void *)&ck_false, (PRUint32)sizeof(CK_BBOOL) }, michael@0: { (void *)"Mozilla Mac Key Ring Access", (PRUint32)28 } michael@0: }; michael@0: michael@0: ckmkInternalObject nss_ckmk_data[] = { michael@0: { ckmkRaw, {{ 5, nss_ckmk_types_1, nss_ckmk_items_1}} , CKO_DATA, {NULL} }, michael@0: }; michael@0: michael@0: const PRUint32 nss_ckmk_nObjects = 1;