ssltests_base.pm 815 B

123456789101112131415161718192021222324252627282930
  1. # -*- mode: perl; -*-
  2. # Copyright 2016 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. ## SSL test configurations
  9. package ssltests;
  10. sub test_pem
  11. {
  12. my ($file) = @_;
  13. my $dir_sep = $^O ne "VMS" ? "/" : "";
  14. return "\${ENV::TEST_CERTS_DIR}" . $dir_sep . $file,
  15. }
  16. our %base_server = (
  17. "Certificate" => test_pem("servercert.pem"),
  18. "PrivateKey" => test_pem("serverkey.pem"),
  19. "CipherString" => "DEFAULT",
  20. );
  21. our %base_client = (
  22. "VerifyCAFile" => test_pem("rootcert.pem"),
  23. "VerifyMode" => "Peer",
  24. "CipherString" => "DEFAULT",
  25. );