diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-10-27 11:35:37 +0900 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-10-27 11:35:37 +0900 |
commit | 8fdd1d3a00ea2c1de04a214314e20a39009c7c29 (patch) | |
tree | 261e2a6e7a73437ac6d5097e4335233f79443df5 | |
parent | 225a08f9e4b507493744f566b8f0a8bf2a06e82e (diff) | |
download | cryptography-8fdd1d3a00ea2c1de04a214314e20a39009c7c29.tar.gz cryptography-8fdd1d3a00ea2c1de04a214314e20a39009c7c29.tar.bz2 cryptography-8fdd1d3a00ea2c1de04a214314e20a39009c7c29.zip |
update comment to include a bit more detail
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index db7022e5..775430d4 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -120,8 +120,8 @@ def _encode_name(backend, attributes): value = attribute.value.encode('utf8') obj = _txt2obj_gc(backend, attribute.oid.dotted_string) if attribute.oid == NameOID.COUNTRY_NAME: - # Per RFC5280 countryName should be encoded as PrintableString, - # not UTF8String + # Per RFC5280 Appendix A.1 countryName should be encoded as + # PrintableString, not UTF8String type = backend._lib.MBSTRING_ASC else: type = backend._lib.MBSTRING_UTF8 |