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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 CKMK_H
     6 #include "ckmk.h"
     7 #endif /* CKMK_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_ckmk_types_1 [] = {
    21  CKA_CLASS,  CKA_TOKEN,  CKA_PRIVATE,  CKA_MODIFIABLE,  CKA_LABEL
    22 };
    24 static const NSSItem nss_ckmk_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 Mac Key Ring Access", (PRUint32)28 }
    30 };
    32 ckmkInternalObject nss_ckmk_data[] = {
    33   { ckmkRaw, {{ 5, nss_ckmk_types_1, nss_ckmk_items_1}} , CKO_DATA, {NULL} },
    34 };
    36 const PRUint32 nss_ckmk_nObjects = 1;

mercurial