diff --git a/wrapper/python/wolfcrypt/.gitignore b/wrapper/python/wolfcrypt/.gitignore index 421703396..5e6f6f9bd 100644 --- a/wrapper/python/wolfcrypt/.gitignore +++ b/wrapper/python/wolfcrypt/.gitignore @@ -13,3 +13,6 @@ dist/ .tox/ # Sphinx documentation docs/_build/ + +# Virtual env +.env diff --git a/wrapper/python/wolfssl/wolfssl/build_ffi.py b/wrapper/python/wolfssl/wolfssl/build_ffi.py index 55cf3431f..10f54e0b5 100644 --- a/wrapper/python/wolfssl/wolfssl/build_ffi.py +++ b/wrapper/python/wolfssl/wolfssl/build_ffi.py @@ -40,15 +40,19 @@ ffi.cdef( typedef unsigned char byte; typedef unsigned int word32; - void wolfSSL_Free(void *ptr, void* heap, int type); + void wolfSSL_Free(void*, void*, int); void* wolfSSLv23_server_method(void); void* wolfSSLv23_client_method(void); void* wolfTLSv1_2_server_method(void); void* wolfTLSv1_2_client_method(void); - void* wolfSSL_CTX_new(void* method); - void wolfSSL_CTX_free(void* ctx); + void* wolfSSL_CTX_new(void*); + void wolfSSL_CTX_free(void*); + + int wolfSSL_CTX_use_PrivateKey_file(void*, const char*, int); + int wolfSSL_CTX_load_verify_locations(void*, const char*, const char*); + int wolfSSL_CTX_use_certificate_chain_file(void*, const char *); """ )