security/nss/lib/ckfw/builtins/constants.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/ckfw/builtins/constants.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/*
     1.9 + * builtins/constants.c
    1.10 + *
    1.11 + * Identification and other constants, all collected here in one place.
    1.12 + */
    1.13 +
    1.14 +#ifndef NSSBASET_H
    1.15 +#include "nssbaset.h"
    1.16 +#endif /* NSSBASET_H */
    1.17 +
    1.18 +#ifndef NSSCKT_H
    1.19 +#include "nssckt.h"
    1.20 +#endif /* NSSCKT_H */
    1.21 +
    1.22 +#ifndef NSSCKBI_H
    1.23 +#include "nssckbi.h"
    1.24 +#endif /* NSSCKBI_H */
    1.25 +
    1.26 +const CK_VERSION
    1.27 +nss_builtins_CryptokiVersion =  {
    1.28 +		NSS_BUILTINS_CRYPTOKI_VERSION_MAJOR,
    1.29 +		NSS_BUILTINS_CRYPTOKI_VERSION_MINOR };
    1.30 +
    1.31 +const CK_VERSION
    1.32 +nss_builtins_LibraryVersion = {
    1.33 +	NSS_BUILTINS_LIBRARY_VERSION_MAJOR,
    1.34 +	NSS_BUILTINS_LIBRARY_VERSION_MINOR};
    1.35 +
    1.36 +const CK_VERSION
    1.37 +nss_builtins_HardwareVersion = { 
    1.38 +	NSS_BUILTINS_HARDWARE_VERSION_MAJOR,
    1.39 +	NSS_BUILTINS_HARDWARE_VERSION_MINOR };
    1.40 +
    1.41 +const CK_VERSION
    1.42 +nss_builtins_FirmwareVersion = { 
    1.43 +	NSS_BUILTINS_FIRMWARE_VERSION_MAJOR,
    1.44 +	NSS_BUILTINS_FIRMWARE_VERSION_MINOR };
    1.45 +
    1.46 +const NSSUTF8 
    1.47 +nss_builtins_ManufacturerID[] = { "Mozilla Foundation" };
    1.48 +
    1.49 +const NSSUTF8 
    1.50 +nss_builtins_LibraryDescription[] = { "NSS Builtin Object Cryptoki Module" };
    1.51 +
    1.52 +const NSSUTF8 
    1.53 +nss_builtins_SlotDescription[] = { "NSS Builtin Objects" };
    1.54 +
    1.55 +const NSSUTF8 
    1.56 +nss_builtins_TokenLabel[] = { "Builtin Object Token" };
    1.57 +
    1.58 +const NSSUTF8 
    1.59 +nss_builtins_TokenModel[] = { "1" };
    1.60 +
    1.61 +/* should this be e.g. the certdata.txt RCS revision number? */
    1.62 +const NSSUTF8 
    1.63 +nss_builtins_TokenSerialNumber[] = { "1" };
    1.64 +

mercurial