Sebastien Awwad
d98152bc9d
Remove some unnecessary try-reraise constructions; thanks, pylint!
...
These changes simplify logic, removing some try/except structures
that were unnecessary and potentially confusing, and get us back
to passing pylint's test.
pylint 2.0.0 adds try-except-raise tests, to catch immediate
re-raising after catching an exception, outside of some special
cases. See this GitHub comment for more info:
https://github.com/theupdateframework/tuf/pull/770#issuecomment-412993992
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2018-08-21 14:59:29 -04:00
Vladimir Diaz
e7cff3bba8
Fix bug in sig.py's get_signature_status
...
get_signature_status() incorrectly uses the role's threshold in roledb instead of using the one supplied in the 'threshold' argument to the function
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-26 11:39:53 -04:00
Vladimir Diaz
8f65fa4154
Rename license files in modules
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-05 11:31:19 -05:00
Vladimir Diaz
3894bc4e31
Add copyright and license info to module files
...
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:23:38 -05:00
Vladimir Diaz
d6ab5b3abb
Resolve pylint warning for sig.py
...
* Remove unused variable
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-17 16:02:52 -05:00
Vladimir Diaz
5c17b59fc2
Incorporate securesystemslib changes into sig.py
2017-08-23 10:54:21 -04:00
Vladimir Diaz
338c27c76c
remove 'method' from sig.py
2017-08-03 11:56:11 -04:00
Vladimir Diaz
e5792a0cb2
Catch correct tuf.exceptions.UnknownRoleError
...
sig.get_signature_status() was incorrectly raising securesystemslib.exceptions.UnknownRoleError
2017-07-13 15:37:52 -04:00
Vladimir Diaz
5cdb0a27d8
Fix remaining unit test failures for repository_tool.py
...
Update repository_lib.py to support multiple repositories (TODO: fix remaining unit tests failures for this module)
2017-02-08 11:56:17 -05:00
Vladimir Diaz
94bb9d6d9f
Fix import statements in sig.py and test_sig.py
2017-01-11 12:23:21 -05:00
Vladimir Diaz
f9660b4797
More import statementment replacements to various modules
2017-01-10 17:05:12 -05:00
Vladimir Diaz
1c242bdb38
Replace import statements in sig.py
2017-01-10 10:44:07 -05:00
Vladimir Diaz
bea840f4ab
Ensure the expected formats.py is imported in the remaining modules
2016-11-09 15:35:36 -05:00
Artiom Baloian
299ff68edd
Now crypto related files are in ssl_crypto and ssl_commons
2016-11-02 17:44:32 -04:00
Artiom Baloian
812a85c393
Finish splitinf formats.py file, now there is formats.py for commons
...
and tufformats which is TuF specific
2016-10-31 20:02:29 -04:00
Artiom Baloian
b07d9a5d0f
Move some part of tufformats into the common formats
2016-10-31 19:04:14 -04:00
Artiom Baloian
8247a02737
Moved TuF exceptions and schem into the ssl_commons
2016-10-31 11:58:05 -04:00
Artiom Baloian
7098cdbc3a
Move _vendor dir and split formats into the formats and tufformats
2016-10-28 18:37:28 -04:00
Vladimir Diaz
d6b13cd1f2
Cover remaining code coverage for sig.py and edit comments
2016-10-25 11:49:58 -04:00
Vladimir Diaz
8882dc5b7b
Merge branch 'root-versioning' of https://github.com/ecordell/tuf into ecordell-root-versioning
...
Conflicts:
tests/test_key_revocation.py
tests/test_replay_attack.py
tests/test_repository_tool.py
tests/test_updater.py
tuf/formats.py
tuf/repository_lib.py
2016-10-17 15:57:48 -04:00
Evan Cordell
a11709000d
Add root versioning for root key rotation
2016-09-19 15:18:20 -04:00
Vladimir Diaz
e0a4f18223
Improve code coverage
2016-07-21 10:28:46 -04:00
Vladimir Diaz
e072cd9961
Verify non-None role name supplied to tuf.sig.get_signature_status()
2016-07-01 13:26:46 -04:00
Vladimir Diaz
1bf5aa2396
Add repository_name parameters to sig.py
2016-05-16 14:26:38 -04:00
Vladimir Diaz
e3a1544070
Begin implementation changes to address issue with a global role and key database
2016-05-06 12:13:57 -04:00
vladdd
b8578cfd37
Minor cosmetic edits to sig.py and util.py.
2014-06-14 20:31:21 -04:00
vladdd
c5fd17ab3e
Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop
...
Conflicts:
tests/test_hash.py
tests/test_keydb.py
tuf/formats.py
tuf/keydb.py
tuf/repository_tool.py
2014-05-10 20:26:06 -04:00
Vladimir Diaz
d831187949
Improve test coverage.
2014-05-01 12:59:34 -04:00
Vladimir Diaz
ab95a4b3aa
[WIP] Python 2+3 support.
...
Python 2+3 unicode.
libraries.
The following modules (and their tests) work in PY2.7+3.3:
keydb, hash, formats, mirrors
2014-04-29 14:27:34 -04:00
vladdd
5f94d5be0d
Support ISO 8601, vendor iso8601, clean codebase.
2014-04-19 14:27:53 -04:00
Vladimir Diaz
009ddd9f37
Rename top-level role and functions of repository_tool.py. Update documentation and diagram.
...
add_key() -> add_verification_key()
remove_key() -> remove_verification_key()
release.json -> snapshot.json
Update repository_tool-diagram.png
Update README following the renamed functions and release role changes.
Minor edits, such as removing lint left over from a previous merge conflict.
2014-01-29 11:26:56 -05:00
Vladimir Diaz
d27543258e
Update libtuf.py documentation and address issues #143 and #144
...
Add support for encrypted (and public ed25519 keys) TUF key files.
Add support for ed25519 keys, signatures, and key files in libtuf.py.
Update libtuf.py diagram.
Move canonical encoding operations to the create and verify key functions.
2013-12-16 08:45:40 -05:00
vladdd
4c866bc384
Continue configurable crypto design changes
...
Add new schema to formats.py and simplify input validation in keys.py
2013-10-08 13:32:07 -04:00
vladdd
5622e0c622
Commence configurable crypto changes
...
Refactored the majority of affected modules. Added optimized version of the reference implementation of ed25519.
2013-10-08 13:09:59 -04:00
vladdd
3537917015
Update the unit tests affected by the design change to log.py
2013-08-15 14:33:35 -04:00
vladdd
abf0349b05
Move all files up one directory from 'src/'.
2013-02-10 21:38:06 -05:00