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.

50 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1997
  6. //
  7. // File: simutil.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // SimUtil.h
  11. BOOL UiGetCertificateFile(CString * pstrCertificateFilename);
  12. LPTSTR * ParseSimString(LPCTSTR szSimString, int * pArgc = NULL);
  13. void UnparseSimString(CString * pstrOut, const LPCTSTR rgzpsz[]);
  14. LPCTSTR PchFindSimAttribute(const LPCTSTR rgzpsz[], LPCTSTR pszSeparatorTag, LPCTSTR pszAttributeTag);
  15. int FindSimAttributes(LPCTSTR pszSeparatorTag, const LPCTSTR rgzpszIn[], LPCTSTR rgzpszOut[]);
  16. void
  17. ParseSimSeparators(
  18. const LPCTSTR rgzpszIn[],
  19. LPCTSTR rgzpszIssuer[],
  20. LPCTSTR rgzpszSubject[],
  21. LPCTSTR rgzpszAltSubject[]);
  22. int UnparseSimSeparators(
  23. CString * pstrOut,
  24. const LPCTSTR rgzpszIssuer[],
  25. const LPCTSTR rgzpszSubject[],
  26. const LPCTSTR rgzpszAltSubject[]);
  27. LPTSTR * SplitX509String(
  28. LPCTSTR pszX509,
  29. LPCTSTR * ppargzpszIssuer[],
  30. LPCTSTR * ppargzpszSubject[],
  31. LPCTSTR * ppargzpszAltSubject[]);
  32. int UnsplitX509String(
  33. CString * pstrX509,
  34. const LPCTSTR rgzpszIssuer[],
  35. const LPCTSTR rgzpszSubject[],
  36. const LPCTSTR rgzpszAltSubject[]);
  37. void strSimToUi(IN LPCTSTR pszSIM, OUT CString * pstrUI);
  38. void strUiToSim(IN LPCTSTR pszUI, OUT CString * pstrSIM);