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.

49 lines
1007 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. uccontext.cxx
  5. Abstract:
  6. Implementation of SSL_CLIENT_FILTER_CHANNEL_CONTEXT.
  7. One such object for every connection
  8. Environment:
  9. Win32 - User Mode
  10. Project:
  11. Stream Filter Worker Process
  12. --*/
  13. #include "precomp.hxx"
  14. SSL_CLIENT_FILTER_CHANNEL_CONTEXT::SSL_CLIENT_FILTER_CHANNEL_CONTEXT(
  15. FILTER_CHANNEL *pManager
  16. )
  17. : FILTER_CHANNEL_CONTEXT(pManager)
  18. {
  19. _dwSignature = SSL_CLIENT_FILTER_CHANNEL_CONTEXT_SIGNATURE;
  20. }
  21. SSL_CLIENT_FILTER_CHANNEL_CONTEXT::~SSL_CLIENT_FILTER_CHANNEL_CONTEXT()
  22. {
  23. _dwSignature = SSL_CLIENT_FILTER_CHANNEL_CONTEXT_SIGNATURE_FREE;
  24. }
  25. HRESULT
  26. SSL_CLIENT_FILTER_CHANNEL_CONTEXT::Create()
  27. {
  28. DBG_ASSERT(_pSSLContext == NULL);
  29. _pSSLContext = new UC_SSL_STREAM_CONTEXT( this );
  30. if ( _pSSLContext == NULL )
  31. {
  32. return HRESULT_FROM_WIN32( GetLastError() );
  33. }
  34. return NO_ERROR;
  35. }