fix test_ssl for trunk
This commit is contained in:
parent
5910059869
commit
43f47275b6
|
@ -341,14 +341,14 @@ bool try_connect(session& ses1, int port
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string certificate = combine_path("ssl", "peer_certificate.pem");
|
std::string certificate = combine_path("..", combine_path("ssl", "peer_certificate.pem"));
|
||||||
std::string private_key = combine_path("ssl", "peer_private_key.pem");
|
std::string private_key = combine_path("..", combine_path("ssl", "peer_private_key.pem"));
|
||||||
std::string dh_params = combine_path("ssl", "dhparams.pem");
|
std::string dh_params = combine_path("..", combine_path("ssl", "dhparams.pem"));
|
||||||
|
|
||||||
if (flags & invalid_certificate)
|
if (flags & invalid_certificate)
|
||||||
{
|
{
|
||||||
certificate = combine_path("ssl", "invalid_peer_certificate.pem");
|
certificate = combine_path("..", combine_path("ssl", "invalid_peer_certificate.pem"));
|
||||||
private_key = combine_path("ssl", "invalid_peer_private_key.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
|
// TODO: test using a signed certificate with the wrong info-hash in DN
|
||||||
|
|
Loading…
Reference in New Issue