Leaked source code of windows server 2003
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.

302 lines
6.1 KiB

  1. //-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1995 - 1999
  6. //
  7. // File: format.h
  8. //
  9. // Contents: The header for format.cpp
  10. //
  11. // History: 21-February-97 xiaohs created
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef __FORMAT_H__
  15. #define __FORMAT_H__
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. //---------------------------------------------------------
  20. //the following defines should go to the headers in
  21. // crypt0 2.0
  22. //-----------------------------------------------------------
  23. //the dll routine for formatting the attributes
  24. //in the certificate
  25. BOOL WINAPI CryptDllFormatAttr(
  26. DWORD dwEncodingType,
  27. DWORD dwFormatType,
  28. DWORD dwFormatStrType,
  29. void *pStruct,
  30. LPCSTR lpszStructType,
  31. const BYTE *pbEncoded,
  32. DWORD cbEncoded,
  33. void *pBuffer,
  34. DWORD *pcBuffer);
  35. //The routine to format the complet DN.
  36. BOOL WINAPI CryptDllFormatName(
  37. DWORD dwEncodingType,
  38. DWORD dwFormatType,
  39. DWORD dwFormatStrType,
  40. void *pStruct,
  41. LPCSTR lpszStructType,
  42. const BYTE *pbEncoded,
  43. DWORD cbEncoded,
  44. void *pbBuffer,
  45. DWORD *pcbBuffer);
  46. BOOL
  47. WINAPI
  48. FormatBasicConstraints2(
  49. DWORD dwCertEncodingType,
  50. DWORD dwFormatType,
  51. DWORD dwFormatStrType,
  52. void *pFormatStruct,
  53. LPCSTR lpszStructType,
  54. const BYTE *pbEncoded,
  55. DWORD cbEncoded,
  56. void *pbFormat,
  57. DWORD *pcbFormat);
  58. BOOL
  59. WINAPI
  60. FormatBasicConstraints(
  61. DWORD dwCertEncodingType,
  62. DWORD dwFormatType,
  63. DWORD dwFormatStrType,
  64. void *pFormatStruct,
  65. LPCSTR lpszStructType,
  66. const BYTE *pbEncoded,
  67. DWORD cbEncoded,
  68. void *pbFormat,
  69. DWORD *pcbFormat);
  70. BOOL
  71. WINAPI
  72. FormatCRLReasonCode(
  73. DWORD dwCertEncodingType,
  74. DWORD dwFormatType,
  75. DWORD dwFormatStrType,
  76. void *pFormatStruct,
  77. LPCSTR lpszStructType,
  78. const BYTE *pbEncoded,
  79. DWORD cbEncoded,
  80. void *pbFormat,
  81. DWORD *pcbFormat);
  82. BOOL
  83. WINAPI
  84. FormatEnhancedKeyUsage(
  85. DWORD dwCertEncodingType,
  86. DWORD dwFormatType,
  87. DWORD dwFormatStrType,
  88. void *pFormatStruct,
  89. LPCSTR lpszStructType,
  90. const BYTE *pbEncoded,
  91. DWORD cbEncoded,
  92. void *pbFormat,
  93. DWORD *pcbFormat);
  94. BOOL
  95. WINAPI
  96. FormatAltName(
  97. DWORD dwCertEncodingType,
  98. DWORD dwFormatType,
  99. DWORD dwFormatStrType,
  100. void *pFormatStruct,
  101. LPCSTR lpszStructType,
  102. const BYTE *pbEncoded,
  103. DWORD cbEncoded,
  104. void *pbFormat,
  105. DWORD *pcbFormat);
  106. BOOL
  107. WINAPI
  108. FormatAuthorityKeyID(
  109. DWORD dwCertEncodingType,
  110. DWORD dwFormatType,
  111. DWORD dwFormatStrType,
  112. void *pFormatStruct,
  113. LPCSTR lpszStructType,
  114. const BYTE *pbEncoded,
  115. DWORD cbEncoded,
  116. void *pbFormat,
  117. DWORD *pcbFormat);
  118. BOOL
  119. WINAPI
  120. FormatAuthorityKeyID2(
  121. DWORD dwCertEncodingType,
  122. DWORD dwFormatType,
  123. DWORD dwFormatStrType,
  124. void *pFormatStruct,
  125. LPCSTR lpszStructType,
  126. const BYTE *pbEncoded,
  127. DWORD cbEncoded,
  128. void *pbFormat,
  129. DWORD *pcbFormat);
  130. BOOL
  131. WINAPI
  132. FormatNextUpdateLocation(
  133. DWORD dwCertEncodingType,
  134. DWORD dwFormatType,
  135. DWORD dwFormatStrType,
  136. void *pFormatStruct,
  137. LPCSTR lpszStructType,
  138. const BYTE *pbEncoded,
  139. DWORD cbEncoded,
  140. void *pbFormat,
  141. DWORD *pcbFormat);
  142. BOOL
  143. WINAPI
  144. FormatSubjectKeyID(
  145. DWORD dwCertEncodingType,
  146. DWORD dwFormatType,
  147. DWORD dwFormatStrType,
  148. void *pFormatStruct,
  149. LPCSTR lpszStructType,
  150. const BYTE *pbEncoded,
  151. DWORD cbEncoded,
  152. void *pbFormat,
  153. DWORD *pcbFormat);
  154. BOOL
  155. WINAPI
  156. FormatFinancialCriteria(
  157. DWORD dwCertEncodingType,
  158. DWORD dwFormatType,
  159. DWORD dwFormatStrType,
  160. void *pFormatStruct,
  161. LPCSTR lpszStructType,
  162. const BYTE *pbEncoded,
  163. DWORD cbEncoded,
  164. void *pbFormat,
  165. DWORD *pcbFormat);
  166. BOOL
  167. WINAPI
  168. FormatSMIMECapabilities(
  169. DWORD dwCertEncodingType,
  170. DWORD dwFormatType,
  171. DWORD dwFormatStrType,
  172. void *pFormatStruct,
  173. LPCSTR lpszStructType,
  174. const BYTE *pbEncoded,
  175. DWORD cbEncoded,
  176. void *pbFormat,
  177. DWORD *pcbFormat);
  178. BOOL
  179. WINAPI
  180. FormatKeyUsage(
  181. DWORD dwCertEncodingType,
  182. DWORD dwFormatType,
  183. DWORD dwFormatStrType,
  184. void *pFormatStruct,
  185. LPCSTR lpszStructType,
  186. const BYTE *pbEncoded,
  187. DWORD cbEncoded,
  188. void *pbFormat,
  189. DWORD *pcbFormat);
  190. BOOL
  191. WINAPI
  192. FormatAuthortiyInfoAccess(
  193. DWORD dwCertEncodingType,
  194. DWORD dwFormatType,
  195. DWORD dwFormatStrType,
  196. void *pFormatStruct,
  197. LPCSTR lpszStructType,
  198. const BYTE *pbEncoded,
  199. DWORD cbEncoded,
  200. void *pbFormat,
  201. DWORD *pcbFormat);
  202. BOOL
  203. WINAPI
  204. FormatKeyAttributes(
  205. DWORD dwCertEncodingType,
  206. DWORD dwFormatType,
  207. DWORD dwFormatStrType,
  208. void *pFormatStruct,
  209. LPCSTR lpszStructType,
  210. const BYTE *pbEncoded,
  211. DWORD cbEncoded,
  212. void *pbFormat,
  213. DWORD *pcbFormat);
  214. BOOL
  215. WINAPI
  216. FormatKeyRestriction(
  217. DWORD dwCertEncodingType,
  218. DWORD dwFormatType,
  219. DWORD dwFormatStrType,
  220. void *pFormatStruct,
  221. LPCSTR lpszStructType,
  222. const BYTE *pbEncoded,
  223. DWORD cbEncoded,
  224. void *pbFormat,
  225. DWORD *pcbFormat);
  226. BOOL
  227. WINAPI
  228. FormatCRLDistPoints(
  229. DWORD dwCertEncodingType,
  230. DWORD dwFormatType,
  231. DWORD dwFormatStrType,
  232. void *pFormatStruct,
  233. LPCSTR lpszStructType,
  234. const BYTE *pbEncoded,
  235. DWORD cbEncoded,
  236. void *pbFormat,
  237. DWORD *pcbFormat);
  238. BOOL
  239. WINAPI
  240. FormatCertPolicies(
  241. DWORD dwCertEncodingType,
  242. DWORD dwFormatType,
  243. DWORD dwFormatStrType,
  244. void *pFormatStruct,
  245. LPCSTR lpszStructType,
  246. const BYTE *pbEncoded,
  247. DWORD cbEncoded,
  248. void *pbFormat,
  249. DWORD *pcbFormat);
  250. BOOL
  251. WINAPI
  252. FormatSPAgencyInfo(
  253. DWORD dwCertEncodingType,
  254. DWORD dwFormatType,
  255. DWORD dwFormatStrType,
  256. void *pFormatStruct,
  257. LPCSTR lpszStructType,
  258. const BYTE *pbEncoded,
  259. DWORD cbEncoded,
  260. void *pbFormat,
  261. DWORD *pcbFormat);
  262. #ifdef __cplusplus
  263. } // Balance extern "C" above
  264. #endif
  265. #endif // __FORMAT_H__