diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-11-01 22:33:28 +0900 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-11-01 22:33:28 +0900 |
commit | a335867bb42995e0537fa1ae13a955b618a98ab3 (patch) | |
tree | 2c9f0ac84892721f22f3b4813e6da7c0acb10c29 | |
parent | a22d52b99f0587ca653087854e1da5ff72a19583 (diff) | |
parent | 62c126f194199360491cd0e7f1b3fbd6b040a41b (diff) | |
download | cryptography-a335867bb42995e0537fa1ae13a955b618a98ab3.tar.gz cryptography-a335867bb42995e0537fa1ae13a955b618a98ab3.tar.bz2 cryptography-a335867bb42995e0537fa1ae13a955b618a98ab3.zip |
Merge pull request #2461 from alex/typos
corrected a few typos in comments
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index 8e302a99..8cf67551 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -60,8 +60,8 @@ _MemoryBIO = collections.namedtuple("_MemoryBIO", ["bio", "char_ptr"]) def _encode_asn1_int(backend, x): """ - Converts a python integer to a ASN1_INTEGER. The returned ASN1_INTEGER will - not be garbage collected (to support adding them to structs that take + Converts a python integer to an ASN1_INTEGER. The returned ASN1_INTEGER + will not be garbage collected (to support adding them to structs that take ownership of the object). Be sure to register it for GC if it will be discarded after use. @@ -72,7 +72,7 @@ def _encode_asn1_int(backend, x): i = backend._int_to_bn(x) i = backend._ffi.gc(i, backend._lib.BN_free) - # Wrap in a ASN.1 integer. Don't GC -- as documented. + # Wrap in an ASN.1 integer. Don't GC -- as documented. i = backend._lib.BN_to_ASN1_INTEGER(i, backend._ffi.NULL) backend.openssl_assert(i != backend._ffi.NULL) return i @@ -97,7 +97,7 @@ def _encode_asn1_str(backend, data, length): def _encode_asn1_utf8_str(backend, string): """ Create an ASN1_UTF8STRING from a Python unicode string. - This object will be a ASN1_STRING with UTF8 type in OpenSSL and + This object will be an ASN1_STRING with UTF8 type in OpenSSL and can be decoded with ASN1_STRING_to_UTF8. """ s = backend._lib.ASN1_UTF8STRING_new() |