Skip to content

Review and update Pull Request #238.#239

Merged
vladimir-v-diaz merged 4 commits intotheupdateframework:developfrom
vladimir-v-diaz:develop
Jul 18, 2014
Merged

Review and update Pull Request #238.#239
vladimir-v-diaz merged 4 commits intotheupdateframework:developfrom
vladimir-v-diaz:develop

Conversation

@vladimir-v-diaz
Copy link
Copy Markdown
Contributor

  • Add test_formats_rsakey_from_pem() test case and test condition for improperly formatted PEM.
  • Add test condition to verify trailing white space is removed and matches the expected PEM format generated
    internally. Public PEMs generated externally (with the expected trailing newline) was not previously considered.
  • re.sub() with the 'flags' keyword argument caused type error in Python 2.6. Converted PEM validation to use index() to address issue above.
  • Raise specific exception for missing header or missing footer.
  • Check footer follows header.

Thanks @meskio for the pull request, and for supplying the scripts / PEM files to test.

meskio and others added 4 commits July 17, 2014 13:37
A change of line or any other character outside the public key makes
changes the keyid and breaks the behaviour of TUF. Remove everything
before '-----BEGIN PUBLIC KEY-----' and after
'-----END PUBLIC KEY-----'.
re.sub() with the 'flags' keyword argument caused type error in Python 2.6.
Converted PEM validation to use index() to address issue above.
Raise specific exception depending on missing header / footer.
Check footer follows header.
Add test_formats_rsakey_from_pem() test case and test conditions for improperly formatted PEM.
Add test condition to verify trailing whitespace is removed and matches the expected PEM format generated
internally.  Public PEMs generated externally (with the expected trailing newline) was not previously considered.
vladimir-v-diaz added a commit that referenced this pull request Jul 18, 2014
@vladimir-v-diaz vladimir-v-diaz merged commit d7bc328 into theupdateframework:develop Jul 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants