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 CKCAPI_H michael@0: #include "ckcapi.h" michael@0: #endif /* CKCAPI_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_ckcapi_types_1 [] = { michael@0: CKA_CLASS, CKA_TOKEN, CKA_PRIVATE, CKA_MODIFIABLE, CKA_LABEL michael@0: }; michael@0: michael@0: static const NSSItem nss_ckcapi_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 CAPI Access", (PRUint32)20 } michael@0: }; michael@0: michael@0: ckcapiInternalObject nss_ckcapi_data[] = { michael@0: { ckcapiRaw, michael@0: { 5, nss_ckcapi_types_1, nss_ckcapi_items_1} , michael@0: }, michael@0: michael@0: }; michael@0: michael@0: const PRUint32 nss_ckcapi_nObjects = 1;