Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
3.7 KiB

  1. // V1Paths.cpp -- definition of CV1Paths
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 2000. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. /////////////////////////// LOCAL/HELPER /////////////////////////////////
  8. #include "V1Paths.h"
  9. using namespace std;
  10. using namespace cci;
  11. namespace
  12. {
  13. char const
  14. szDefaultKeyPath[] = "/3F00/3F11"; // Path to Public/Private key files
  15. char const
  16. szDefaultContainerPath[] = "/3F00"; // Path to Container file
  17. char const
  18. szICC_ROOT[] = "/3F00"; // [3F00] ROOT level
  19. char const
  20. szICC_CHV[] = "/3F00/0000"; // [0000] at ROOT level
  21. char const
  22. szICC_ADMKEYS[] = "/3F00/0011"; // [0011] at ROOT level
  23. char const
  24. szICC_CRYPTO_SYS[] = "/3F00/3F11"; // [3F11] at ROOT level
  25. char const
  26. szICC_ID_SYS[] = "/3F00/3F15"; // [3F15] at ROOT level
  27. char const
  28. szICC_IC_FILE[] = "/3F00/0005"; // [0005] at ROOT level
  29. char const
  30. szICC_RELATIVE_CONTAINERS[] = "0015";
  31. char const
  32. szICC_ROOT_CONTAINERS[] = "/3F00/0015";
  33. char const
  34. szICC_PUBLICKEYS[] = "/3F00/3F11/0015";
  35. char const
  36. szICC_PRIVATEKEYS[] = "/3F00/3F11/0012";
  37. } // namespace
  38. /////////////////////////// PUBLIC /////////////////////////////////
  39. // Types
  40. // C'tors/D'tors
  41. // Operators
  42. // Operations
  43. // Access
  44. char const *
  45. CV1Paths::AdmKeys()
  46. {
  47. return szICC_ADMKEYS;
  48. }
  49. char const *
  50. CV1Paths::Chv()
  51. {
  52. return szICC_CHV;
  53. }
  54. char const *
  55. CV1Paths::CryptoSys()
  56. {
  57. return szICC_CRYPTO_SYS;
  58. }
  59. char const *
  60. CV1Paths::DefaultContainer()
  61. {
  62. return szDefaultContainerPath;
  63. }
  64. char const *
  65. CV1Paths::DefaultKey()
  66. {
  67. return szDefaultKeyPath;
  68. }
  69. char const *
  70. CV1Paths::IcFile()
  71. {
  72. return szICC_IC_FILE;
  73. }
  74. char const *
  75. CV1Paths::IdSys()
  76. {
  77. return szICC_ID_SYS;
  78. }
  79. char const *
  80. CV1Paths::PrivateKeys()
  81. {
  82. return szICC_PRIVATEKEYS;
  83. }
  84. char const *
  85. CV1Paths::PublicKeys()
  86. {
  87. return szICC_PUBLICKEYS;
  88. }
  89. char const *
  90. CV1Paths::RelativeContainers()
  91. {
  92. return szICC_RELATIVE_CONTAINERS;
  93. }
  94. char const *
  95. CV1Paths::Root()
  96. {
  97. return szICC_ROOT;
  98. }
  99. char const *
  100. CV1Paths::RootContainers()
  101. {
  102. return szICC_ROOT_CONTAINERS;
  103. }
  104. // Predicates
  105. // Static Variables
  106. /////////////////////////// PROTECTED /////////////////////////////////
  107. // C'tors/D'tors
  108. // Operators
  109. // Operations
  110. // Access
  111. // Predicates
  112. // Static Variables
  113. /////////////////////////// PRIVATE /////////////////////////////////
  114. // C'tors/D'tors
  115. // Operators
  116. // Operations
  117. // Access
  118. // Predicates
  119. // Static Variables