From 43f47275b689a133b63b81468636f093a9884ddc Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 16 Dec 2013 00:42:06 +0000 Subject: [PATCH] fix test_ssl for trunk --- test/test_ssl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_ssl.cpp b/test/test_ssl.cpp index 47aa7730b..ee9d7e312 100644 --- a/test/test_ssl.cpp +++ b/test/test_ssl.cpp @@ -341,14 +341,14 @@ bool try_connect(session& ses1, int port return false; } - std::string certificate = combine_path("ssl", "peer_certificate.pem"); - std::string private_key = combine_path("ssl", "peer_private_key.pem"); - std::string dh_params = combine_path("ssl", "dhparams.pem"); + std::string certificate = combine_path("..", combine_path("ssl", "peer_certificate.pem")); + std::string private_key = combine_path("..", combine_path("ssl", "peer_private_key.pem")); + std::string dh_params = combine_path("..", combine_path("ssl", "dhparams.pem")); if (flags & invalid_certificate) { - certificate = combine_path("ssl", "invalid_peer_certificate.pem"); - private_key = combine_path("ssl", "invalid_peer_private_key.pem"); + certificate = combine_path("..", combine_path("ssl", "invalid_peer_certificate.pem")); + private_key = combine_path("..", combine_path("ssl", "invalid_peer_private_key.pem")); } // TODO: test using a signed certificate with the wrong info-hash in DN