fix test_ssl for trunk

This commit is contained in:
Arvid Norberg 2013-12-16 00:42:06 +00:00
parent 5910059869
commit 43f47275b6
1 changed files with 5 additions and 5 deletions

View File

@ -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