We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6e405 commit 3c38346Copy full SHA for 3c38346
1 file changed
src/wolfssl/_build_ffi.py
@@ -28,8 +28,10 @@
28
29
# open <wolfssl/options.h> header to parse for #define's
30
# This will throw a FileNotFoundError if not able to find options.h
31
-optionsHeader = wolfssl_inc_path() + "/wolfssl/options.h"
32
-optionsHeaderStr = open(optionsHeader, 'r').read()
+optionsHeaderPath = wolfssl_inc_path() + "/wolfssl/options.h"
+optionsHeader = open(optionsHeaderPath, 'r')
33
+optionsHeaderStr = optionsHeader.read()
34
+optionsHeader.close()
35
36
# require HAVE_SNI (--enable-sni) in native lib
37
if '#define HAVE_SNI' not in optionsHeaderStr:
0 commit comments