@@ -155,7 +155,7 @@ def __init__(self, protocol, server_side=None):
155155 method .native_object = _ffi .NULL
156156
157157 if self .native_object == _ffi .NULL :
158- raise MemoryError ("Unnable to allocate context object" )
158+ raise MemoryError ("Unable to allocate context object" )
159159
160160 # verify_mode initialization needs a valid native_object.
161161 self .verify_mode = CERT_NONE
@@ -438,12 +438,12 @@ def __init__(self, sock=None, keyfile=None, certfile=None,
438438 # create the SSL object
439439 self .native_object = _lib .wolfSSL_new (self .context .native_object )
440440 if self .native_object == _ffi .NULL :
441- raise MemoryError ("Unnable to allocate ssl object" )
441+ raise MemoryError ("Unable to allocate ssl object" )
442442
443443 ret = _lib .wolfSSL_set_fd (self .native_object , self ._sock .fileno ())
444444 if ret != _SSL_SUCCESS :
445445 self ._release_native_object ()
446- raise ValueError ("Unnable to set fd to ssl object" )
446+ raise ValueError ("Unable to set fd to ssl object" )
447447
448448 # match domain name / host name if set in context
449449 if server_hostname is not None :
@@ -807,7 +807,7 @@ def getpeercert(self, binary_form=False):
807807 'subjectAltName' : x509 .get_altnames () }
808808
809809 # The following functions expose functionality of the underlying
810- # Socket object. These are also expsed through Python's ssl module
810+ # Socket object. These are also exposed through Python's ssl module
811811 # API and are provided here for compatibility.
812812 def close (self ):
813813 self ._sock .close ()
0 commit comments