ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/HttpHandler.cpp
(Generate patch)

Comparing trunk/Search/HttpHandler.cpp (file contents):
Revision 212 by douglas, 2003-07-19T21:00:25-07:00 vs.
Revision 220 by douglas, 2003-07-23T21:37:53-07:00

# Line 46 | Line 46
46   //
47   // Douglas Thrift
48   //
49 < // $Id: HttpHandler.cpp,v 1.23 2003/07/20 04:00:25 douglas Exp $
49 > // $Id: HttpHandler.cpp,v 1.26 2003/07/24 04:37:53 douglas Exp $
50  
51   #include "HttpHandler.h"
52  
# Line 283 | Line 283 | bool HttpHandler::handle(URL &url, const
283  
284   void HttpHandler::clear()
285   {
286 + #ifdef _OpenSSL_
287          if (tls)
288          {
289                  SSL_shutdown(ssl);
290                  SSL_free(ssl);
291                  SSL_CTX_free(ctx);
292          }
293 + #endif
294  
295          closesocket(http);
296  
# Line 802 | Line 804 | bool HttpHandler::starttls()
804          RAND_seed(junk, seed % 30 + 2);
805  
806          delete junk;
807 + #else
808 +        if (debug) cerr << "junk = /dev/urandom\n";
809   #endif
810  
811          ctx = SSL_CTX_new(TLSv1_client_method());
# Line 833 | Line 837 | bool HttpHandler::starttls()
837          return true;
838   }
839   #endif
836
837 istream& operator>>(istream& is, HttpHandler::code& data)
838 {
839        int number;
840
841        is >> number;
842
843        data = HttpHandler::code(number);
844
845        return is;
846 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines