29-dtls-sctp-label-bug.cnf.in 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # -*- mode: perl; -*-
  2. # Copyright 2019-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 SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG handling
  9. use strict;
  10. use warnings;
  11. package ssltests;
  12. use OpenSSL::Test::Utils;
  13. our @tests = (
  14. {
  15. name => "SCTPLabelBug-good1",
  16. server => {},
  17. client => {},
  18. test => {
  19. "Method" => "DTLS",
  20. "UseSCTP" => "Yes",
  21. "EnableClientSCTPLabelBug" => "No",
  22. "EnableServerSCTPLabelBug" => "No",
  23. "ExpectedResult" => "Success"
  24. }
  25. },
  26. {
  27. name => "SCTPLabelBug-good2",
  28. server => {},
  29. client => {},
  30. test => {
  31. "Method" => "DTLS",
  32. "UseSCTP" => "Yes",
  33. "EnableClientSCTPLabelBug" => "Yes",
  34. "EnableServerSCTPLabelBug" => "Yes",
  35. "ExpectedResult" => "Success"
  36. }
  37. },
  38. {
  39. name => "SCTPLabelBug-bad1",
  40. server => {},
  41. client => {},
  42. test => {
  43. "Method" => "DTLS",
  44. "UseSCTP" => "Yes",
  45. "EnableClientSCTPLabelBug" => "Yes",
  46. "EnableServerSCTPLabelBug" => "No",
  47. "ExpectedResult" => "ClientFail"
  48. }
  49. },
  50. {
  51. name => "SCTPLabelBug-bad2",
  52. server => {},
  53. client => {},
  54. test => {
  55. "Method" => "DTLS",
  56. "UseSCTP" => "Yes",
  57. "EnableClientSCTPLabelBug" => "No",
  58. "EnableServerSCTPLabelBug" => "Yes",
  59. "ExpectedResult" => "ClientFail"
  60. }
  61. },
  62. );