ciphers.inc
上传用户:awang829
上传日期:2019-07-14
资源大小:2356k
文件大小:5k
源码类别:

网络

开发平台:

Unix_Linux

  1. /* This is an include file used to define the list of ciphers clients should
  2.  * advertise.  Before including it, you should define the CIPHER and XCIPHER
  3.  * macros. */
  4. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
  5.     CIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
  6. #else
  7.    XCIPHER(0xc00a, TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA)
  8. #endif
  9. #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA
  10.     CIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
  11. #else
  12.    XCIPHER(0xc014, TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA)
  13. #endif
  14. #ifdef TLS1_TXT_DHE_RSA_WITH_AES_256_SHA
  15.     CIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
  16. #else
  17.    XCIPHER(0x0039, TLS1_TXT_DHE_RSA_WITH_AES_256_SHA)
  18. #endif
  19. #ifdef TLS1_TXT_DHE_DSS_WITH_AES_256_SHA
  20.     CIPHER(0x0038, TLS1_TXT_DHE_DSS_WITH_AES_256_SHA)
  21. #else
  22.    XCIPHER(0x0038, TLS1_TXT_DHE_DSS_WITH_AES_256_SHA)
  23. #endif
  24. #ifdef TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA
  25.     CIPHER(0xc00f, TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA)
  26. #else
  27.    XCIPHER(0xc00f, TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA)
  28. #endif
  29. #ifdef TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA
  30.     CIPHER(0xc005, TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA)
  31. #else
  32.    XCIPHER(0xc005, TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA)
  33. #endif
  34. #ifdef TLS1_TXT_RSA_WITH_AES_256_SHA
  35.     CIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
  36. #else
  37.    XCIPHER(0x0035, TLS1_TXT_RSA_WITH_AES_256_SHA)
  38. #endif
  39. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA
  40.     CIPHER(0xc007, TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA)
  41. #else
  42.    XCIPHER(0xc007, TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA)
  43. #endif
  44. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
  45.     CIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
  46. #else
  47.    XCIPHER(0xc009, TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA)
  48. #endif
  49. #ifdef TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA
  50.     CIPHER(0xc011, TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA)
  51. #else
  52.    XCIPHER(0xc011, TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA)
  53. #endif
  54. #ifdef TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA
  55.     CIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
  56. #else
  57.    XCIPHER(0xc013, TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA)
  58. #endif
  59. #ifdef TLS1_TXT_DHE_RSA_WITH_AES_128_SHA
  60.     CIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
  61. #else
  62.    XCIPHER(0x0033, TLS1_TXT_DHE_RSA_WITH_AES_128_SHA)
  63. #endif
  64. #ifdef TLS1_TXT_DHE_DSS_WITH_AES_128_SHA
  65.     CIPHER(0x0032, TLS1_TXT_DHE_DSS_WITH_AES_128_SHA)
  66. #else
  67.    XCIPHER(0x0032, TLS1_TXT_DHE_DSS_WITH_AES_128_SHA)
  68. #endif
  69. #ifdef TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA
  70.     CIPHER(0xc00c, TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA)
  71. #else
  72.    XCIPHER(0xc00c, TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA)
  73. #endif
  74. #ifdef TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA
  75.     CIPHER(0xc00e, TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA)
  76. #else
  77.    XCIPHER(0xc00e, TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA)
  78. #endif
  79. #ifdef TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA
  80.     CIPHER(0xc002, TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA)
  81. #else
  82.    XCIPHER(0xc002, TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA)
  83. #endif
  84. #ifdef TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA
  85.     CIPHER(0xc004, TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA)
  86. #else
  87.    XCIPHER(0xc004, TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA)
  88. #endif
  89. #ifdef SSL3_TXT_RSA_RC4_128_MD5
  90.     CIPHER(0x0004, SSL3_TXT_RSA_RC4_128_MD5)
  91. #else
  92.    XCIPHER(0x0004, SSL3_TXT_RSA_RC4_128_MD5)
  93. #endif
  94. #ifdef SSL3_TXT_RSA_RC4_128_SHA
  95.     CIPHER(0x0005, SSL3_TXT_RSA_RC4_128_SHA)
  96. #else
  97.    XCIPHER(0x0005, SSL3_TXT_RSA_RC4_128_SHA)
  98. #endif
  99. #ifdef TLS1_TXT_RSA_WITH_AES_128_SHA
  100.     CIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
  101. #else
  102.    XCIPHER(0x002f, TLS1_TXT_RSA_WITH_AES_128_SHA)
  103. #endif
  104. #ifdef TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA
  105.     CIPHER(0xc008, TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA)
  106. #else
  107.    XCIPHER(0xc008, TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA)
  108. #endif
  109. #ifdef TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA
  110.     CIPHER(0xc012, TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA)
  111. #else
  112.    XCIPHER(0xc012, TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA)
  113. #endif
  114. #ifdef SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA
  115.     CIPHER(0x0016, SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA)
  116. #else
  117.    XCIPHER(0x0016, SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA)
  118. #endif
  119. #ifdef SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA
  120.     CIPHER(0x0013, SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA)
  121. #else
  122.    XCIPHER(0x0013, SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA)
  123. #endif
  124. #ifdef TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA
  125.     CIPHER(0xc00d, TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA)
  126. #else
  127.    XCIPHER(0xc00d, TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA)
  128. #endif
  129. #ifdef TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA
  130.     CIPHER(0xc003, TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA)
  131. #else
  132.    XCIPHER(0xc003, TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA)
  133. #endif
  134. #ifdef SSL3_TXT_RSA_FIPS_WITH_3DES_EDE_CBC_SHA
  135.     CIPHER(0xfeff, SSL3_TXT_RSA_FIPS_WITH_3DES_EDE_CBC_SHA)
  136. #else
  137.    XCIPHER(0xfeff, SSL3_TXT_RSA_FIPS_WITH_3DES_EDE_CBC_SHA)
  138. #endif
  139. #ifdef SSL3_TXT_RSA_DES_192_CBC3_SHA
  140.     CIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
  141. #else
  142.    XCIPHER(0x000a, SSL3_TXT_RSA_DES_192_CBC3_SHA)
  143. #endif