]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/WolfSSL/swig/README
Update WolfSSL library to the latest version.
[freertos] / FreeRTOS-Plus / Source / WolfSSL / swig / README
1
2
3 Initial swig interface file
4
5 Please send questions to support@wolfssl.com
6
7
8
9 **Python Support**
10
11     For Linux, OS X, or *nix
12
13 1) build wolfSSL with fpic on Linux, not needed on OS X
14     ./configure --disable-shared CFLAGS=-fpic
15     make
16     sudo make install
17
18
19 2) start the example server from the root directory
20     ./examples/server/server -d
21
22 3) run ./PythonBuild.sh from this directory it will
23     a) build the swig wrapper file
24     b) compile the swig wrapper and wolfssl wrapper files
25     c) place them into a wolfssl shared library for python
26     d) run runme.py which will connect to the wolfSSL server, write a
27        string, then read the result and output it
28
29
30     Windows only
31
32 1) Make sure the install path to wolfssl doesn't have any spaces anywhere in the
33    directory path because swig doesn't like that
34 2) Have python for Windows installed, note install directory
35 3) Have swigwin installed, note install directory
36 4) Make sure swigwin install direcotry is added to PATH env. variable
37 5) Make sure env. variables PYTHON_INCLUDE and PYTHON_LIB are set correctly e.g.
38     PYTHON_INCLUE="c:\Python26\include"
39     PYTHON_LIB="c:\Python26\libs\python26.lib"
40 6) Build python_wolfssl in Release mode only, Debug build fails to find a debug
41     python library that isn't included by default
42 7) The outputs _wolfssl.pyd and wolfssl.py are the wolfssl import library
43 8) Can now run python runme.py from the swig directory
44