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/SocketCore.h | |
| 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/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index e55c387f..829b1cda 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -291,8 +291,10 @@ public: * Makes this socket secure. * If the system has not OpenSSL, then this method do nothing. * connection must be established before calling this method. + * + * If you are going to verify peer's certificate, hostname must be supplied. */ - bool initiateSecureConnection(); + bool initiateSecureConnection(const std::string& hostname=""); void prepareSecureConnection(); |
