mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
More whitespace normalization
svn:r2768
This commit is contained in:
parent
0f89ec7f4c
commit
21c92dace0
2
INSTALL
2
INSTALL
@ -42,7 +42,7 @@ If you got the source from cvs:
|
|||||||
|
|
||||||
If the quickstart doesn't work for you:
|
If the quickstart doesn't work for you:
|
||||||
|
|
||||||
If you have problems finding libraries, try
|
If you have problems finding libraries, try
|
||||||
CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
|
CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
|
||||||
./configure
|
./configure
|
||||||
rather than simply ./configure.
|
rather than simply ./configure.
|
||||||
|
10
configure.in
10
configure.in
@ -50,7 +50,7 @@ AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
|
|||||||
continue;
|
continue;
|
||||||
fi
|
fi
|
||||||
if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
|
if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
|
||||||
# Try to use $ssldir/lib if it exists, otherwise
|
# Try to use $ssldir/lib if it exists, otherwise
|
||||||
# $ssldir
|
# $ssldir
|
||||||
if test -d "$ssldir/lib" ; then
|
if test -d "$ssldir/lib" ; then
|
||||||
LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
|
LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
|
||||||
@ -63,7 +63,7 @@ AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
|
|||||||
LDFLAGS="-R$ssldir $LDFLAGS"
|
LDFLAGS="-R$ssldir $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Try to use $ssldir/include if it exists, otherwise
|
# Try to use $ssldir/include if it exists, otherwise
|
||||||
# $ssldir
|
# $ssldir
|
||||||
if test -d "$ssldir/include" ; then
|
if test -d "$ssldir/include" ; then
|
||||||
CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
|
CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
|
||||||
@ -78,7 +78,7 @@ AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
|
|||||||
[
|
[
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
char a[2048];
|
char a[2048];
|
||||||
memset(a, 0, sizeof(a));
|
memset(a, 0, sizeof(a));
|
||||||
@ -111,7 +111,7 @@ if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
|
|||||||
dnl Need to recover ssldir - test above runs in subshell
|
dnl Need to recover ssldir - test above runs in subshell
|
||||||
ssldir=$ac_cv_openssldir
|
ssldir=$ac_cv_openssldir
|
||||||
if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
|
if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
|
||||||
# Try to use $ssldir/lib if it exists, otherwise
|
# Try to use $ssldir/lib if it exists, otherwise
|
||||||
# $ssldir
|
# $ssldir
|
||||||
if test -d "$ssldir/lib" ; then
|
if test -d "$ssldir/lib" ; then
|
||||||
LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
|
LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
|
||||||
@ -124,7 +124,7 @@ if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
|
|||||||
LDFLAGS="-R$ssldir $LDFLAGS"
|
LDFLAGS="-R$ssldir $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Try to use $ssldir/include if it exists, otherwise
|
# Try to use $ssldir/include if it exists, otherwise
|
||||||
# $ssldir
|
# $ssldir
|
||||||
if test -d "$ssldir/include" ; then
|
if test -d "$ssldir/include" ; then
|
||||||
CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
|
CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
|
||||||
|
@ -4,22 +4,22 @@ for $fn (@ARGV) {
|
|||||||
open(F, "$fn");
|
open(F, "$fn");
|
||||||
$lastnil = 0;
|
$lastnil = 0;
|
||||||
while (<F>) {
|
while (<F>) {
|
||||||
if (/\r/) {
|
if (/\r/) {
|
||||||
print " CR:$fn:$.\n";
|
print " CR:$fn:$.\n";
|
||||||
}
|
}
|
||||||
if (/\t/) {
|
if (/\t/) {
|
||||||
print " TAB:$fn:$.\n";
|
print " TAB:$fn:$.\n";
|
||||||
}
|
}
|
||||||
if (/ +$/) {
|
if (/ +$/) {
|
||||||
print "Space\@EOL:$fn:$.\n";
|
print "Space\@EOL:$fn:$.\n";
|
||||||
}
|
}
|
||||||
if ($lastnil && /^$/) {
|
if ($lastnil && /^$/) {
|
||||||
print " DoubleNL:$fn:$.\n";
|
print " DoubleNL:$fn:$.\n";
|
||||||
} elsif (/^$/) {
|
} elsif (/^$/) {
|
||||||
$lastnil = 1;
|
$lastnil = 1;
|
||||||
} else {
|
} else {
|
||||||
$lastnil = 0;
|
$lastnil = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(F);
|
close(F);
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,6 @@ for fname in files:
|
|||||||
|
|
||||||
print "=============================="
|
print "=============================="
|
||||||
|
|
||||||
|
|
||||||
funcnames = functionCalls.keys()
|
funcnames = functionCalls.keys()
|
||||||
funcnames.sort()
|
funcnames.sort()
|
||||||
|
|
||||||
@ -146,7 +145,6 @@ for func in funcnames:
|
|||||||
for c in calls:
|
for c in calls:
|
||||||
d[c]=1
|
d[c]=1
|
||||||
|
|
||||||
|
|
||||||
cycNames = cycCalls.keys()
|
cycNames = cycCalls.keys()
|
||||||
while 1:
|
while 1:
|
||||||
any = 0
|
any = 0
|
||||||
|
@ -31,11 +31,11 @@ case "$1" in
|
|||||||
echo "tor appears to be already running (pid file exists)"
|
echo "tor appears to be already running (pid file exists)"
|
||||||
echo "Maybe you should run: $0 restart ?"
|
echo "Maybe you should run: $0 restart ?"
|
||||||
RETVAL=1
|
RETVAL=1
|
||||||
else
|
else
|
||||||
echo -n "Starting tor..."
|
echo -n "Starting tor..."
|
||||||
if [ "x$TORUSER" = "x" ]; then
|
if [ "x$TORUSER" = "x" ]; then
|
||||||
$TORBIN -f $TORCONF $TORARGS
|
$TORBIN -f $TORCONF $TORARGS
|
||||||
else
|
else
|
||||||
/bin/su -c "$TORBIN -f $TORCONF $TORARGS" $TORUSER
|
/bin/su -c "$TORBIN -f $TORCONF $TORARGS" $TORUSER
|
||||||
fi
|
fi
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
@ -87,7 +87,6 @@ case "$1" in
|
|||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
status)
|
status)
|
||||||
PID=`cat $TORPID 2>/dev/null`
|
PID=`cat $TORPID 2>/dev/null`
|
||||||
if [ "$PID" != "" ]; then
|
if [ "$PID" != "" ]; then
|
||||||
@ -105,7 +104,7 @@ case "$1" in
|
|||||||
log)
|
log)
|
||||||
cat $TORLOG
|
cat $TORLOG
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 (start|stop|restart|status|log)"
|
echo "Usage: $0 (start|stop|restart|status|log)"
|
||||||
exit 1
|
exit 1
|
||||||
|
22
doc/HACKING
22
doc/HACKING
@ -53,14 +53,14 @@ the distant future, stuff may have changed.)
|
|||||||
util.[ch] -- Miscellaneous portability and convenience functions.
|
util.[ch] -- Miscellaneous portability and convenience functions.
|
||||||
|
|
||||||
Files in ./src/or:
|
Files in ./src/or:
|
||||||
|
|
||||||
[General-purpose modules]
|
[General-purpose modules]
|
||||||
|
|
||||||
or.h -- Common header file: include everything, define everything.
|
or.h -- Common header file: include everything, define everything.
|
||||||
|
|
||||||
buffers.c -- Implements a generic buffer interface. Buffers are
|
buffers.c -- Implements a generic buffer interface. Buffers are
|
||||||
fairly opaque string holders that can read to or flush from:
|
fairly opaque string holders that can read to or flush from:
|
||||||
memory, file descriptors, or TLS connections.
|
memory, file descriptors, or TLS connections.
|
||||||
|
|
||||||
Also implements parsing functions to read HTTP and SOCKS commands
|
Also implements parsing functions to read HTTP and SOCKS commands
|
||||||
from buffers.
|
from buffers.
|
||||||
@ -89,7 +89,7 @@ the distant future, stuff may have changed.)
|
|||||||
results; clients use routers.c to parse them.
|
results; clients use routers.c to parse them.
|
||||||
|
|
||||||
dirserv.c -- Code to manage directory contents and generate
|
dirserv.c -- Code to manage directory contents and generate
|
||||||
directories. [Directory server only]
|
directories. [Directory server only]
|
||||||
|
|
||||||
routers.c -- Code to parse directories and router descriptors; and to
|
routers.c -- Code to parse directories and router descriptors; and to
|
||||||
generate a router descriptor corresponding to this OR's
|
generate a router descriptor corresponding to this OR's
|
||||||
@ -133,9 +133,9 @@ the distant future, stuff may have changed.)
|
|||||||
All sockets in Tor are handled as different types of nonblocking
|
All sockets in Tor are handled as different types of nonblocking
|
||||||
'connections'. (What the Tor spec calls a "Connection", the code refers
|
'connections'. (What the Tor spec calls a "Connection", the code refers
|
||||||
to as a "Cell-speaking" or "OR" connection.)
|
to as a "Cell-speaking" or "OR" connection.)
|
||||||
|
|
||||||
Connections are implemented by the connection_t struct, defined in or.h.
|
Connections are implemented by the connection_t struct, defined in or.h.
|
||||||
Not every kind of connection uses all the fields in connection_t; see
|
Not every kind of connection uses all the fields in connection_t; see
|
||||||
the comments in or.h and the assertions in assert_connection_ok() for
|
the comments in or.h and the assertions in assert_connection_ok() for
|
||||||
more information.
|
more information.
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ the distant future, stuff may have changed.)
|
|||||||
command_process_cell -- Notices it is a relay cell, so calls:
|
command_process_cell -- Notices it is a relay cell, so calls:
|
||||||
command_process_relay_cell -- Looks up the circuit for the cell,
|
command_process_relay_cell -- Looks up the circuit for the cell,
|
||||||
makes sure the circuit is live, then passes the cell to:
|
makes sure the circuit is live, then passes the cell to:
|
||||||
circuit_deliver_relay_cell -- Passes the cell to each of:
|
circuit_deliver_relay_cell -- Passes the cell to each of:
|
||||||
relay_crypt -- Strips a layer of encryption from the cell and
|
relay_crypt -- Strips a layer of encryption from the cell and
|
||||||
notices that the cell is for local delivery.
|
notices that the cell is for local delivery.
|
||||||
connection_edge_process_relay_cell -- extracts the cell's
|
connection_edge_process_relay_cell -- extracts the cell's
|
||||||
@ -317,7 +317,6 @@ the distant future, stuff may have changed.)
|
|||||||
back an acknowledgement (requesting that more cells be
|
back an acknowledgement (requesting that more cells be
|
||||||
sent to this stream).
|
sent to this stream).
|
||||||
|
|
||||||
|
|
||||||
1.6. Routers, descriptors, and directories
|
1.6. Routers, descriptors, and directories
|
||||||
|
|
||||||
All Tor processes need to keep track of a list of onion routers, for
|
All Tor processes need to keep track of a list of onion routers, for
|
||||||
@ -348,7 +347,7 @@ the distant future, stuff may have changed.)
|
|||||||
directories.
|
directories.
|
||||||
|
|
||||||
1.7. Data model
|
1.7. Data model
|
||||||
|
|
||||||
[XXX]
|
[XXX]
|
||||||
|
|
||||||
1.8. Flow control
|
1.8. Flow control
|
||||||
@ -477,7 +476,6 @@ the distant future, stuff may have changed.)
|
|||||||
|
|
||||||
[XXX insert references]
|
[XXX insert references]
|
||||||
|
|
||||||
|
|
||||||
# ======================================================================
|
# ======================================================================
|
||||||
# Old HACKING document; merge into the above, move into tor-design.tex,
|
# Old HACKING document; merge into the above, move into tor-design.tex,
|
||||||
# or delete.
|
# or delete.
|
||||||
@ -574,7 +572,3 @@ Robustness features.
|
|||||||
|
|
||||||
Currently the code tries for the primary router first, and if it's down,
|
Currently the code tries for the primary router first, and if it's down,
|
||||||
chooses the first available twin.
|
chooses the first available twin.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -563,7 +563,6 @@ TODO: (very soon)
|
|||||||
cells when both a) the window is <= 450, and b) there are less than
|
cells when both a) the window is <= 450, and b) there are less than
|
||||||
ten cell payloads remaining to be flushed at that edge.
|
ten cell payloads remaining to be flushed at that edge.
|
||||||
|
|
||||||
|
|
||||||
7. Directories and routers
|
7. Directories and routers
|
||||||
|
|
||||||
7.1. Extensible information format
|
7.1. Extensible information format
|
||||||
@ -712,7 +711,7 @@ items, a directory includes any number of router descriptors, and a single
|
|||||||
|
|
||||||
"signed-directory"
|
"signed-directory"
|
||||||
|
|
||||||
Indicates the start of a
|
Indicates the start of a
|
||||||
|
|
||||||
"published" YYYY-MM-DD HH:MM:SS
|
"published" YYYY-MM-DD HH:MM:SS
|
||||||
|
|
||||||
@ -756,7 +755,7 @@ items, a directory includes any number of router descriptors, and a single
|
|||||||
'verified' if its nickname AND digest match the one provided.
|
'verified' if its nickname AND digest match the one provided.
|
||||||
[XXXX 'router-status' was added in 0.0.9pre5; older directory code
|
[XXXX 'router-status' was added in 0.0.9pre5; older directory code
|
||||||
uses 'running-routers' instead.]
|
uses 'running-routers' instead.]
|
||||||
|
|
||||||
"directory-signature" nickname-of-dirserver NL Signature
|
"directory-signature" nickname-of-dirserver NL Signature
|
||||||
|
|
||||||
Note: The router descriptor for the directory server MUST appear first.
|
Note: The router descriptor for the directory server MUST appear first.
|
||||||
|
@ -95,7 +95,7 @@ servers haven't authenticated as "verified"? (Default: middle,rendezvous.)
|
|||||||
Every N seconds, Tor downloads a fresh directory, and re-uploads
|
Every N seconds, Tor downloads a fresh directory, and re-uploads
|
||||||
information about hidden services to the directory servers. If
|
information about hidden services to the directory servers. If
|
||||||
running as a server, Tor also re-uploads information about itself to
|
running as a server, Tor also re-uploads information about itself to
|
||||||
the directory servers. (Tor also uploads this information whenever it
|
the directory servers. (Tor also uploads this information whenever it
|
||||||
changes.) (Default: 600.)
|
changes.) (Default: 600.)
|
||||||
.TP
|
.TP
|
||||||
\fBClientOnly \fR\fB0\fR|\fB1\fR\fP
|
\fBClientOnly \fR\fB0\fR|\fB1\fR\fP
|
||||||
@ -217,7 +217,7 @@ If you have more than this number of onionskins queued for decrypt, reject new o
|
|||||||
.TP
|
.TP
|
||||||
\fBMyFamily \fR\fInickname,nickname,...\fP
|
\fBMyFamily \fR\fInickname,nickname,...\fP
|
||||||
Declare that this Tor server is controlled or administered by a group
|
Declare that this Tor server is controlled or administered by a group
|
||||||
or organization identical or similar to that of the other named servers.
|
or organization identical or similar to that of the other named servers.
|
||||||
When two servers both declare that they are in the same 'family', Tor clients
|
When two servers both declare that they are in the same 'family', Tor clients
|
||||||
will not use them in the same circuit.
|
will not use them in the same circuit.
|
||||||
.TP
|
.TP
|
||||||
@ -296,7 +296,6 @@ knows about, so it can tell which are up and which are down. This
|
|||||||
option is only useful for authoritative directories, so you probably
|
option is only useful for authoritative directories, so you probably
|
||||||
don't want to use it.
|
don't want to use it.
|
||||||
|
|
||||||
|
|
||||||
.SH HIDDEN SERVICE OPTIONS
|
.SH HIDDEN SERVICE OPTIONS
|
||||||
.PP
|
.PP
|
||||||
The following options are used to configure a hidden service.
|
The following options are used to configure a hidden service.
|
||||||
|
@ -242,7 +242,7 @@ exit 0
|
|||||||
of weird race going on, and it's arguably a bad thing anyway.
|
of weird race going on, and it's arguably a bad thing anyway.
|
||||||
|
|
||||||
* Mon Jun 06 2004 Nick Mathewson <nickm@freehaven.net> 0.0.7-0.std.0.1.rc2
|
* Mon Jun 06 2004 Nick Mathewson <nickm@freehaven.net> 0.0.7-0.std.0.1.rc2
|
||||||
- Make spec file more happy with fc2 packaging
|
- Make spec file more happy with fc2 packaging
|
||||||
|
|
||||||
* Sat Jan 17 2004 John Bashinski <jbash@velvet.com>
|
* Sat Jan 17 2004 John Bashinski <jbash@velvet.com>
|
||||||
- Basic spec file; tested with Red Hat 9.
|
- Basic spec file; tested with Red Hat 9.
|
||||||
|
Loading…
Reference in New Issue
Block a user