-
Committer:
Joe Orton
-
Date:
2010-04-20 15:31:37 UTC
-
Revision ID:
jorton@apache.org-20100420153137-mjtfi93na6lqn3k6
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.