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.

117 lines
4.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: ssl3.h
  7. //
  8. // Contents: SSL 3 protocol constants
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 11-19-97 jbanes Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __SSL3_H__
  18. #define __SSL3_H__
  19. #define CB_SSL3_SESSION_ID 32
  20. #define CB_SSL3_RANDOM 32
  21. #define CB_SSL3_PRE_MASTER_SECRET 48
  22. #define CB_SSL3_PROTOCOL 2
  23. #define CB_SSL3_HEADER_SIZE 5
  24. #define CB_SSL3_16_VECTOR 2
  25. #define CB_SSL3_ISSUER_LENGTH 2
  26. #define CB_SSL3_MASTER_KEY_BLOCK 112
  27. #define SSL3_MAX_CLIENT_CERTS 4
  28. #define SSL3_NULL_WITH_NULL_NULL 0x0000
  29. #define SSL3_RSA_WITH_NULL_MD5 0x0001
  30. #define SSL3_RSA_WITH_NULL_SHA 0x0002
  31. #define SSL3_RSA_EXPORT_WITH_RC4_40_MD5 0x0003
  32. #define SSL3_RSA_WITH_RC4_128_MD5 0x0004
  33. #define SSL3_RSA_WITH_RC4_128_SHA 0x0005
  34. #define SSL3_RSA_EXPORT_WITH_RC2_CBC_40_MD5 0x0006
  35. #define SSL3_RSA_WITH_DES_CBC_SHA 0x0009
  36. #define SSL3_RSA_WITH_3DES_EDE_CBC_SHA 0x000A
  37. #define SSL3_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA 0x001D
  38. #define SSL3_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA 0x0011
  39. #define SSL3_DHE_DSS_WITH_DES_CBC_SHA 0x0012
  40. #define SSL3_DHE_DSS_WITH_3DES_EDE_CBC_SHA 0x0013
  41. #define TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA 0x0062
  42. #define TLS_RSA_EXPORT1024_WITH_RC4_56_SHA 0x0064
  43. #define TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA 0x0063
  44. #define TLS_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA 0x0065
  45. #define TLS_DHE_DSS_WITH_RC4_128_SHA 0x0066
  46. #define SSL_RSA_FINANCE64_WITH_RC4_64_MD5 0x0080
  47. #define SSL_RSA_FINANCE64_WITH_RC4_64_SHA 0x0081
  48. #define SSL3_CERTTYPE_RSA_SIGN 1
  49. #define SSL3_CERTTYPE_DSS_SIGN 2
  50. #define SSL3_CERTTYPE_RSA_FIXED_DH 3
  51. #define SSL3_CERTTYPE_DSS_FIXED_DH 4
  52. #define SSL3_CERTTYPE_RSA_EPHEMERAL_DH 5
  53. #define SSL3_CERTTYPE_DSS_EPHEMERAL_DH 6
  54. #define SSL3_CERTTYPE_FORTEZZA_KEA 20
  55. #define SSL3_CERTTYPE_MAX_COUNT 10
  56. #define SSL3_HS_HELLO_REQUEST 0x00
  57. #define SSL3_HS_CLIENT_HELLO 0x01
  58. #define SSL3_HS_SERVER_HELLO 0x02
  59. #define SSL3_HS_CERTIFICATE 0x0B
  60. #define SSL3_HS_SERVER_KEY_EXCHANGE 0x0C
  61. #define SSL3_HS_CERTIFICATE_REQUEST 0x0D
  62. #define SSL3_HS_SERVER_HELLO_DONE 0x0E
  63. #define SSL3_HS_CERTIFICATE_VERIFY 0x0F
  64. #define SSL3_HS_CLIENT_KEY_EXCHANGE 0x10
  65. #define SSL3_HS_FINISHED 0x14
  66. #define SSL3_HS_SGC_CERTIFICATE 0x32
  67. #define SSL3_CT_CHANGE_CIPHER_SPEC 20
  68. #define SSL3_CT_ALERT 21
  69. #define SSL3_CT_HANDSHAKE 22
  70. #define SSL3_CT_APPLICATIONDATA 23
  71. #define SSL3_NULL_WRAP 15
  72. #define SSL3_CLIENT_VERSION_MSB 0x03
  73. #define SSL3_CLIENT_VERSION_LSB 0x00
  74. #define TLS1_CLIENT_VERSION_LSB 0x01
  75. #define CB_SSL3_CERT_VECTOR 3
  76. // Alert levels
  77. #define SSL3_ALERT_WARNING 1
  78. #define SSL3_ALERT_FATAL 2
  79. // Alert message types
  80. #define SSL3_ALERT_CLOSE_NOTIFY 0
  81. #define SSL3_ALERT_UNEXPECTED_MESSAGE 10
  82. #define SSL3_ALERT_BAD_RECORD_MAC 20
  83. #define SSL3_ALERT_DECOMPRESSION_FAIL 30
  84. #define SSL3_ALERT_HANDSHAKE_FAILURE 40
  85. #define SSL3_ALERT_NO_CERTIFICATE 41
  86. #define SSL3_ALERT_BAD_CERTIFICATE 42
  87. #define SSL3_ALERT_UNSUPPORTED_CERT 43
  88. #define SSL3_ALERT_CERTIFICATE_REVOKED 44
  89. #define SSL3_ALERT_CERTIFICATE_EXPIRED 45
  90. #define SSL3_ALERT_CERTIFICATE_UNKNOWN 46
  91. #define SSL3_ALERT_ILLEGAL_PARAMETER 47
  92. #define SSL3_MAX_MESSAGE_LENGTH 0x4000
  93. #define SSL3_MAX_ISSUER_LIST 0x3000
  94. #define SSL3_CLIENT_VERSION 0x0300
  95. #define TLS1_CLIENT_VERSION 0x0301
  96. #endif //__SSL3_H__