security/nss/lib/ckfw/capi/staticobj.c

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef CKCAPI_H
     6 #include "ckcapi.h"
     7 #endif /* CKCAPI_H */
     9 static const CK_TRUST ckt_netscape_valid = CKT_NETSCAPE_VALID;
    10 static const CK_OBJECT_CLASS cko_certificate = CKO_CERTIFICATE;
    11 static const CK_TRUST ckt_netscape_trusted_delegator = CKT_NETSCAPE_TRUSTED_DELEGATOR;
    12 static const CK_OBJECT_CLASS cko_netscape_trust = CKO_NETSCAPE_TRUST;
    13 static const CK_BBOOL ck_true = CK_TRUE;
    14 static const CK_OBJECT_CLASS cko_data = CKO_DATA;
    15 static const CK_CERTIFICATE_TYPE ckc_x_509 = CKC_X_509;
    16 static const CK_BBOOL ck_false = CK_FALSE;
    17 static const CK_OBJECT_CLASS cko_netscape_builtin_root_list = CKO_NETSCAPE_BUILTIN_ROOT_LIST;
    19 /* example of a static object */
    20 static const CK_ATTRIBUTE_TYPE nss_ckcapi_types_1 [] = {
    21  CKA_CLASS,  CKA_TOKEN,  CKA_PRIVATE,  CKA_MODIFIABLE,  CKA_LABEL
    22 };
    24 static const NSSItem nss_ckcapi_items_1 [] = {
    25   { (void *)&cko_data, (PRUint32)sizeof(CK_OBJECT_CLASS) },
    26   { (void *)&ck_true, (PRUint32)sizeof(CK_BBOOL) },
    27   { (void *)&ck_false, (PRUint32)sizeof(CK_BBOOL) },
    28   { (void *)&ck_false, (PRUint32)sizeof(CK_BBOOL) },
    29   { (void *)"Mozilla CAPI Access", (PRUint32)20 }
    30 };
    32 ckcapiInternalObject nss_ckcapi_data[] = {
    33   { ckcapiRaw,
    34     { 5, nss_ckcapi_types_1, nss_ckcapi_items_1} ,
    35   },
    37 };
    39 const PRUint32 nss_ckcapi_nObjects = 1;

mercurial