From 7b884ad72a1d0e466725be21016f0c95c874ad8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moise=CC=81s=20Guimara=CC=83es?= Date: Tue, 6 Sep 2016 00:31:59 -0300 Subject: [PATCH] removes non-ASCII chars from docs. --- wrapper/python/wolfssl/wolfssl/_exceptions.py | 30 +++++++++---------- wrapper/python/wolfssl/wolfssl/build_ffi.py | 21 ++++--------- 2 files changed, 21 insertions(+), 30 deletions(-) diff --git a/wrapper/python/wolfssl/wolfssl/_exceptions.py b/wrapper/python/wolfssl/wolfssl/_exceptions.py index 0c04bbfab..915d76426 100644 --- a/wrapper/python/wolfssl/wolfssl/_exceptions.py +++ b/wrapper/python/wolfssl/wolfssl/_exceptions.py @@ -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 diff --git a/wrapper/python/wolfssl/wolfssl/build_ffi.py b/wrapper/python/wolfssl/wolfssl/build_ffi.py index 4f5ca8e00..0fed4feb8 100644 --- a/wrapper/python/wolfssl/wolfssl/build_ffi.py +++ b/wrapper/python/wolfssl/wolfssl/build_ffi.py @@ -26,7 +26,6 @@ ffi = FFI() ffi.set_source("wolfssl._ffi", """ #include - #include """, 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); """ )