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.

47 lines
1.6 KiB

  1. <%' CODEPAGE=65001 'UTF-8%>
  2. <%' certrqtp.inc - (CERT)srv web - (R)e(Q)uest, available (T)y(P)es
  3. ' Copyright (C) Microsoft Corporation, 1998 - 1999 %>
  4. <%
  5. ' NOTE: certdat.inc must be included first!
  6. Dim nAvailReqTypes
  7. Dim rgAvailReqTypes(1,5)
  8. Dim sUserAgent
  9. Const FIELD_OID=0
  10. Const FIELD_TEMPLATE=0
  11. Const FIELD_FRIENDLYNAME=1
  12. Const FIELD_CSPLIST=2
  13. Const FIELD_CSPLIST2=3
  14. Const FIELD_EXPORTABLE=4
  15. ' Strings for localization
  16. Const L_WebBrowserCert_Text="Web Browser Certificate"
  17. Const L_EmailProtectionCert_Text="E-Mail Protection Certificate"
  18. Const L_UserTemplateCert_Text="User Certificate" 'Note: should match localized name of 'User' template and certrqma.asp's localized string L_TemplateCert_Text
  19. If "StandAlone"=sServerType Then
  20. '
  21. ' Request types for stand alone
  22. '
  23. rgAvailReqTypes(0,FIELD_OID)="1.3.6.1.5.5.7.3.2"
  24. rgAvailReqTypes(0,FIELD_FRIENDLYNAME)=L_WebBrowserCert_Text
  25. rgAvailReqTypes(0,FIELD_CSPLIST)=""
  26. rgAvailReqTypes(1,FIELD_OID)="1.3.6.1.5.5.7.3.4"
  27. rgAvailReqTypes(1,FIELD_FRIENDLYNAME)=L_EmailProtectionCert_Text
  28. rgAvailReqTypes(1,FIELD_CSPLIST)=""
  29. nAvailReqTypes=2
  30. Else
  31. '
  32. ' Request types for enterprise
  33. '
  34. rgAvailReqTypes(0,FIELD_TEMPLATE)="User"
  35. rgAvailReqTypes(0,FIELD_FRIENDLYNAME)=L_UserTemplateCert_Text
  36. rgAvailReqTypes(0,FIELD_CSPLIST)="Microsoft Enhanced Cryptographic Provider v1.0?Microsoft Base Cryptographic Provider v1.0"
  37. rgAvailReqTypes(0,FIELD_CSPLIST2)="Microsoft Base Cryptographic Provider v1.0?Microsoft Enhanced Cryptographic Provider v1.0"
  38. rgAvailReqTypes(0,FIELD_EXPORTABLE)="True"
  39. nAvailReqTypes=1
  40. End If
  41. %>