From 90515dfa50c676df37f440893de6e344fbfd2cdc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Sep 2012 00:50:14 +0900 Subject: RPC over SSL/TLS transport To enable RPC over SSL/TLS, specify server certificate and private key using --rpc-certificate and --rpc-private-key options and enable --rpc-secure option. After the encryption is enabled, use https and wss scheme to access RPC server. --- src/HttpRequestCommand.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/HttpRequestCommand.cc') diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index d96ead50..0a3f0375 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -123,8 +123,7 @@ createHttpRequest(const SharedHandle& req, bool HttpRequestCommand::executeInternal() { //socket->setBlockingMode(); if(getRequest()->getProtocol() == "https") { - getSocket()->prepareSecureConnection(); - if(!getSocket()->initiateSecureConnection(getRequest()->getHost())) { + if(!getSocket()->tlsConnect(getRequest()->getHost())) { setReadCheckSocketIf(getSocket(), getSocket()->wantRead()); setWriteCheckSocketIf(getSocket(), getSocket()->wantWrite()); getDownloadEngine()->addCommand(this); -- cgit