aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-11-01 00:33:07 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-11-01 00:33:07 -0400
commit19e685bec7645af212503ec46a5301e9486331a6 (patch)
tree17c59403a8d258b863735588d663e53ba1f2463a /src
parent1a13a5ffccbc41f3b615016397e9d9aed6e61d59 (diff)
downloadcryptography-19e685bec7645af212503ec46a5301e9486331a6.tar.gz
cryptography-19e685bec7645af212503ec46a5301e9486331a6.tar.bz2
cryptography-19e685bec7645af212503ec46a5301e9486331a6.zip
corrected a few typos in comments
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/backend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py
index 8e302a99..68731032 100644
--- a/src/cryptography/hazmat/backends/openssl/backend.py
+++ b/src/cryptography/hazmat/backends/openssl/backend.py
@@ -60,7 +60,7 @@ _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
+ 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()