We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81c839 commit e1ede23Copy full SHA for e1ede23
2 files changed
wolfssl/__init__.py
@@ -152,7 +152,9 @@ class SSLContext(object):
152
"""
153
154
def __init__(self, protocol, server_side=None):
155
- _lib.wolfSSL_Init()
+ if _lib.wolfSSL_Init() != _SSL_SUCCESS:
156
+ raise RuntimeError(
157
+ "wolfSSL library initialization failed")
158
method = _WolfSSLMethod(protocol, server_side)
159
160
self.protocol = protocol
wolfssl/_build_ffi.py
@@ -474,7 +474,7 @@ def generate_libwolfssl():
474
/*
475
* SSL/TLS Session functions
476
*/
477
- void wolfSSL_Init();
+ int wolfSSL_Init(void);
478
WOLFSSL* wolfSSL_new(WOLFSSL_CTX*);
479
void wolfSSL_free(WOLFSSL*);
480
0 commit comments