From: Amos Jeffries Date: Thu, 30 Jun 2011 03:20:03 +0000 (-0600) Subject: Update ssl_crtd to use 'OK' status inline with other helpers X-Git-Tag: SQUID_3_1_13~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba8255277efd5e58a479882a12d1b76b1b4ff37;p=thirdparty%2Fsquid.git Update ssl_crtd to use 'OK' status inline with other helpers --- diff --git a/src/client_side.cc b/src/client_side.cc index 421ad45d1b..c68564159d 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -3382,7 +3382,7 @@ ConnStateData::sslCrtdHandleReply(const char * reply) if (reply_message.parse(reply, strlen(reply)) != Ssl::CrtdMessage::OK) { debugs(33, 5, HERE << "Reply from ssl_crtd for " << sslHostName << " is incorrect"); } else { - if (reply_message.getCode() != "ok") { + if (reply_message.getCode() != "OK") { debugs(33, 5, HERE << "Certificate for " << sslHostName << " cannot be generated. ssl_crtd response: " << reply_message.getBody()); } else { debugs(33, 5, HERE << "Certificate for " << sslHostName << " was successfully recieved from ssl_crtd"); diff --git a/src/ssl/ssl_crtd.cc b/src/ssl/ssl_crtd.cc index b838fd481c..2452f02cdc 100644 --- a/src/ssl/ssl_crtd.cc +++ b/src/ssl/ssl_crtd.cc @@ -247,7 +247,7 @@ static bool proccessNewRequest(Ssl::CrtdMessage const & request_message, std::st throw std::runtime_error("Cannot write ssl certificate or/and private key to memory."); Ssl::CrtdMessage response_message; - response_message.setCode("ok"); + response_message.setCode("OK"); response_message.setBody(bufferToWrite); // Use the '\1' char as end-of-message character