| Commit message (Collapse) | Author | Age |
| ... | |
| | | | |
|
| | | |
| | |
| | |
| | | |
handling.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
files.
|
| | | |
| | |
| | |
| | |
| | | |
The argparse module wasn't a builtin in Python2.6, so we have to add it to
requirements.txt otherwise the CI builds fail.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |/ /
| |
| |
| | |
* FIXES the coverage part of #9865.
|
| |\ \ |
|
| |/ /
| |
| |
| | |
Apparently, "unhandled" SystemExits make Travis CI angry.
|
| |\ \ |
|
| | | | |
|
| |\ \ \
| |/ / |
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Because subclasses of bridgedb.parse.options.BaseOptions will call their own
parseOptions() method, which calls their own postOptions() as well as all
parent class postOptions() methods, we have to set the absolute paths of the
config file and the runtime directory as globals of the bridgedb.parse.options
module. Otherwise, they will get reset in the parent classes, who do not have
the instance variables of the subclass which did the original commandline
parsing, and thus the config file and runtime directory get reset to their
default settings by the parent classes. This then raises errors when an
attempt to read the config file is made in bridgedb.Main.loadConfig(), because
the file is (likely) not found.
* FIXES a bug introduced by the changes for #9872, pertaining to setting the
runtime directory and config file paths when using options.subCommand.
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit a49ee2a0872b474e11a5f8dd9c169b2fac1ae22e.
Signed-off-by: Isis Lovecruft <isis@torproject.org>
|
| | | | |
|
| |/ / |
|
| | |
| |
| |
| |
| |
| |
| | |
The maintainer of ipaddr has ceased uploading to PyPI, and so to get pip to
download it, we need to add its URI and hash to requirements.txt. The
get_requirements function in setup.py must be refactored to handle parse these
URIs correctly, and return dependency_links in addition to install_requires.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The raw digest is passed to the function for making the networkstatus
document, where it is then base64-encoded and its trailing '='s are
stripped. Remove an extra, unused line from the main makeDescriptors()
function where this is done again, but not passed to the networkstatus
creation function.
|
| | |
| |
| |
| |
| | |
It doesn't have whitespace, now that it is retrieved with hashlib.sha1()
instead of OpenSSL.crypto.x509.digest().
|
| | | |
|
| | |
| |
| |
| | |
This happens on first run, if a `Conf` isn't saved as state.config.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
If we save the runtime directory location later in Main.setup() when the
persistent.State instance is created, then any options.subCommands which run
earlier cannot access it.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
(cherry picked from commit fceee92ad07f3390eab7504ba6d86393b57aeda0)
Signed-off-by: Isis Lovecruft <isis@torproject.org>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(cherry picked from commit b4357fe77284d9858a1c71be649cd6cc157002fd)
Signed-off-by: Isis Lovecruft <isis@torproject.org>
Conflicts:
scripts/gen_bridge_descriptors
Again, I had to change a few things due to Matt and I both trying to fix
something, and both simultaneously catching problems that the other person
missed. :)
|
| | |
| |
| |
| |
| | |
(cherry picked from commit 65804cd121edc2e140e1e01d6e9762d5d4c9c2d4)
Signed-off-by: Isis Lovecruft <isis@torproject.org>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Specifically it is the SHA-1 hash of the DER encoding of an ASN.1
RSA public key.
(cherry picked from commit 6b57521a522abaa8f5fdd158708f382293a59e48)
Signed-off-by: Isis Lovecruft <isis@torproject.org>
Conflicts:
scripts/gen_bridge_descriptors
Matt and I both fixed the same bug, but it turns out we were both a tiny bit
wrong, I believe, in different ways: I was improperly PEM-encoding the OR
keys, and wasn't using ASN.1 format. Matt was using a dump of SIDPKey as the
OR bridge's public identity key -- PyOpenSSL has this rather odd API where you
have to dump the public key from the public cert to access it. Also, it's
necessary to base64-encode the digest of the identity key, and strip the '='
character base64 padding.
We *might* still be doing it wrong and missing the DER-encoding step.
|
| | |
| |
| |
| |
| |
| |
| | |
Take a string with 40 characters and add a space after every 4 chars.
(cherry picked from commit 63c7e9ca9c7bf8d397437d5c87dff8f73a759317)
Signed-off-by: Isis Lovecruft <isis@torproject.org>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
TODO: In the future, we will probably want to add some secondary, temporary
HTTPServer which serves a simple "BridgeDB is down for maintenance and will be
back shortly!" page while the descriptors are being parsed.
* FIXES #5232: Import bridges into BridgeDB in a separate thread and database
transaction.
|
| | |
| |
| |
| | |
* ADD a docstring to Main.load().
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|