cryptography/tests
Paul Kehrer ed32105be8 Backwards incompatible change to DNSName (#3951)
* Backwards incompatible change to DNSName

During this release cycle we decided to officially deprecate passing
U-labels to our GeneralName constructors. At first we tried changing
this in a purely backwards compatible way but get_values_for_type made
that untenable. This PR modifies DNSName to take three different types.
U-label strings (which raises a deprecation warning), A-label strings
(the new preferred type), and bytes (which are assumed to be decodable
to unicode strings). The latter, while supported, is primarily intended
for use by our parser and allows us to return the actual encoded data in
a certificate even if it has not been properly encoded to A-label before
the certificate is created. (Of course, if the certificate contains
invalid utf8 sequences this will still fail, but let's handle one
catastrophic failure at a time).

* coverage

* don't delete that asterisk from a test. it does things.

* no bytes in DNSName. Private constructor for bypassing validation

* test unicode in dnsname (yuck)

* fix docs

* empty commit, you disappoint me codecov

* CI is the worst
2017-10-10 20:11:44 -04:00
..
hazmat Add support for AES XTS (#3900) 2017-10-01 22:03:20 -04:00
hypothesis Raise padding block_size limit to what is allowed by the specs. (#3108) 2016-11-15 09:56:02 +08:00
x509 Backwards incompatible change to DNSName (#3951) 2017-10-10 20:11:44 -04:00
__init__.py Update the license header for every source file, as well as the documentation. 2014-11-16 09:08:42 -08:00
conftest.py call check_backend_support directly from backend fixture (#3666) 2017-06-03 16:02:50 -10:00
doubles.py standard future import 2016-03-06 09:54:23 -05:00
test_cryptography_utils.py Fixed #3747 -- cache extensions on x.509 objects (#3769) 2017-07-08 20:50:01 -05:00
test_fernet.py pass bytes to modes/algorithms like we should 2016-03-07 08:41:51 -04:30
test_interfaces.py Add a register_interface_if decorator. (#3120) 2016-08-29 08:21:28 -04:00
test_utils.py implement CCM vector parser (#3699) 2017-06-21 07:39:20 -04:00
test_warnings.py Test deleting deprecated attributes. 2016-03-21 11:38:20 +00:00
utils.py implement CCM vector parser (#3699) 2017-06-21 07:39:20 -04:00