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.

63 lines
1.4 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1998
  5. //
  6. // File: tlsapip.cpp
  7. //
  8. // Contents: Private API
  9. //
  10. // History: 09-09-97 HueiWang Created
  11. //
  12. //---------------------------------------------------------------------------
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windows.h>
  17. #include <stdio.h>
  18. #include <stdlib.h>
  19. #include <tchar.h>
  20. #include <rpc.h>
  21. #include <lscommon.h>
  22. #include <wincrypt.h>
  23. #include "tlsrpc.h"
  24. #include "tlsapip.h"
  25. /*
  26. void * MIDL_user_allocate(size_t size)
  27. {
  28. return(HeapAlloc(GetProcessHeap(), 0, size));
  29. }
  30. void MIDL_user_free( void *pointer)
  31. {
  32. HeapFree(GetProcessHeap(), 0, pointer);
  33. }*/
  34. DWORD WINAPI
  35. TLSGenerateCustomerCert(
  36. IN TLS_HANDLE hHandle,
  37. DWORD dwCertEncodingType,
  38. DWORD dwNameAttrCount,
  39. CERT_RDN_ATTR rgNameAttr[],
  40. DWORD *pcbCert,
  41. BYTE **ppbCert,
  42. DWORD *pdwErrCode
  43. )
  44. /*++
  45. --*/
  46. {
  47. return TLSRpcGenerateCustomerCert(
  48. hHandle,
  49. dwCertEncodingType,
  50. dwNameAttrCount,
  51. rgNameAttr,
  52. pcbCert,
  53. ppbCert,
  54. pdwErrCode
  55. );
  56. }