Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
c217b1ca
Commit
c217b1ca
authored
Apr 07, 2003
by
Nick Mathewson
🎨
Browse files
Add magic to end of C files to make emacs happy; split test invocation into separate file.
svn:r224
parent
afa95ca4
Changes
18
Hide whitespace changes
Inline
Side-by-side
src/or/Makefile.am
View file @
c217b1ca
TESTS
=
test
TESTS
=
test_config
noinst_PROGRAMS
=
test_config
noinst_PROGRAMS
=
test
bin_PROGRAMS
=
or
or_LDADD
=
-L
../common
-lor
-lz
or_SOURCES
=
buffers.c circuit.c command.c connection.c
\
connection_exit.c connection_ap.c connection_op.c connection_or.c config.c
\
main.c onion.c routers.c directory.c dns.c
onion.c routers.c directory.c dns.c
\
main.c tor_main.c
test_config_SOURCES
=
test_config.c config.c
or_LDADD
=
-L
../common
-lor
-lz
test_SOURCES
=
buffers.c circuit.c command.c connection.c
\
connection_exit.c connection_ap.c connection_op.c connection_or.c config.c
\
onion.c routers.c directory.c dns.c
\
main.c test.c
test_
config_
LDADD
=
-L
../common
-lor
test_LDADD
=
-L
../common
-lor
-lz
noinst_HEADERS
=
or.h tree.h
...
...
src/or/buffers.c
View file @
c217b1ca
...
...
@@ -252,3 +252,10 @@ int find_on_inbuf(char *string, int string_len,
return
-
1
;
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/circuit.c
View file @
c217b1ca
...
...
@@ -631,3 +631,10 @@ void circuit_dump_by_conn(connection_t *conn) {
}
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/command.c
View file @
c217b1ca
...
...
@@ -300,3 +300,10 @@ void command_process_destroy_cell(cell_t *cell, connection_t *conn) {
circuit_free
(
circ
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/config.c
View file @
c217b1ca
...
...
@@ -369,3 +369,10 @@ int getconfig(int argc, char **argv, or_options_t *options) {
return
result
;
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/connection.c
View file @
c217b1ca
...
...
@@ -904,3 +904,10 @@ int connection_process_cell_from_inbuf(connection_t *conn) {
return
connection_process_inbuf
(
conn
);
/* process the remainder of the buffer */
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/connection_ap.c
View file @
c217b1ca
...
...
@@ -539,3 +539,11 @@ int connection_ap_handle_listener_read(connection_t *conn) {
log
(
LOG_NOTICE
,
"AP: Received a connection request. Waiting for socksinfo."
);
return
connection_handle_listener_read
(
conn
,
CONN_TYPE_AP
,
AP_CONN_STATE_SOCKS_WAIT
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/connection_exit.c
View file @
c217b1ca
...
...
@@ -389,3 +389,10 @@ int connection_exit_connect(connection_t *conn) {
return
connection_exit_send_connected
(
conn
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/connection_op.c
View file @
c217b1ca
...
...
@@ -121,3 +121,10 @@ int connection_op_handle_listener_read(connection_t *conn) {
return
connection_handle_listener_read
(
conn
,
CONN_TYPE_OP
,
OP_CONN_STATE_AWAITING_KEYS
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/connection_or.c
View file @
c217b1ca
...
...
@@ -740,3 +740,10 @@ int connection_or_handle_listener_read(connection_t *conn) {
return
connection_handle_listener_read
(
conn
,
CONN_TYPE_OR
,
OR_CONN_STATE_SERVER_AUTH_WAIT
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/directory.c
View file @
c217b1ca
...
...
@@ -293,3 +293,10 @@ int connection_dir_handle_listener_read(connection_t *conn) {
return
connection_handle_listener_read
(
conn
,
CONN_TYPE_DIR
,
DIR_CONN_STATE_COMMAND_WAIT
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/dns.c
View file @
c217b1ca
...
...
@@ -568,3 +568,10 @@ static int dns_found_answer(char *question, uint32_t answer, uint32_t valid) {
return
0
;
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/main.c
View file @
c217b1ca
...
...
@@ -626,7 +626,7 @@ void daemonize() {
fclose
(
stderr
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
tor_
main
(
int
argc
,
char
*
argv
[])
{
int
retval
=
0
;
if
(
getconfig
(
argc
,
argv
,
&
options
))
...
...
@@ -657,3 +657,10 @@ int main(int argc, char *argv[]) {
return
retval
;
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/onion.c
View file @
c217b1ca
...
...
@@ -809,3 +809,10 @@ static int find_tracked_onion(unsigned char *onion, uint32_t onionlen) {
return
0
;
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/or.h
View file @
c217b1ca
...
...
@@ -775,3 +775,11 @@ int router_get_list_from_file(char *routerfile);
int
router_get_list_from_string
(
char
*
s
);
#endif
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/routers.c
View file @
c217b1ca
...
...
@@ -532,3 +532,10 @@ void test_write_pkey(crypto_pk_env_t *pkey) {
}
#endif
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/test.c
0 → 100644
View file @
c217b1ca
/* Copyright 2001,2002 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
int
main
(
int
c
,
char
**
v
)
{
return
0
;
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
src/or/tor_main.c
0 → 100644
View file @
c217b1ca
/* Copyright 2001,2002 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
int
tor_main
(
int
argc
,
char
*
argv
[]);
int
main
(
int
argc
,
char
*
argv
[])
{
return
tor_main
(
argc
,
argv
);
}
/*
Local Variables:
mode:c
indent-tabs-mode:nil
c-basic-offset:2
End:
*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment