Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 CKCAPI_H |
michael@0 | 6 | #include "ckcapi.h" |
michael@0 | 7 | #endif /* CKCAPI_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_ckcapi_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_ckcapi_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 CAPI Access", (PRUint32)20 } |
michael@0 | 30 | }; |
michael@0 | 31 | |
michael@0 | 32 | ckcapiInternalObject nss_ckcapi_data[] = { |
michael@0 | 33 | { ckcapiRaw, |
michael@0 | 34 | { 5, nss_ckcapi_types_1, nss_ckcapi_items_1} , |
michael@0 | 35 | }, |
michael@0 | 36 | |
michael@0 | 37 | }; |
michael@0 | 38 | |
michael@0 | 39 | const PRUint32 nss_ckcapi_nObjects = 1; |