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.

126 lines
4.1 KiB

  1. #ifndef _SSL2PROT_H_
  2. #define _SSL2PROT_H_
  3. SP_STATUS WINAPI
  4. Ssl2ClientProtocolHandler(
  5. PSPContext pContext,
  6. PSPBuffer pCommInput,
  7. PSPBuffer pCommOutput);
  8. SP_STATUS WINAPI
  9. Ssl2ServerProtocolHandler(
  10. PSPContext pContext,
  11. PSPBuffer pCommInput,
  12. PSPBuffer pCommOutput);
  13. SP_STATUS WINAPI
  14. Ssl3ProtocolHandler(
  15. PSPContext pContext,
  16. PSPBuffer pCommInput,
  17. PSPBuffer pCommOutput);
  18. SP_STATUS WINAPI
  19. Ssl2DecryptHandler(
  20. PSPContext pContext,
  21. PSPBuffer pCommInput,
  22. PSPBuffer pCommOutput);
  23. SP_STATUS WINAPI
  24. GenerateUniHelloMessage(
  25. PSPContext pContext,
  26. Ssl2_Client_Hello * pHelloMessage,
  27. DWORD fProtocol
  28. );
  29. SP_STATUS WINAPI
  30. Ssl2GetHeaderSize(
  31. PSPContext pContext,
  32. PSPBuffer pCommInput,
  33. DWORD * pcbHeaderSize);
  34. SP_STATUS WINAPI Ssl2DecryptMessage(PSPContext pContext,
  35. PSPBuffer pCommInput,
  36. PSPBuffer pAppOutput);
  37. SP_STATUS WINAPI Ssl2EncryptMessage(PSPContext pContext,
  38. PSPBuffer pAppInput,
  39. PSPBuffer pCommOutput);
  40. SP_STATUS WINAPI Ssl3DecryptMessage(PSPContext pContext,
  41. PSPBuffer pCommInput,
  42. PSPBuffer pAppOutput);
  43. SP_STATUS WINAPI Ssl3EncryptMessage(PSPContext pContext,
  44. PSPBuffer pAppInput,
  45. PSPBuffer pCommOutput);
  46. SP_STATUS Ssl2SrvHandleClientHello(PSPContext pContext,
  47. PSPBuffer pCommInput,
  48. PSsl2_Client_Hello pHello,
  49. PSPBuffer pCommOutput);
  50. SP_STATUS Ssl2SrvHandleCMKey(PSPContext pContext,
  51. PSPBuffer pCommInput,
  52. PSPBuffer pCommOutput);
  53. SP_STATUS Ssl3SrvHandleCMKey(PSPContext pContext,
  54. PUCHAR pCommInput,
  55. DWORD cbMsg,
  56. PSPBuffer pCommOutput);
  57. SP_STATUS Ssl3SrvHandleCMKey(PSPContext pContext,
  58. PUCHAR pCommInput,
  59. DWORD cbMsg,
  60. PSPBuffer pCommOutput);
  61. SP_STATUS Ssl2SrvHandleClientFinish(PSPContext pContext,
  62. PSPBuffer pCommInput,
  63. PSPBuffer pCommOutput);
  64. SP_STATUS Ssl2CliHandleServerHello(PSPContext pContext,
  65. PSPBuffer pCommInput,
  66. PSsl2_Server_Hello pHello,
  67. PSPBuffer pCommOutput);
  68. SP_STATUS Ssl3CliHandleServerHello(PSPContext pContext,
  69. PUCHAR pSrvHello,
  70. DWORD cbMessage,
  71. PSPBuffer pCommOutput);
  72. SP_STATUS Ssl2CliHandleServerVerify(PSPContext pContext,
  73. PSPBuffer pCommInput,
  74. PSPBuffer pCommOutput);
  75. SP_STATUS Ssl2CliHandleServerFinish(PSPContext pContext,
  76. PSPBuffer pCommInput,
  77. PSPBuffer pCommOutput);
  78. SP_STATUS Ssl2SrvGenRestart(PSPContext pContext,
  79. PSsl2_Client_Hello pHello,
  80. PSPBuffer pCommOutput);
  81. SP_STATUS Ssl2SrvFinishClientRestart(PSPContext pContext,
  82. PSPBuffer pCommInput,
  83. PSPBuffer pCommOutput);
  84. SP_STATUS Ssl2CliHandleServerRestart(PSPContext pContext,
  85. PSPBuffer pCommInput,
  86. PSsl2_Server_Hello pHello,
  87. PSPBuffer pCommOutput);
  88. SP_STATUS Ssl2CliFinishRestart(PSPContext pContext,
  89. PSPBuffer pCommInput,
  90. PSPBuffer pCommOutput);
  91. SP_STATUS Ssl2GenCliFinished(PSPContext pContext,
  92. PSPBuffer pCommOutput);
  93. SP_STATUS
  94. Ssl2MakeSessionKeys(PSPContext pContext);
  95. #endif /* _SSL2PROT_H_ */