X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=src%2Fjcc.c;h=82fc0e6519b27dc5bc8b1ca5f92455bca40fbe2a;hb=8b26e2cdf88254ee1f528b7689b428578825dd6f;hp=5dd10e03cb627f5b7e85a3c9d0b6ca0fb52e5b89;hpb=2da19eb8eff90f6c9a7cb46ff891643e89d50a55;p=privoxy.git diff --git a/src/jcc.c b/src/jcc.c index 5dd10e03..82fc0e65 100644 --- a/src/jcc.c +++ b/src/jcc.c @@ -1,7 +1,7 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.92 2002/05/08 16:00:46 oes Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 2.0 2002/06/04 14:34:21 jongfoster Exp $"; /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ + * File : $Source: /cvsroot/ijbswa/current/src/jcc.c,v $ * * Purpose : Main file. Contains main() method, main loop, and * the main connection-handling function. @@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.92 2002/05/08 16:00:46 oes Exp $"; * * Revisions : * $Log: jcc.c,v $ + * Revision 2.0 2002/06/04 14:34:21 jongfoster + * Moving source files to src/ + * * Revision 1.92 2002/05/08 16:00:46 oes * Chat's buffer handling: * - Fixed bug with unchecked out-of-mem conditions @@ -663,7 +666,9 @@ const char *pidfile = NULL; int received_hup_signal = 0; #endif /* defined unix */ -/* The vanilla wafer. */ +/** + * The vanilla wafer. + */ static const char VANILLA_WAFER[] = "NOTICE=TO_WHOM_IT_MAY_CONCERN_" "Do_not_send_me_any_copyrighted_information_other_than_the_" @@ -674,6 +679,29 @@ static const char VANILLA_WAFER[] = "(copyright_or_otherwise)_applying_to_any_cookie._"; +/** + * HTTP header sent when doing HTTPS tunnelling ("CONNECT" method). + */ +static const char CSUCCEED[] = + "HTTP/1.0 200 Connection established\n" + "Proxy-Agent: Privoxy/" VERSION "\r\n\r\n"; + + +/** + * HTTP reply sent when the browser sends something unintelligible. + */ +static const char CHEADER[] = + "HTTP/1.0 400 Invalid header received from browser\r\n\r\n"; + + +/** + * HTTP reply sent when the browser tries to tunnel ("CONNECT") to something + * other than a HTTPS port (as defined by +limit-connect). + */ +static const char CFORBIDDEN[] = + "HTTP/1.0 403 Connection not allowable\r\nX-Hint: If you read this message interactively, then you know why this happens ,-)\r\n\r\n"; + + #if !defined(_WIN32) && !defined(__OS2__) && !defined(AMIGA) /********************************************************************* *