asio: asio-cl: Disable peer verification to make development easier

Don't do this in practice
This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-04 21:30:24 +09:00
parent 6753b6d61e
commit 566baab307
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ int main(int argc, char *argv[]) {
boost::asio::ssl::context tls_ctx(boost::asio::ssl::context::sslv23); boost::asio::ssl::context tls_ctx(boost::asio::ssl::context::sslv23);
tls_ctx.set_default_verify_paths(); tls_ctx.set_default_verify_paths();
tls_ctx.set_verify_mode(boost::asio::ssl::verify_peer); // disabled to make development easier...
// tls_ctx.set_verify_mode(boost::asio::ssl::verify_peer);
configure_tls_context(tls_ctx); configure_tls_context(tls_ctx);
session sess(io_service, tls_ctx, "localhost", "3000"); session sess(io_service, tls_ctx, "localhost", "3000");