privoxy.git
23 years ago- Cleaned up, renamed and reordered functions,
oes [Fri, 29 Jun 2001 13:33:04 +0000 (13:33 +0000)]
- Cleaned up, renamed and reordered functions,
  improved comments
- Removed my_strsep
- Replaced globalflag with a general flags int
  that holds PCRS_GLOBAL, PCRS_SUCCESS, and PCRS_TRIVIAL
- Introduced trivial option that will prevent pcrs
  from honouring backreferences in the substitute,
  which is useful for large substitutes that are
  red in from somewhere and saves the pain of escaping
  the backrefs
- Introduced convenience function pcrs_free_joblist()
- Split pcrs_make_job() into pcrs_compile(), which still
  takes a complete s/// comand as argument and parses it,
  and a new function pcrs_make_job, which takes the
  three separate components. This should make for a
  much friendlier frontend.
- Removed create_pcrs_job() which was useless
- Fixed a bug in pcrs_execute
- Success flag is now handled by pcrs instead of user
- Removed logentry from cancelled commit

23 years ago- Fixed a comment
oes [Fri, 29 Jun 2001 13:32:42 +0000 (13:32 +0000)]
- Fixed a comment
- Adapted free_http_request
- Removed logentry from cancelled commit

23 years agoRemoved logentry from cancelled commit
oes [Fri, 29 Jun 2001 13:32:14 +0000 (13:32 +0000)]
Removed logentry from cancelled commit

23 years agoVarious adaptions
oes [Fri, 29 Jun 2001 13:31:51 +0000 (13:31 +0000)]
Various adaptions

23 years ago- Improved comments
oes [Fri, 29 Jun 2001 13:31:03 +0000 (13:31 +0000)]
- Improved comments
- Fixed (actionsfile) and sorted hashes
- Introduced admin_address and proxy-info-url
  as config parameters
- Renamed config->proxy_args_invocation (which didn't have
  the invocation but the options!) to config->proxy_args
- Various adaptions
- Removed logentry from cancelled commit

23 years ago- Introduced enlist_unique_header()
oes [Fri, 29 Jun 2001 13:30:37 +0000 (13:30 +0000)]
- Introduced enlist_unique_header()
- Removed logentry from cancelled commit

23 years ago- Added Convenience function enlist_unique_header(),
oes [Fri, 29 Jun 2001 13:30:22 +0000 (13:30 +0000)]
- Added Convenience function enlist_unique_header(),
  which takes the Header name and value as separate
  arguments and thus saves the pain of sprintf()ing
  and determining the Header name length to enlist_unique
- Improved comments
- Removed logentry from cancelled commit

23 years agoAdded FIXMEs (and didn't repair, hehe)
oes [Fri, 29 Jun 2001 13:29:55 +0000 (13:29 +0000)]
Added FIXMEs (and didn't repair, hehe)

23 years ago- Cleaned up, improved comments
oes [Fri, 29 Jun 2001 13:29:36 +0000 (13:29 +0000)]
- Cleaned up, improved comments
- Unified all possible interceptors (CGI,
  block, trust, fast_redirect) in one
  place, with one (CGI) answer generation
  mechansim. Much clearer now.
- Removed the GIF image generation, which
  is now done in filters.c:block_url()
- Made error conditions like domain lookup
  failiure or (various) problems while talking
  to the server use cgi.c:error_response()
  instead of generating HTML/HTTP in chat() (yuck!)
- Removed logentry from cancelled commit

23 years ago- Added remote (server) host IP to csp->http->host_ip_addr_str
oes [Fri, 29 Jun 2001 13:29:15 +0000 (13:29 +0000)]
- Added remote (server) host IP to csp->http->host_ip_addr_str
- Added detection of local socket IP and fqdn
- Removed logentry from cancelled commit

23 years agoCleaned up and updated to reflect the changesin
oes [Fri, 29 Jun 2001 13:29:01 +0000 (13:29 +0000)]
Cleaned up and updated to reflect the changesin
filters.c

23 years ago- Cleaned up, renamed and reorderd functions
oes [Fri, 29 Jun 2001 13:27:38 +0000 (13:27 +0000)]
- Cleaned up, renamed and reorderd functions
  and improved comments

- block_url:
  - Ported to CGI platform. Now delivers
    http_response or NULL
  - Unified HTML and GIF generation (moved image detection
    and GIF generation here from jcc.c:chat())
  - Fixed HTTP status to:
   -  403 (Forbidden) for the "blocked" HTML message
   -  200 (OK) for GIF answers
   -  302 (Redirect) for redirect to GIF

- trust_url:
  - Ported to CGI platform. Now delivers
    http_response or NULL
  - Separated detection of untrusted URL into
    (bool)is_untrusted_url
  - Added enforcement of untrusted requests

- Moved redirect_url() from cgi.c to here
  and ported it to the CGI platform

- Removed logentry from cancelled commit

23 years agoIntroduced #define CODE_STATUS
oes [Fri, 29 Jun 2001 13:26:27 +0000 (13:26 +0000)]
Introduced #define CODE_STATUS

23 years ago- Fixed errors in general and forward explanations
oes [Fri, 29 Jun 2001 13:23:20 +0000 (13:23 +0000)]
- Fixed errors in general and forward explanations
- Renamed permissionsfile to actionsfile
- Reintroduced and commented the lost trustfile
  and trust-info-url options
- Introduced the admin-address option
- Introduced the proxy-info-url option

23 years ago- Cleaned up
oes [Fri, 29 Jun 2001 13:22:44 +0000 (13:22 +0000)]
- Cleaned up
- Added new functions: default_exports(), make_menu(),
  error_response() etc, ranamed others and changed
  param and return types.
- Removed HTTP/HTML snipplets
- Removed logentry from cancelled commit

23 years ago- Cosmetics: renamed and reordered functions, variables,
oes [Fri, 29 Jun 2001 13:21:46 +0000 (13:21 +0000)]
- Cosmetics: renamed and reordered functions, variables,
  texts, improved comments  etc

- Removed ij_untrusted_url() The relevant
  info is now part of the "untrusted" page,
  which is generated by filters.c:trust_url()

- Generators of content now call finish_http_response()
  themselves, making jcc.c:chat() a little less
  cluttered

- Removed obsolete "Pragma: no-cache" from our headers

- http_responses now know their head length

- fill_template now uses the new interface to pcrs, so that
   - long jobs (like whole files) no longer have to be assembled
     in a fixed size buffer
   - the new T (trivial) option is used, and the replacement may
     contain Perl syntax backrefs without confusing pcrs

- Introduced default_exports() which generates a set of exports
  common to all CGIs and other content generators

- Introduced convenience function map_block_killer()

- Introduced convenience function make_menu()

- Introduced CGI-like function error_response() which generates
  the "No such domain" and "Connect failed" messages using the
  CGI platform

- cgi_show_url_info:
  - adapted to new CGI features
  - form and answers now generated from same template
  - http:// prefix in URL now OK

- cgi_show_status:
  - adapted to new CGI features
  - no longer uses csp->init_proxy_args

- cgi_default:
  - moved menu generation to make_menu()

- add_stats now writes single export map entries instead
  of a fixed string

- Moved redirect_url() to filters.c

- Fixed mem leak in free_http_response(), map_block_killer(),

- Removed logentry from cancelled commit

23 years agoRemoved logentry from cancelled commit
oes [Fri, 29 Jun 2001 13:19:52 +0000 (13:19 +0000)]
Removed logentry from cancelled commit

23 years ago- added depandancy of filters.o on cgi.h
oes [Fri, 29 Jun 2001 13:18:36 +0000 (13:18 +0000)]
- added depandancy of filters.o on cgi.h

23 years ago- renamed to actionsfile
oes [Fri, 29 Jun 2001 13:17:24 +0000 (13:17 +0000)]
- renamed to actionsfile
- Updated image blocker to new cgi location
- Added explanation for the patterns

23 years agorenamed to actionsfile
oes [Fri, 29 Jun 2001 13:15:55 +0000 (13:15 +0000)]
renamed to actionsfile

23 years agoUpdated to new exports list and look
oes [Fri, 29 Jun 2001 08:52:55 +0000 (08:52 +0000)]
Updated to new exports list and look

23 years agoPorted blocker output to CGI platform
oes [Fri, 29 Jun 2001 08:50:48 +0000 (08:50 +0000)]
Ported blocker output to CGI platform

23 years agoPorted error output to CGI platform
oes [Fri, 29 Jun 2001 08:50:07 +0000 (08:50 +0000)]
Ported error output to CGI platform

23 years agoJoined with show-url-info
oes [Fri, 29 Jun 2001 08:47:36 +0000 (08:47 +0000)]
Joined with show-url-info

23 years agoswap ?$ with $?; remove bogus ";;"
Sarantis Paskalis [Thu, 28 Jun 2001 13:50:36 +0000 (13:50 +0000)]
swap ?$ with $?; remove bogus ";;"

23 years agoremove single quotes from $JB; it was not expanded.
Sarantis Paskalis [Thu, 28 Jun 2001 13:40:26 +0000 (13:40 +0000)]
remove single quotes from $JB; it was not expanded.

23 years agoformatting changes; individual return values are returned from the init script.
Sarantis Paskalis [Thu, 28 Jun 2001 13:38:42 +0000 (13:38 +0000)]
formatting changes; individual return values are returned from the init script.

23 years agoadd missingok for the jarfile entry
Sarantis Paskalis [Thu, 28 Jun 2001 13:30:22 +0000 (13:30 +0000)]
add missingok for the jarfile entry

23 years agoTesting XEmacs and VC/CVS modes. Will this work? We shall see...
iwanttokeepanon [Thu, 28 Jun 2001 04:02:42 +0000 (04:02 +0000)]
Testing XEmacs and VC/CVS modes.  Will this work?   We shall see...

23 years agoA suggested standard for IJB. Outline-mode formatting and spell checking to follow...
iwanttokeepanon [Thu, 28 Jun 2001 03:01:32 +0000 (03:01 +0000)]
A suggested standard for IJB.  Outline-mode formatting and spell checking to follow.  Developer comments encouraged and requested.

23 years agoFixed microsuck line
oes [Tue, 19 Jun 2001 14:21:56 +0000 (14:21 +0000)]
Fixed microsuck line

23 years agodocs should have an author.
swa [Wed, 13 Jun 2001 14:28:31 +0000 (14:28 +0000)]
docs should have an author.

23 years agofirst import of project's documentation for the webserver.
swa [Wed, 13 Jun 2001 14:20:37 +0000 (14:20 +0000)]
first import of project's documentation for the webserver.

23 years agothe % in front of configure (see tag below) confused
swa [Tue, 12 Jun 2001 18:15:29 +0000 (18:15 +0000)]
the % in front of configure (see tag below) confused
the rpm build process on 7.1.

23 years agofixes, because a clean build on rh6.1 was impossible.
swa [Tue, 12 Jun 2001 17:15:56 +0000 (17:15 +0000)]
fixes, because a clean build on rh6.1 was impossible.
GZIP confuses make, %configure confuses rpm, etc.

23 years agofix typo in %post
Sarantis Paskalis [Mon, 11 Jun 2001 12:17:26 +0000 (12:17 +0000)]
fix typo in %post

23 years agoMinor editing changes.
Sarantis Paskalis [Mon, 11 Jun 2001 11:37:40 +0000 (11:37 +0000)]
Minor editing changes.

23 years agoFurther optimizations and adaptations in the spec file.
Sarantis Paskalis [Mon, 11 Jun 2001 11:28:25 +0000 (11:28 +0000)]
Further optimizations and adaptations in the spec file.

23 years agoRPM version should be the same as ijbswa version. The rpm release is
Sarantis Paskalis [Mon, 11 Jun 2001 11:26:35 +0000 (11:26 +0000)]
RPM version should be the same as ijbswa version.  The rpm release is
specified in the specfile.

23 years agostick to the old behavior of JB.
swa [Sat, 9 Jun 2001 14:15:11 +0000 (14:15 +0000)]
stick to the old behavior of JB.

23 years agoheader. cosmetics. default: no messing ala microsuck.
swa [Sat, 9 Jun 2001 14:01:57 +0000 (14:01 +0000)]
header. cosmetics. default: no messing ala microsuck.

23 years agoChanging "show URL info" handler to new style.
jongfoster [Sat, 9 Jun 2001 11:00:58 +0000 (11:00 +0000)]
Changing "show URL info" handler to new style.

23 years agoRemoving a single unused #define which referenced BUFSIZ
jongfoster [Sat, 9 Jun 2001 10:58:57 +0000 (10:58 +0000)]
Removing a single unused #define which referenced BUFSIZ

23 years agoAdding definition of BUFFER_SIZE.
jongfoster [Sat, 9 Jun 2001 10:57:39 +0000 (10:57 +0000)]
Adding definition of BUFFER_SIZE.
Changing struct cgi_dispatcher to use "const" strings.

23 years agoChanging BUFSIZ ==> BUFFER_SIZE
jongfoster [Sat, 9 Jun 2001 10:55:28 +0000 (10:55 +0000)]
Changing BUFSIZ ==> BUFFER_SIZE

23 years agoChanging "show URL info" handler to new style.
jongfoster [Sat, 9 Jun 2001 10:51:58 +0000 (10:51 +0000)]
Changing "show URL info" handler to new style.
Changing BUFSIZ ==> BUFFER_SIZE

23 years agoChanging "show URL info" handler to new style.
jongfoster [Sat, 9 Jun 2001 10:50:58 +0000 (10:50 +0000)]
Changing "show URL info" handler to new style.
Adding "extern" to some function prototypes.

23 years agoRemoving ACL and Forward entries
jongfoster [Sat, 9 Jun 2001 10:47:39 +0000 (10:47 +0000)]
Removing ACL and Forward entries

23 years agoshamelessly adapted RPM stuff from the newest rpm that
swa [Sat, 9 Jun 2001 09:14:11 +0000 (09:14 +0000)]
shamelessly adapted RPM stuff from the newest rpm that
RedHat provided for the JB.

23 years agodescription shorter
swa [Sat, 9 Jun 2001 09:13:29 +0000 (09:13 +0000)]
description shorter

23 years agotype with status file. remove forward et. al from file list.
swa [Fri, 8 Jun 2001 20:54:18 +0000 (20:54 +0000)]
type with status file. remove forward et. al from file list.

23 years agouse buildroot, export init to separate file (better manageability)
swa [Fri, 8 Jun 2001 20:53:36 +0000 (20:53 +0000)]
use buildroot, export init to separate file (better manageability)

23 years agoMerging ACL and Forward files into main config file.
jongfoster [Fri, 8 Jun 2001 00:25:01 +0000 (00:25 +0000)]
Merging ACL and Forward files into main config file.

23 years agoRemoving config->proxy_args_gateways
jongfoster [Thu, 7 Jun 2001 23:15:40 +0000 (23:15 +0000)]
Removing config->proxy_args_gateways
Missing return statement added to end_proxy_args().

23 years agoMerging ACL and forward files into config file.
jongfoster [Thu, 7 Jun 2001 23:15:09 +0000 (23:15 +0000)]
Merging ACL and forward files into config file.
Moving struct gateway members into struct forward_spec
Removing config->proxy_args_gateways
Cosmetic: Adding a few comments

23 years agoRemoving ACL and forward file loaders - these files have
jongfoster [Thu, 7 Jun 2001 23:14:38 +0000 (23:14 +0000)]
Removing ACL and forward file loaders - these files have
been merged into the config file.

23 years agoRemoving ACL and forward file loaders - these
jongfoster [Thu, 7 Jun 2001 23:14:14 +0000 (23:14 +0000)]
Removing ACL and forward file loaders - these
files have been merged into the config file.
Cosmetic: Moving unloader funcs next to their
respective loader funcs

23 years agoMerging ACL and forward files into config file.
jongfoster [Thu, 7 Jun 2001 23:13:40 +0000 (23:13 +0000)]
Merging ACL and forward files into config file.
Cosmetic: Sorting config file options alphabetically.
Cosmetic: Adding brief syntax comments to config file options.

23 years agoReplacing function pointer in struct gateway with a directly
jongfoster [Thu, 7 Jun 2001 23:12:52 +0000 (23:12 +0000)]
Replacing function pointer in struct gateway with a directly
called function forwarded_connect().
Replacing struct gateway with struct forward_spec

23 years agoRemoving gateways[] list - no longer used.
jongfoster [Thu, 7 Jun 2001 23:12:14 +0000 (23:12 +0000)]
Removing gateways[] list - no longer used.
Replacing function pointer in struct gateway with a directly
called function forwarded_connect(), which can do the common
task of deciding whether to connect to the web server or HTTP
proxy.
Replacing struct gateway with struct forward_spec

23 years agoRemoving gateways[] list - no longer used.
jongfoster [Thu, 7 Jun 2001 23:11:38 +0000 (23:11 +0000)]
Removing gateways[] list - no longer used.
Replacing function pointer in struct gateway with a directly
called function forwarded_connect(), which can do the common
task of deciding whether to connect to the web server or HTTP
proxy.
Replacing struct gateway with struct forward_spec
Fixing bug with SOCKS4A and HTTP proxy server in combination.
It was a bug which led to the connection being made to the web
server rather than the HTTP proxy, and also a buffer overrun.

23 years agoReplacing struct gateway with struct forward_spec
jongfoster [Thu, 7 Jun 2001 23:10:53 +0000 (23:10 +0000)]
Replacing struct gateway with struct forward_spec

23 years agoAllowing unanchored domain patterns to back off and retry
jongfoster [Thu, 7 Jun 2001 23:10:26 +0000 (23:10 +0000)]
Allowing unanchored domain patterns to back off and retry
if they partially match.  Optimized right-anchored patterns.
Moving ACL and forward files into config file.
Replacing struct gateway with struct forward_spec

23 years agoCosmetic indentation changes.
jongfoster [Thu, 7 Jun 2001 23:09:19 +0000 (23:09 +0000)]
Cosmetic indentation changes.

23 years agoForward and ACL edit options removed.
jongfoster [Thu, 7 Jun 2001 23:08:54 +0000 (23:08 +0000)]
Forward and ACL edit options removed.
Config edit option renamed from "&Junkbuster" to "&Configuration".

23 years agoForward and ACL edit options removed.
jongfoster [Thu, 7 Jun 2001 23:08:12 +0000 (23:08 +0000)]
Forward and ACL edit options removed.

23 years agoThe host parameter to connect_to() is now const.
jongfoster [Thu, 7 Jun 2001 23:06:09 +0000 (23:06 +0000)]
The host parameter to connect_to() is now const.

23 years agoRemoving code related to old forward and ACL files.
jongfoster [Thu, 7 Jun 2001 23:05:19 +0000 (23:05 +0000)]
Removing code related to old forward and ACL files.

23 years agoMade get_actions() static.
jongfoster [Thu, 7 Jun 2001 23:04:34 +0000 (23:04 +0000)]
Made get_actions() static.

23 years agoAdded standard comment at top of file.
jongfoster [Thu, 7 Jun 2001 23:03:56 +0000 (23:03 +0000)]
Added standard comment at top of file.

23 years agoignore logfile
swa [Thu, 7 Jun 2001 17:29:51 +0000 (17:29 +0000)]
ignore logfile

23 years agocosmetics
swa [Thu, 7 Jun 2001 17:28:10 +0000 (17:28 +0000)]
cosmetics

23 years agoadded suse build section
swa [Thu, 7 Jun 2001 17:27:45 +0000 (17:27 +0000)]
added suse build section

23 years agoheader fixed
swa [Thu, 7 Jun 2001 17:18:44 +0000 (17:18 +0000)]
header fixed

23 years agosuse spec file (as shamelessly used from suse's 2.0-14 version)
swa [Thu, 7 Jun 2001 17:15:13 +0000 (17:15 +0000)]
suse spec file (as shamelessly used from suse's 2.0-14 version)

23 years agomake_path() no longer adds '/' if the dir already ends in '/'.
joergs [Thu, 7 Jun 2001 14:51:38 +0000 (14:51 +0000)]
make_path() no longer adds '/' if the dir already ends in '/'.

23 years agoMissing make_path() added for re_filterfile.
joergs [Thu, 7 Jun 2001 14:46:25 +0000 (14:46 +0000)]
Missing make_path() added for re_filterfile.

23 years agohttp://i.j.b/ijb-send-banner changed to http://i.j.b/send-banner
joergs [Thu, 7 Jun 2001 14:43:51 +0000 (14:43 +0000)]
i.j.b/ijb-send-banner changed to http://i.j.b/send-banner

23 years agoslight mistake in make_path, unix path style is /.
swa [Thu, 7 Jun 2001 14:43:17 +0000 (14:43 +0000)]
slight mistake in make_path, unix path style is /.

23 years agoFix misplaced comment start.
Sarantis Paskalis [Wed, 6 Jun 2001 09:37:59 +0000 (09:37 +0000)]
Fix misplaced comment start.

23 years agoAdding VC++ temporary files, and Win32 config file.
jongfoster [Tue, 5 Jun 2001 22:36:42 +0000 (22:36 +0000)]
Adding VC++ temporary files, and Win32 config file.

23 years agoFixed minor memory leak.
jongfoster [Tue, 5 Jun 2001 22:33:54 +0000 (22:33 +0000)]
Fixed minor memory leak.
Also now uses make_path to prepend the pathnames.

23 years agoNew function make_path() to splice directory and file names together.
jongfoster [Tue, 5 Jun 2001 22:32:01 +0000 (22:32 +0000)]
New function make_path() to splice directory and file names together.

23 years agoNow uses _snprintf() in place of snprintf() under Win32.
jongfoster [Tue, 5 Jun 2001 20:04:09 +0000 (20:04 +0000)]
Now uses _snprintf() in place of snprintf() under Win32.

23 years agoNow compiles in cgi.[ch]
jongfoster [Tue, 5 Jun 2001 20:01:25 +0000 (20:01 +0000)]
Now compiles in cgi.[ch]

23 years agoFixing multiline character string (a GCC-only "feature"), and snprintf (it's _snprint...
jongfoster [Tue, 5 Jun 2001 19:59:16 +0000 (19:59 +0000)]
Fixing multiline character string (a GCC-only "feature"), and snprintf (it's _snprintf under VC++).

23 years agofiles are now prefixed with either `confdir' or `logdir'.
swa [Mon, 4 Jun 2001 18:31:58 +0000 (18:31 +0000)]
files are now prefixed with either `confdir' or `logdir'.
`make redhat-dist' replaces both entries confdir and logdir
with redhat values

23 years agoredirect did not work due to missing /
swa [Mon, 4 Jun 2001 11:28:53 +0000 (11:28 +0000)]
redirect did not work due to missing /

23 years ago`make redhatr-dist' now works. Except for the paths
swa [Mon, 4 Jun 2001 10:44:57 +0000 (10:44 +0000)]
`make redhatr-dist' now works. Except for the paths
in the config file.

23 years agoshow version string of cgi.h and cgi.c
swa [Mon, 4 Jun 2001 10:41:52 +0000 (10:41 +0000)]
show version string of cgi.h and cgi.c

23 years agomoved stuff to cgi.c
oes [Sun, 3 Jun 2001 19:13:05 +0000 (19:13 +0000)]
moved stuff to cgi.c

23 years agoadded struct map, added struct http_response, changed struct interceptors to struct...
oes [Sun, 3 Jun 2001 19:12:58 +0000 (19:12 +0000)]
added struct map, added struct http_response, changed struct interceptors to struct cgi_dispatcher, moved HTML stuff to cgi.h

23 years agoadded FIXME
oes [Sun, 3 Jun 2001 19:12:45 +0000 (19:12 +0000)]
added FIXME

23 years agodeleted const struct interceptors
oes [Sun, 3 Jun 2001 19:12:38 +0000 (19:12 +0000)]
deleted const struct interceptors

23 years agointroduced bindup()
oes [Sun, 3 Jun 2001 19:12:30 +0000 (19:12 +0000)]
introduced bindup()

23 years agofunctions for new struct map, extended enlist_unique
oes [Sun, 3 Jun 2001 19:12:24 +0000 (19:12 +0000)]
functions for new struct map, extended enlist_unique

23 years agointroduced new cgi handling
oes [Sun, 3 Jun 2001 19:12:16 +0000 (19:12 +0000)]
introduced new cgi handling

23 years agofilled comment
oes [Sun, 3 Jun 2001 19:12:07 +0000 (19:12 +0000)]
filled comment

23 years agoextracted-CGI relevant stuff
oes [Sun, 3 Jun 2001 19:12:00 +0000 (19:12 +0000)]
extracted-CGI relevant stuff

23 years agointroduced confdir option
oes [Sun, 3 Jun 2001 19:11:54 +0000 (19:11 +0000)]
introduced confdir option