Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sergi
Tor
Commits
54fda6b9
Commit
54fda6b9
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Module-level docs for ext_orport and router.c
parent
43965401
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/or/ext_orport.c
+11
-1
11 additions, 1 deletion
src/or/ext_orport.c
src/or/router.c
+17
-2
17 additions, 2 deletions
src/or/router.c
with
28 additions
and
3 deletions
src/or/ext_orport.c
+
11
−
1
View file @
54fda6b9
...
...
@@ -4,7 +4,17 @@
/**
* \file ext_orport.c
* \brief Code implementing the Extended ORPort.
*/
*
* The Extended ORPort interface is used by pluggable transports to
* communicate additional information to a Tor bridge, including
* address information. For more information on this interface,
* see pt-spec.txt in torspec.git.
*
* There is no separate structure for extended ORPort connections; they use
* or_connection_t objects, and share most of their implementation with
* connection_or.c. Once the handshake is done, an extended ORPort connection
* turns into a regular OR connection, using connection_ext_or_transition().
*/
#define EXT_ORPORT_PRIVATE
#include
"or.h"
...
...
This diff is collapsed.
Click to expand it.
src/or/router.c
+
17
−
2
View file @
54fda6b9
...
...
@@ -37,8 +37,23 @@
/**
* \file router.c
* \brief OR functionality, including key maintenance, generating
* and uploading server descriptors, retrying OR connections.
* \brief Miscellaneous relay functionality, including RSA key maintenance,
* generating and uploading server descriptors, picking an address to
* advertise, and so on.
*
* This module handles the job of deciding whether we are a Tor relay, and if
* so what kind. (Mostly through functions like server_mode() that inspect an
* or_options_t, but in some cases based on our own capabilities, such as when
* we are deciding whether to be a directory cache in
* router_has_bandwidth_to_be_dirserver().)
*
* Also in this module are the functions to generate our own routerinfo_t and
* extrainfo_t, and to encode those to signed strings for upload to the
* directory authorities.
*
* This module also handles key maintenance for RSA and Curve25519-ntor keys,
* and for our TLS context. (These functions should eventually move to
* routerkeys.c along with the code that handles Ed25519 keys now.)
**/
/************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment