forked from wolfSSL/wolfssl
removes non-ASCII chars from docs.
This commit is contained in:
@@ -22,56 +22,56 @@ from socket import error as socket_error
|
||||
|
||||
|
||||
class SSLError(socket_error):
|
||||
'''
|
||||
"""
|
||||
Raised to signal an error from the wolfSSL's SSL/TLS library. This signifies
|
||||
some problem in the higher-level encryption and authentication layer that’s
|
||||
some problem in the higher-level encryption and authentication layer that's
|
||||
superimposed on the underlying network connection. This error is a subtype
|
||||
of socket.error, which in turn is a subtype of IOError. The error code and
|
||||
message of SSLError instances are provided by the wolfSSL library.
|
||||
'''
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class SSLZeroReturnError(SSLError):
|
||||
'''
|
||||
"""
|
||||
A subclass of SSLError raised when trying to read or write and the SSL
|
||||
connection has been closed cleanly. Note that this doesn’t mean that the
|
||||
connection has been closed cleanly. Note that this doesn't mean that the
|
||||
underlying transport (read TCP) has been closed.
|
||||
'''
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class SSLWantReadError(SSLError):
|
||||
'''
|
||||
"""
|
||||
A subclass of SSLError raised by a non-blocking SSL socket when trying to
|
||||
read or write data, but more data needs to be received on the underlying TCP
|
||||
transport before the request can be fulfilled.
|
||||
'''
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class SSLWantWriteError(SSLError):
|
||||
'''
|
||||
"""
|
||||
A subclass of SSLError raised by a non-blocking SSL socket when trying to
|
||||
read or write data, but more data needs to be sent on the underlying TCP
|
||||
transport before the request can be fulfilled.
|
||||
'''
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class SSLSyscallError(SSLError):
|
||||
'''
|
||||
"""
|
||||
A subclass of SSLError raised when a system error was encountered while
|
||||
trying to fulfill an operation on a SSL socket. Unfortunately, there is no
|
||||
easy way to inspect the original errno number.
|
||||
'''
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class SSLEOFError(SSLError):
|
||||
'''
|
||||
"""
|
||||
A subclass of SSLError raised when the SSL connection has been terminated
|
||||
abruptly. Generally, you shouldn’t try to reuse the underlying transport
|
||||
abruptly. Generally, you shouldn't try to reuse the underlying transport
|
||||
when this error is encountered.
|
||||
'''
|
||||
"""
|
||||
pass
|
||||
|
@@ -26,7 +26,6 @@ ffi = FFI()
|
||||
ffi.set_source("wolfssl._ffi",
|
||||
"""
|
||||
#include <wolfssl/options.h>
|
||||
|
||||
#include <wolfssl/ssl.h>
|
||||
""",
|
||||
include_dirs=["/usr/local/include"],
|
||||
@@ -39,20 +38,12 @@ ffi.cdef(
|
||||
typedef unsigned char byte;
|
||||
typedef unsigned int word32;
|
||||
|
||||
typedef struct { ...; } WOLFSSL_METHOD;
|
||||
typedef struct { ...; } WOLFSSL_CTX;
|
||||
typedef struct { ...; } WOLFSSL;
|
||||
|
||||
WOLFSSL_METHOD* wolfSSLv23_client_method(void);
|
||||
WOLFSSL_METHOD* wolfSSLv23_server_method(void);
|
||||
WOLFSSL_METHOD* wolfSSLv3_server_method(void);
|
||||
WOLFSSL_METHOD* wolfSSLv3_client_method(void);
|
||||
WOLFSSL_METHOD* wolfTLSv1_server_method(void);
|
||||
WOLFSSL_METHOD* wolfTLSv1_client_method(void);
|
||||
WOLFSSL_METHOD* wolfTLSv1_1_server_method(void);
|
||||
WOLFSSL_METHOD* wolfTLSv1_1_client_method(void);
|
||||
WOLFSSL_METHOD* wolfTLSv1_2_server_method(void);
|
||||
WOLFSSL_METHOD* wolfTLSv1_2_client_method(void);
|
||||
void* wolfTLSv1_server_method(void);
|
||||
void* wolfTLSv1_client_method(void);
|
||||
void* wolfTLSv1_1_server_method(void);
|
||||
void* wolfTLSv1_1_client_method(void);
|
||||
void* wolfTLSv1_2_server_method(void);
|
||||
void* wolfTLSv1_2_client_method(void);
|
||||
"""
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user