Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
re6stnet
Commits
fed90445
Commit
fed90445
authored
Sep 03, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO & code documentation
parent
15e1f891
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
TODO
TODO
+3
-3
re6st/registry.py
re6st/registry.py
+20
-0
No files found.
TODO
View file @
fed90445
- Test the package
- Put more information in the token mail (registry), such as:
- the ip address of the network being built
...
...
@@ -7,7 +5,6 @@
- Babel limitations:
- The metric does not take latency into account.
- re6stnet needs to communicate with Babel so that only unused tunnels are
freed. For the moment, routes will be randomly broken throughout the
network, from time to time, for small amounts of time.
...
...
@@ -22,3 +19,6 @@
- Abort in case of import child process failure (babel, openvpn server,
openvpn client if run with --client).
- registry: add '--home PATH' command line option so that / display an HTML
page from PATH (use new str.format for templating)
re6st/registry.py
View file @
fed90445
"""
Authenticated communication:
handshake (hello):
C->S: CN
S->C: X = Encrypt(CN)(secret), Sign(CA)(X)
call:
C->S: CN, ..., HMAC(secret+1)(path_info?query_string)
S->C: result, HMAC(secret+2)(result)
secret+1 = SHA1(secret) to protect from replay attacks
HMAC in custom header, base64-encoded
To prevent anyone from breaking an existing session,
keep 2 secrets for each client:
- the last one that was really used by the client (!hello)
- the one of the last handshake (hello)
"""
import
base64
,
hmac
,
hashlib
,
httplib
,
inspect
,
logging
,
mailbox
,
os
,
random
import
select
,
smtplib
,
socket
,
sqlite3
,
string
,
struct
,
sys
,
threading
,
time
from
collections
import
deque
...
...
Write
Preview
Markdown
is supported
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