README 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Initial swig interface file
  2. Please send questions to support@yassl.com
  3. **Python Support**
  4. For Linux, OS X, or *nix
  5. 1) build CyaSSL with fpic on Linux, not needed on OS X
  6. ./configure --disable-shared CFLAGS=-fpic
  7. make
  8. sudo make install
  9. 2) start the example echoserver from the examples/echoserver directory
  10. ./echoserver
  11. 3) run ./PtyonBuild.sh from this directory it will
  12. a) build the swig wrapper file
  13. b) compile the swig wrapper and cyassl wrapper files
  14. c) place them into a cyassl shared library for python
  15. d) run runme.py which will connect to the CyaSSL echo server, write a
  16. string, then read the result and output it
  17. Windows only
  18. 1) Make sure the install path to cyassl doesn't have any spaces anywhere in the
  19. directory path because swig doesn't like that
  20. 2) Have python for Windows installed, note install directory
  21. 3) Have swigwin installed, note install directory
  22. 4) Make sure swigwin install direcotry is added to PATH env. variable
  23. 5) Make sure env. variables PYTHON_INCLUDE and PYTHON_LIB are set correctly e.g.
  24. PYTHON_INCLUE="c:\Python26\include"
  25. PYTHON_LIB="c:\Python26\libs\python26.lib"
  26. 6) Build python_cyassl in Release mode only, Debug build fails to find a debug
  27. python library that isn't included by default
  28. 7) The outputs _cyassl.pyd and cyassl.py are the cyassl import library
  29. 8) Can now run python runme.py from the swig directory