diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-11-09 07:36:44 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-11-09 07:36:44 +0000 |
| commit | ce4186b4c3f8d78bcd77fdc93ab1cbe00e2b45e2 (patch) | |
| tree | db9fbe036481a27edc419b2c2e2528e1dfe3ed18 /src/HttpRequestCommand.cc | |
| parent | 79d463fae2e1e3cf87b61bb519de1428f1f2b39c (diff) | |
2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added the ability to verify peer in SSL/TLS using given CA
certificates.
The CA certificates are specified in --ca-certificate option.
By default, the verification is disabled. Use --check-certificate
option to enable it.
* src/HttpRequestCommand.cc
* src/LibgnutlsTLSContext.cc
* src/LibgnutlsTLSContext.h
* src/LibsslTLSContext.cc
* src/LibsslTLSContext.h
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/a2functional.h
* src/message.h
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
Diffstat (limited to 'src/HttpRequestCommand.cc')
| -rw-r--r-- | src/HttpRequestCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index 9e39ebb2..872cf55d 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -108,7 +108,7 @@ bool HttpRequestCommand::executeInternal() { //socket->setBlockingMode(); if(req->getProtocol() == Request::PROTO_HTTPS) { socket->prepareSecureConnection(); - if(!socket->initiateSecureConnection()) { + if(!socket->initiateSecureConnection(req->getHost())) { setReadCheckSocketIf(socket, socket->wantRead()); setWriteCheckSocketIf(socket, socket->wantWrite()); e->commands.push_back(this); |
