27-ticket-appdata.cnf.in 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # -*- mode: perl; -*-
  2. # Copyright 2018 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 session ticket app data
  9. use strict;
  10. use warnings;
  11. package ssltests;
  12. use OpenSSL::Test::Utils;
  13. our @tests12 = (
  14. {
  15. "name" => "session-ticket-app-data12",
  16. "client" => {
  17. "MaxProtocol" => "TLSv1.2",
  18. "Options" => "SessionTicket",
  19. },
  20. "server" => {
  21. "Options" => "SessionTicket",
  22. "extra" => {
  23. "SessionTicketAppData" => "HelloWorld",
  24. },
  25. },
  26. "test" => {
  27. "HandshakeMode" => "Resume",
  28. "ExpectedResult" => "Success",
  29. "SessionTicketExpected" => "Yes",
  30. "ResumptionExpected" => "Yes",
  31. "ExpectedSessionTicketAppData" => "HelloWorld",
  32. }
  33. },
  34. {
  35. "name" => "session-ticket-app-data12",
  36. "client" => {
  37. "MaxProtocol" => "TLSv1.2",
  38. "Options" => "SessionTicket",
  39. },
  40. "server" => {
  41. "Options" => "SessionTicket",
  42. },
  43. "test" => {
  44. "HandshakeMode" => "Resume",
  45. "ExpectedResult" => "Success",
  46. "SessionTicketExpected" => "Yes",
  47. "ResumptionExpected" => "Yes",
  48. "ExpectedSessionTicketAppData" => "",
  49. }
  50. }
  51. );
  52. our @tests13 = (
  53. {
  54. "name" => "session-ticket-app-data13",
  55. "client" => {
  56. "MaxProtocol" => "TLSv1.3",
  57. "Options" => "SessionTicket",
  58. },
  59. "server" => {
  60. "Options" => "SessionTicket",
  61. "extra" => {
  62. "SessionTicketAppData" => "HelloWorld",
  63. },
  64. },
  65. "test" => {
  66. "HandshakeMode" => "Resume",
  67. "ExpectedResult" => "Success",
  68. "SessionTicketExpected" => "Yes",
  69. "ResumptionExpected" => "Yes",
  70. "ExpectedSessionTicketAppData" => "HelloWorld",
  71. }
  72. },
  73. {
  74. "name" => "session-ticket-app-data13",
  75. "client" => {
  76. "MaxProtocol" => "TLSv1.3",
  77. "Options" => "SessionTicket",
  78. },
  79. "server" => {
  80. "Options" => "SessionTicket",
  81. },
  82. "test" => {
  83. "HandshakeMode" => "Resume",
  84. "ExpectedResult" => "Success",
  85. "SessionTicketExpected" => "Yes",
  86. "ResumptionExpected" => "Yes",
  87. "ExpectedSessionTicketAppData" => "",
  88. }
  89. }
  90. );
  91. our @tests = ();
  92. push @tests, @tests12 unless disabled("tls1_2");
  93. push @tests, @tests13 unless disabled("tls1_3");