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

http://github.com/zpao/v8monkey · C · 96 lines · 38 code · 16 blank · 42 comment · 0 complexity · 6752322c802c418dd0c919e0b528b682 MD5 · raw file

  1. /* ***** BEGIN LICENSE BLOCK *****
  2. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3. *
  4. * The contents of this file are subject to the Mozilla Public License Version
  5. * 1.1 (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. * http://www.mozilla.org/MPL/
  8. *
  9. * Software distributed under the License is distributed on an "AS IS" basis,
  10. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11. * for the specific language governing rights and limitations under the
  12. * License.
  13. *
  14. * The Original Code is the Netscape security libraries.
  15. *
  16. * The Initial Developer of the Original Code is
  17. * Netscape Communications Corporation.
  18. * Portions created by the Initial Developer are Copyright (C) 1994-2000
  19. * the Initial Developer. All Rights Reserved.
  20. * Portions created by Red Hat, Inc, are Copyright (C) 2005
  21. *
  22. * Contributor(s):
  23. * Bob Relyea (rrelyea@redhat.com)
  24. *
  25. * Alternatively, the contents of this file may be used under the terms of
  26. * either the GNU General Public License Version 2 or later (the "GPL"), or
  27. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28. * in which case the provisions of the GPL or the LGPL are applicable instead
  29. * of those above. If you wish to allow use of your version of this file only
  30. * under the terms of either the GPL or the LGPL, and not to allow others to
  31. * use your version of this file under the terms of the MPL, indicate your
  32. * decision by deleting the provisions above and replace them with the notice
  33. * and other provisions required by the GPL or the LGPL. If you do not delete
  34. * the provisions above, a recipient may use your version of this file under
  35. * the terms of any one of the MPL, the GPL or the LGPL.
  36. *
  37. * ***** END LICENSE BLOCK ***** */
  38. #ifdef DEBUG
  39. static const char CVS_ID[] = "@(#) $RCSfile: mconstants.c,v $ $Revision: 1.1 $ $Date: 2005/11/23 23:04:08 $";
  40. #endif /* DEBUG */
  41. /*
  42. * nssmkey/constants.c
  43. *
  44. * Identification and other constants, all collected here in one place.
  45. */
  46. #ifndef NSSBASET_H
  47. #include "nssbaset.h"
  48. #endif /* NSSBASET_H */
  49. #ifndef NSSCKT_H
  50. #include "nssckt.h"
  51. #endif /* NSSCKT_H */
  52. #include "nssmkey.h"
  53. NSS_IMPLEMENT_DATA const CK_VERSION
  54. nss_ckmk_CryptokiVersion = {
  55. NSS_CKMK_CRYPTOKI_VERSION_MAJOR,
  56. NSS_CKMK_CRYPTOKI_VERSION_MINOR };
  57. NSS_IMPLEMENT_DATA const NSSUTF8 *
  58. nss_ckmk_ManufacturerID = (NSSUTF8 *) "Mozilla Foundation";
  59. NSS_IMPLEMENT_DATA const NSSUTF8 *
  60. nss_ckmk_LibraryDescription = (NSSUTF8 *) "NSS Access to Mac OS X Key Ring";
  61. NSS_IMPLEMENT_DATA const CK_VERSION
  62. nss_ckmk_LibraryVersion = {
  63. NSS_CKMK_LIBRARY_VERSION_MAJOR,
  64. NSS_CKMK_LIBRARY_VERSION_MINOR};
  65. NSS_IMPLEMENT_DATA const NSSUTF8 *
  66. nss_ckmk_SlotDescription = (NSSUTF8 *) "Mac OS X Key Ring";
  67. NSS_IMPLEMENT_DATA const CK_VERSION
  68. nss_ckmk_HardwareVersion = {
  69. NSS_CKMK_HARDWARE_VERSION_MAJOR,
  70. NSS_CKMK_HARDWARE_VERSION_MINOR };
  71. NSS_IMPLEMENT_DATA const CK_VERSION
  72. nss_ckmk_FirmwareVersion = {
  73. NSS_CKMK_FIRMWARE_VERSION_MAJOR,
  74. NSS_CKMK_FIRMWARE_VERSION_MINOR };
  75. NSS_IMPLEMENT_DATA const NSSUTF8 *
  76. nss_ckmk_TokenLabel = (NSSUTF8 *) "Mac OS X Key Ring";
  77. NSS_IMPLEMENT_DATA const NSSUTF8 *
  78. nss_ckmk_TokenModel = (NSSUTF8 *) "1";
  79. NSS_IMPLEMENT_DATA const NSSUTF8 *
  80. nss_ckmk_TokenSerialNumber = (NSSUTF8 *) "1";