Merge lp://staging/~jorton/pyopenssl/trust into lp://staging/~exarkun/pyopenssl/trunk

Proposed by Joe Orton
Status: Needs review
Proposed branch: lp://staging/~jorton/pyopenssl/trust
Merge into: lp://staging/~exarkun/pyopenssl/trunk
Diff against target: 417 lines (+338/-0)
4 files modified
.bzrignore (+2/-0)
src/crypto/crypto.c (+117/-0)
src/crypto/x509.c (+169/-0)
test/test_crypto.py (+50/-0)
To merge this branch: bzr merge lp://staging/~jorton/pyopenssl/trust
Reviewer Review Type Date Requested Status
Jean-Paul Calderone Pending
Review via email: mp+27232@code.staging.launchpad.net

Description of the change

Add support for loading and dumping trusted certificates.

Expose trust attributes in the API.

To post a comment you must log in.

Unmerged revisions

131. By Joe Orton

Add support for simple trusted certificate handling, and manipulation
of a certificates trust bits:

* src/crypto/crypto.c (crypto_load_trusted_certificate,
  crypto_dump_trusted_certificate): New methods.
  (initcrypto): Add TRUST_* string constants.

* src/crypto/x509.c (crypto_X509_set_trusted_uses,
  crypto_X509_get_trusted_uses, crypto_X509_get_rejected_uses,
  crypto_X509_set_rejected_uses): New methods.
  (crypto_set_trust_or_reject, crypto_X509_stack_to_list):
  New utility function.

* test/test_crypto.py (FunctionTests.test_trusted_certificates):
  New test case.

130. By Joe Orton

* .bzrignore: Ignore test output.

129. By Joe Orton

* .bzrignore: New file; ignore build directory.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: