FIX: building without SSL

This commit is contained in:
Juan José Gutiérrez de Quevedo Pérez 2014-09-09 21:52:03 +02:00
부모 98f429601a
커밋 5627834132
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -261,8 +261,10 @@ void Proxy::run(string &peer_address)
outside.writeLine(strtemp);
strtemp="";
string ssltls="";
#ifdef HAVE_SSL
if (outside.is_ssl_enabled())
ssltls=" (SSL/TLS)";
#endif //HAVE_SSL
if(cfg.getAddHeaders())
{

파일 보기

@ -294,7 +294,11 @@ string Socket::readLine()
}
while(c!=10&&!isClosed());
LDEB("r" + string(ssl_enabled?"s":"") + ">" + s.str());
LDEB(string("r") +
#ifdef HAVE_SSL
string(ssl_enabled?"s":"") +
#endif //HAVE_SSL
">" + s.str());
return s.str();
}
@ -344,7 +348,11 @@ void Socket::writeByte(char c)
void Socket::writeLine(string s)
{
LDEB("w" + string(ssl_enabled?"s":"") + ">" + s);
LDEB(string("w") +
#ifdef HAVE_SSL
string(ssl_enabled?"s":"") +
#endif //HAVE_SSL
">" + s);
s+="\r\n";
writeBytes((void *)s.c_str(),s.length());