summaryrefslogtreecommitdiff
path: root/release/src/router/cyassl/swig/README
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-01-09 09:46:07 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-01-09 09:46:07 +0100
commit5ac03256db0fe4ca7e3ad1117d096c3a76368b76 (patch)
treec767808892cc7f013b87174ad3b31c23508b5fa5 /release/src/router/cyassl/swig/README
parentd89b5dc1509c66ccbed1dbc7ed0e09264ea3179e (diff)
downloadtomato-5ac03256db0fe4ca7e3ad1117d096c3a76368b76.tar.gz
tomato-5ac03256db0fe4ca7e3ad1117d096c3a76368b76.tar.bz2
backported CyaSSL/OpenSSL support for internal webserver instead of MatrixSSL
Diffstat (limited to 'release/src/router/cyassl/swig/README')
-rw-r--r--release/src/router/cyassl/swig/README44
1 files changed, 44 insertions, 0 deletions
diff --git a/release/src/router/cyassl/swig/README b/release/src/router/cyassl/swig/README
new file mode 100644
index 00000000..302bc6be
--- /dev/null
+++ b/release/src/router/cyassl/swig/README
@@ -0,0 +1,44 @@
+
+
+Initial swig interface file
+
+Please send questions to support@yassl.com
+
+
+
+**Python Support**
+
+ For Linux, OS X, or *nix
+
+1) build CyaSSL with fpic on Linux, not needed on OS X
+ ./configure --disable-shared CFLAGS=-fpic
+ make
+ sudo make install
+
+
+2) start the example echoserver from the examples/echoserver directory
+ ./echoserver
+
+3) run ./PtyonBuild.sh from this directory it will
+ a) build the swig wrapper file
+ b) compile the swig wrapper and cyassl wrapper files
+ c) place them into a cyassl shared library for python
+ d) run runme.py which will connect to the CyaSSL echo server, write a
+ string, then read the result and output it
+
+
+ Windows only
+
+1) Make sure the install path to cyassl doesn't have any spaces anywhere in the
+ directory path because swig doesn't like that
+2) Have python for Windows installed, note install directory
+3) Have swigwin installed, note install directory
+4) Make sure swigwin install direcotry is added to PATH env. variable
+5) Make sure env. variables PYTHON_INCLUDE and PYTHON_LIB are set correctly e.g.
+ PYTHON_INCLUE="c:\Python26\include"
+ PYTHON_LIB="c:\Python26\libs\python26.lib"
+6) Build python_cyassl in Release mode only, Debug build fails to find a debug
+ python library that isn't included by default
+7) The outputs _cyassl.pyd and cyassl.py are the cyassl import library
+8) Can now run python runme.py from the swig directory
+