2
0

22-compression.cnf.in 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # -*- mode: perl; -*-
  2. # Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License 2.0 (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. ## Test Compression
  9. use strict;
  10. use warnings;
  11. package ssltests;
  12. use OpenSSL::Test::Utils;
  13. our @tests = ();
  14. our @tests_tls1_3 = (
  15. {
  16. name => "tlsv1_3-both-compress",
  17. server => {
  18. "Options" => "Compression"
  19. },
  20. client => {
  21. "Options" => "Compression"
  22. },
  23. test => {
  24. "CompressionExpected" => "No",
  25. "ExpectedResult" => "Success"
  26. }
  27. },
  28. {
  29. name => "tlsv1_3-client-compress",
  30. server => {
  31. },
  32. client => {
  33. "Options" => "Compression"
  34. },
  35. test => {
  36. "CompressionExpected" => "No",
  37. "ExpectedResult" => "Success"
  38. }
  39. },
  40. {
  41. name => "tlsv1_3-server-compress",
  42. server => {
  43. "Options" => "Compression"
  44. },
  45. client => {
  46. },
  47. test => {
  48. "CompressionExpected" => "No",
  49. "ExpectedResult" => "Success"
  50. }
  51. },
  52. {
  53. name => "tlsv1_3-neither-compress",
  54. server => {
  55. },
  56. client => {
  57. },
  58. test => {
  59. "CompressionExpected" => "No",
  60. "ExpectedResult" => "Success"
  61. }
  62. },
  63. );
  64. our @tests_tls1_2 = (
  65. {
  66. name => "tlsv1_2-both-compress",
  67. server => {
  68. "Options" => "Compression"
  69. },
  70. client => {
  71. "Options" => "Compression",
  72. "MaxProtocol" => "TLSv1.2"
  73. },
  74. test => {
  75. "CompressionExpected" => "Yes",
  76. "ExpectedResult" => "Success"
  77. }
  78. },
  79. {
  80. name => "tlsv1_2-client-compress",
  81. server => {
  82. },
  83. client => {
  84. "Options" => "Compression",
  85. "MaxProtocol" => "TLSv1.2"
  86. },
  87. test => {
  88. "CompressionExpected" => "No",
  89. "ExpectedResult" => "Success"
  90. }
  91. },
  92. {
  93. name => "tlsv1_2-server-compress",
  94. server => {
  95. "Options" => "Compression"
  96. },
  97. client => {
  98. "MaxProtocol" => "TLSv1.2"
  99. },
  100. test => {
  101. "CompressionExpected" => "No",
  102. "ExpectedResult" => "Success"
  103. }
  104. },
  105. {
  106. name => "tlsv1_2-neither-compress",
  107. server => {
  108. },
  109. client => {
  110. "MaxProtocol" => "TLSv1.2"
  111. },
  112. test => {
  113. "CompressionExpected" => "No",
  114. "ExpectedResult" => "Success"
  115. }
  116. },
  117. );
  118. push @tests, @tests_tls1_3 unless disabled("tls1_3");
  119. push @tests, @tests_tls1_2 unless alldisabled(("tls1_2", "tls1_1", "tls1",
  120. "ssl3"));