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.

137 lines
3.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: mssip32.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifdef _M_IX86
  11. #include <windows.h>
  12. #include <wincrypt.h>
  13. #include <mssip.h>
  14. STDAPI mssip32DllRegisterServer(void);
  15. EXTERN_C
  16. __declspec(naked)
  17. HRESULT
  18. STDAPICALLTYPE
  19. DllRegisterServer()
  20. {
  21. __asm {
  22. jmp mssip32DllRegisterServer
  23. }
  24. }
  25. STDAPI mssip32DllUnregisterServer(void);
  26. EXTERN_C
  27. __declspec(naked)
  28. HRESULT
  29. STDAPICALLTYPE
  30. DllUnregisterServer()
  31. {
  32. __asm {
  33. jmp mssip32DllUnregisterServer
  34. }
  35. }
  36. EXTERN_C
  37. __declspec(naked)
  38. BOOL WINAPI ForwardrCryptSIPGetSignedDataMsg(
  39. IN SIP_SUBJECTINFO *pSubjectInfo,
  40. OUT DWORD *pdwEncodingType,
  41. IN DWORD dwIndex,
  42. IN OUT DWORD *pcbSignedDataMsg,
  43. OUT BYTE *pbSignedDataMsg)
  44. {
  45. __asm {
  46. jmp CryptSIPGetSignedDataMsg
  47. }
  48. }
  49. EXTERN_C
  50. __declspec(naked)
  51. BOOL WINAPI ForwardrCryptSIPPutSignedDataMsg(
  52. IN SIP_SUBJECTINFO *pSubjectInfo,
  53. IN DWORD dwEncodingType,
  54. OUT DWORD *pdwIndex,
  55. IN DWORD cbSignedDataMsg,
  56. IN BYTE *pbSignedDataMsg)
  57. {
  58. __asm {
  59. jmp CryptSIPPutSignedDataMsg
  60. }
  61. }
  62. EXTERN_C
  63. __declspec(naked)
  64. BOOL WINAPI ForwardrCryptSIPRemoveSignedDataMsg(
  65. IN SIP_SUBJECTINFO *pSubjectInfo,
  66. IN DWORD dwIndex)
  67. {
  68. __asm {
  69. jmp CryptSIPRemoveSignedDataMsg
  70. }
  71. }
  72. EXTERN_C
  73. __declspec(naked)
  74. BOOL WINAPI ForwardrCryptSIPVerifyIndirectData(
  75. IN SIP_SUBJECTINFO *pSubjectInfo,
  76. IN SIP_INDIRECT_DATA *pIndirectData)
  77. {
  78. __asm {
  79. jmp CryptSIPVerifyIndirectData
  80. }
  81. }
  82. EXTERN_C
  83. __declspec(naked)
  84. BOOL WINAPI ForwardrCryptSIPCreateIndirectData(
  85. IN SIP_SUBJECTINFO *pSubjectInfo,
  86. IN OUT DWORD *pcbIndirectData,
  87. OUT SIP_INDIRECT_DATA *pIndirectData)
  88. {
  89. __asm {
  90. jmp CryptSIPCreateIndirectData
  91. }
  92. }
  93. void CryptSIPGetRegWorkingFlags(DWORD *pdwState);
  94. __declspec(naked)
  95. void ForwardrCryptSIPGetRegWorkingFlags(DWORD *pdwState)
  96. {
  97. __asm {
  98. jmp CryptSIPGetRegWorkingFlags
  99. }
  100. }
  101. //
  102. // support for Auth2 release
  103. //
  104. typedef struct _SIP_INFORMATION
  105. {
  106. DWORD cbSize; // sizeof(SIP_INFORMATION)
  107. DWORD cgSubjects; // number of guids in array
  108. const GUID *pgSubjects; // array of supported guids/subjects
  109. } SIP_INFORMATION, *PSIP_INFORMATION;
  110. BOOL CryptSIPGetInfo(IN OUT SIP_INFORMATION *pSIPInit);
  111. __declspec(naked)
  112. BOOL ForwardrCryptSIPGetInfo(IN OUT SIP_INFORMATION *pSIPInit)
  113. {
  114. __asm {
  115. jmp CryptSIPGetInfo
  116. }
  117. }
  118. #else
  119. static void Dummy()
  120. {
  121. }
  122. #endif