README 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. *** Note, Please read ***
  2. CyaSSL takes a different approach to certificate verification than OpenSSL does.
  3. The default policy for the client is to verify the server, this means that if
  4. you don't load CAs to verify the server you'll get a connect error, unable to
  5. verify. It you want to mimic OpenSSL behavior of having SSL_connect succeed
  6. even if verifying the server fails and reducing security you can do this by
  7. calling:
  8. SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, 0);
  9. before calling SSL_new(); Though it's not recommended.
  10. *** end Note ***
  11. CyaSSL Release 1.8.0 (12/23/2010)
  12. Release 1.8.0 for CyaSSL adds bug fixes, x509 v3 CA signed certificate
  13. generation, a C standard library abstraction layer, lower memory use, increased
  14. portability through the os_settings.h file, and the ability to use NTRU cipher
  15. suites when used in conjunction with an NTRU license and library.
  16. The initial CyaSSL manual offering is included in the doc/ directory. For
  17. build instructions and comments about the new features please check the manual.
  18. Please send any comments or questions to support@yassl.com.
  19. Happy Holidays.
  20. ********************* CyaSSL Release 1.6.5 (9/9/2010)
  21. Release 1.6.5 for CyaSSL adds bug fixes and x509 v3 self signed certificate
  22. generation.
  23. For general build instructions see doc/Building_CyaSSL.pdf.
  24. To enable certificate generation support add this option to ./configure
  25. ./configure --enable-certgen
  26. An example is included in ctaocrypt/test/test.c and documentation is provided
  27. in doc/CyaSSL_Extensions_Reference.pdf item 11.
  28. ********************** CyaSSL Release 1.6.0 (8/27/2010)
  29. Release 1.6.0 for CyaSSL adds bug fixes, RIPEMD-160, SHA-512, and RSA key
  30. generation.
  31. For general build instructions see doc/Building_CyaSSL.pdf.
  32. To add RIPEMD-160 support add this option to ./configure
  33. ./configure --enable-ripemd
  34. To add SHA-512 support add this option to ./configure
  35. ./configure --enable-sha512
  36. To add RSA key generation support add this option to ./configure
  37. ./configure --enable-keygen
  38. Please see ctaocrypt/test/test.c for examples and usage.
  39. For Windows, RIPEMD-160 and SHA-512 are enabled by default but key generation is
  40. off by default. To turn key generation on add the define CYASSL_KEY_GEN to
  41. CyaSSL.
  42. ************* CyaSSL Release 1.5.6 (7/28/2010)
  43. Release 1.5.6 for CyaSSL adds bug fixes, compatibility for our JSSE provider,
  44. and a fix for GCC builds on some systems.
  45. For general build instructions see doc/Building_CyaSSL.pdf.
  46. To add AES-NI support add this option to ./configure
  47. ./configure --enable-aesni
  48. You'll need GCC 4.4.3 or later to make use of the assembly.
  49. ************** CyaSSL Release 1.5.4 (7/7/2010)
  50. Release 1.5.4 for CyaSSL adds bug fixes, support for AES-NI, SHA1 speed
  51. improvements from loop unrolling, and support for the Mongoose Web Server.
  52. For general build instructions see doc/Building_CyaSSL.pdf.
  53. To add AES-NI support add this option to ./configure
  54. ./configure --enable-aesni
  55. You'll need GCC 4.4.3 or later to make use of the assembly.
  56. *************** CyaSSL Release 1.5.0 (5/11/2010)
  57. Release 1.5.0 for CyaSSL adds bug fixes, GoAhead WebServer support, sniffer
  58. support, and initial swig interface support.
  59. For general build instructions see doc/Building_CyaSSL.pdf.
  60. To add support for GoAhead WebServer either --enable-opensslExtra or if you
  61. don't want all the features of opensslExtra you can just define GOAHEAD_WS
  62. instead. GOAHEAD_WS can be added to ./configure with CFLAGS=-DGOAHEAD_WS or
  63. you can define it yourself.
  64. To look at the sniffer support please see the sniffertest app in
  65. sslSniffer/sslSnifferTest. Build with --enable-sniffer on *nix or use the
  66. vcproj files on windows. You'll need to have pcap installed on *nix and
  67. WinPcap on windows.
  68. A swig interface file is now located in the swig directory for using Python,
  69. Java, Perl, and others with CyaSSL. This is initial support and experimental,
  70. please send questions or comments to support@yassl.com.
  71. When doing load testing with CyaSSL, on the echoserver example say, the client
  72. machine may run out of tcp ephemeral ports, they will end up in the TIME_WAIT
  73. queue, and can't be reused by default. There are generally two ways to fix
  74. this. 1) Reduce the length sockets remain on the TIME_WAIT queue or 2) Allow
  75. items on the TIME_WAIT queue to be reused.
  76. To reduce the TIME_WAIT length in OS X to 3 seconds (3000 milliseconds)
  77. sudo sysctl -w net.inet.tcp.msl=3000
  78. In Linux
  79. sudo sysctl -w net.ipv4.tcp_tw_reuse=1
  80. allows reuse of sockets in TIME_WAIT
  81. sudo sysctl -w net.ipv4.tcp_tw_recycle=1
  82. works but seems to remove sockets from TIME_WAIT entirely?
  83. sudo sysctl -w net.ipv4.tcp_fin_timeout=1
  84. doen't control TIME_WAIT, it controls FIN_WAIT(2) contrary to some posts
  85. ******************** CyaSSL Release 1.4.0 (2/18/2010)
  86. Release 1.3.0 for CyaSSL adds bug fixes, better multi TLS/SSL version support
  87. through SSLv23_server_method(), and improved documentation in the doc/ folder.
  88. For general build instructions doc/Building_CyaSSL.pdf.
  89. ******************** CyaSSL Release 1.3.0 (1/21/2010)
  90. Release 1.3.0 for CyaSSL adds bug fixes, a potential security problem fix,
  91. better porting support, removal of assert()s, and a complete THREADX port.
  92. For general build instructions see rc1 below.
  93. ******************** CyaSSL Release 1.2.0 (11/2/2009)
  94. Release 1.2.0 for CyaSSL adds bug fixes and session negotiation if first use is
  95. read or write.
  96. For general build instructions see rc1 below.
  97. ******************** CyaSSL Release 1.1.0 (9/2/2009)
  98. Release 1.1.0 for CyaSSL adds bug fixes, a check against malicious session
  99. cache use, support for lighttpd, and TLS 1.2.
  100. To get TLS 1.2 support please use the client and server functions:
  101. SSL_METHOD *TLSv1_2_server_method(void);
  102. SSL_METHOD *TLSv1_2_client_method(void);
  103. CyaSSL was tested against lighttpd 1.4.23. To build CyaSSL for use with
  104. lighttpd use the following commands from the CyaSSL install dir <CyaSSLDir>:
  105. ./configure --disable-shared --enable-opensslExtra --enable-fastmath --without-zlib
  106. make
  107. make openssl-links
  108. Then to build lighttpd with CyaSSL use the following commands from the
  109. lighttpd install dir:
  110. ./configure --with-openssl --with-openssl-includes=<CyaSSLDir>/include --with-openssl-libs=<CyaSSLDir>/lib LDFLAGS=-lm
  111. make
  112. On some systems you may get a linker error about a duplicate symbol for
  113. MD5_Init or other MD5 calls. This seems to be caused by the lighttpd src file
  114. md5.c, which defines MD5_Init(), and is included in liblightcomp_la-md5.o.
  115. When liblightcomp is linked with the SSL_LIBs the linker may complain about
  116. the duplicate symbol. This can be fixed by editing the lighttpd src file md5.c
  117. and adding this line to the beginning of the file:
  118. #if 0
  119. and this line to the end of the file
  120. #endif
  121. Then from the lighttpd src dir do a:
  122. make clean
  123. make
  124. If you get link errors about undefined symbols more than likely the actual
  125. OpenSSL libraries are found by the linker before the CyaSSL openssl-links that
  126. point to the CyaSSL library, causing the linker confusion. This can be fixed
  127. by editing the Makefile in the lighttpd src directory and changing the line:
  128. SSL_LIB = -lssl -lcrypto
  129. to
  130. SSL_LIB = -lcyassl
  131. Then from the lighttpd src dir do a:
  132. make clean
  133. make
  134. This should remove any confusion the linker may be having with missing symbols.
  135. For any questions or concerns please contact support@yassl.com .
  136. For general build instructions see rc1 below.
  137. ******************CyaSSL Release 1.0.6 (8/03/2009)
  138. Release 1.0.6 for CyaSSL adds bug fixes, an improved session cache, and faster
  139. math with a huge code option.
  140. The session cache now defaults to a client mode, also good for embedded servers.
  141. For servers not under heavy load (less than 200 new sessions per minute), define
  142. BIG_SESSION_CACHE. If the server will be under heavy load, define
  143. HUGE_SESSION_CACHE.
  144. There is now a fasthugemath option for configure. This enables fastmath plus
  145. even faster math by greatly increasing the code size of the math library. Use
  146. the benchmark utility to compare public key operations.
  147. For general build instructions see rc1 below.
  148. ******************CyaSSL Release 1.0.3 (5/10/2009)
  149. Release 1.0.3 for CyaSSL adds bug fixes and add increased support for OpenSSL
  150. compatibility when building other applications.
  151. Release 1.0.3 includes an alpha release of DTLS for both client and servers.
  152. This is only for testing purposes at this time. Rebroadcast and reordering
  153. aren't fully implemented at this time but will be for the next release.
  154. For general build instructions see rc1 below.
  155. ******************CyaSSL Release 1.0.2 (4/3/2009)
  156. Release 1.0.2 for CyaSSL adds bug fixes for a couple I/O issues. Some systems
  157. will send a SIGPIPE on socket recv() at any time and this should be handled by
  158. the application by turning off SIGPIPE through setsockopt() or returning from
  159. the handler.
  160. Release 1.0.2 includes an alpha release of DTLS for both client and servers.
  161. This is only for testing purposes at this time. Rebroadcast and reordering
  162. aren't fully implemented at this time but will be for the next release.
  163. For general build instructions see rc1 below.
  164. *****************CyaSSL Release Candidiate 3 rc3-1.0.0 (2/25/2009)
  165. Release Candidate 3 for CyaSSL 1.0.0 adds bug fixes and adds a project file for
  166. iPhone development with Xcode. cyassl-iphone.xcodeproj is located in the root
  167. directory. This release also includes a fix for supporting other
  168. implementations that bundle multiple messages at the record layer, this was
  169. lost when cyassl i/o was re-implemented but is now fixed.
  170. For general build instructions see rc1 below.
  171. *****************CyaSSL Release Candidiate 2 rc2-1.0.0 (1/21/2009)
  172. Release Candidate 2 for CyaSSL 1.0.0 adds bug fixes and adds two new stream
  173. ciphers along with their respective cipher suites. CyaSSL adds support for
  174. HC-128 and RABBIT stream ciphers. The new suites are:
  175. TLS_RSA_WITH_HC_128_CBC_SHA
  176. TLS_RSA_WITH_RABBIT_CBC_SHA
  177. And the corresponding cipher names are
  178. HC128-SHA
  179. RABBIT-SHA
  180. CyaSSL also adds support for building with devkitPro for PPC by changing the
  181. library proper to use libogc. The examples haven't been changed yet but if
  182. there's interest they can be. Here's an example ./configure to build CyaSSL
  183. for devkitPro:
  184. ./configure --disable-shared CC=/pathTo/devkitpro/devkitPPC/bin/powerpc-gekko-gcc --host=ppc --without-zlib --enable-singleThreaded RANLIB=/pathTo/devkitpro/devkitPPC/bin/powerpc-gekko-ranlib CFLAGS="-DDEVKITPRO -DGEKKO"
  185. For linking purposes you'll need
  186. LDFLAGS="-g -mrvl -mcpu=750 -meabi -mhard-float -Wl,-Map,$(notdir $@).map"
  187. For general build instructions see rc1 below.
  188. ********************CyaSSL Release Candidiate 1 rc1-1.0.0 (12/17/2008)
  189. Release Candidate 1 for CyaSSL 1.0.0 contains major internal changes. Several
  190. areas have optimization improvements, less dynamic memory use, and the I/O
  191. strategy has been refactored to allow alternate I/O handling or Library use.
  192. Many thanks to Thierry Fournier for providing these ideas and most of the work.
  193. Because of these changes, this release is only a candidate since some problems
  194. are probably inevitable on some platform with some I/O use. Please report any
  195. problems and we'll try to resolve them as soon as possible. You can contact us
  196. at support@yassl.com or todd@yassl.com.
  197. Using TomsFastMath by passing --enable-fastmath to ./configure now uses assembly
  198. on some platforms. This is new so please report any problems as every compiler,
  199. mode, OS combination hasn't been tested. On ia32 all of the registers need to
  200. be available so be sure to pass these options to CFLAGS:
  201. CFLAGS="-O3 -fomit-frame-pointer"
  202. OS X will also need -mdynamic-no-pic added to CFLAGS
  203. Also if you're building in shared mode for ia32 you'll need to pass options to
  204. LDFLAGS as well on OS X:
  205. LDFLAGS=-Wl,-read_only_relocs,warning
  206. This gives warnings for some symbols but seems to work.
  207. --To build on Linux, Solaris, *BSD, Mac OS X, or Cygwin:
  208. ./configure
  209. make
  210. from the ./testsuite/ directory run ./testsuite
  211. to make a debug build:
  212. ./configure --enable-debug --disable-shared
  213. make
  214. --To build on Win32
  215. Choose (Re)Build All from the project workspace
  216. Run the testsuite program
  217. *************************CyaSSL version 0.9.9 (7/25/2008)
  218. This release of CyaSSL adds bug fixes, Pre-Shared Keys, over-rideable memory
  219. handling, and optionally TomsFastMath. Thanks to Moisés Guimarães for the
  220. work on TomsFastMath.
  221. To optionally use TomsFastMath pass --enable-fastmath to ./configure
  222. Or define USE_FAST_MATH in each project from CyaSSL for MSVC.
  223. Please use the benchmark routine before and after to see the performance
  224. difference, on some platforms the gains will be little but RSA encryption
  225. always seems to be faster. On x86-64 machines with GCC the normal math library
  226. may outperform the fast one when using CFLAGS=-m64 because TomsFastMath can't
  227. yet use -m64 because of GCCs inability to do 128bit division.
  228. **** UPDATE GCC 4.2.1 can now do 128bit division ***
  229. See notes below (0.2.0) for complete build instructions.
  230. ****************CyaSSL version 0.9.8 (5/7/2008)
  231. This release of CyaSSL adds bug fixes, client side Diffie-Hellman, and better
  232. socket handling.
  233. See notes below (0.2.0) for complete build instructions.
  234. ****************CyaSSL version 0.9.6 (1/31/2008)
  235. This release of CyaSSL adds bug fixes, increased session management, and a fix
  236. for gnutls.
  237. See notes below (0.2.0) for complete build instructions.
  238. ****************CyaSSL version 0.9.0 (10/15/2007)
  239. This release of CyaSSL adds bug fixes, MSVC 2005 support, GCC 4.2 support,
  240. IPV6 support and test, and new test certificates.
  241. See notes below (0.2.0) for complete build instructions.
  242. ****************CyaSSL version 0.8.0 (1/10/2007)
  243. This release of CyaSSL adds increased socket support, for non-blocking writes,
  244. connects, and interrupted system calls.
  245. See notes below (0.2.0) for complete build instructions.
  246. ****************CyaSSL version 0.6.3 (10/30/2006)
  247. This release of CyaSSL adds debug logging to stderr to aid in the debugging of
  248. CyaSSL on systems that may not provide the best support.
  249. If CyaSSL is built with debugging support then you need to call
  250. CyaSSL_Debugging_ON() to turn logging on.
  251. On Unix use ./configure --enable-debug
  252. On Windows define DEBUG_CYASSL when building CyaSSL
  253. To turn logging back off call CyaSSL_Debugging_OFF()
  254. See notes below (0.2.0) for complete build instructions.
  255. *****************CyaSSL version 0.6.2 (10/29/2006)
  256. This release of CyaSSL adds TLS 1.1.
  257. Note that CyaSSL has certificate verification on by default, unlike OpenSSL.
  258. To emulate OpenSSL behavior, you must call SSL_CTX_set_verify() with
  259. SSL_VERIFY_NONE. In order to have full security you should never do this,
  260. provide CyaSSL with the proper certificates to eliminate impostors and call
  261. CyaSSL_check_domain_name() to prevent man in the middle attacks.
  262. See notes below (0.2.0) for build instructions.
  263. *****************CyaSSL version 0.6.0 (10/25/2006)
  264. This release of CyaSSL adds more SSL functions, better autoconf, nonblocking
  265. I/O for accept, connect, and read. There is now an --enable-small configure
  266. option that turns off TLS, AES, DES3, HMAC, and ERROR_STRINGS, see configure.in
  267. for the defines. Note that TLS requires HMAC and AES requires TLS.
  268. See notes below (0.2.0) for build instructions.
  269. *****************CyaSSL version 0.5.5 (09/27/2006)
  270. This mini release of CyaSSL adds better input processing through buffered input
  271. and big message support. Added SSL_pending() and some sanity checks on user
  272. settings.
  273. See notes below (0.2.0) for build instructions.
  274. *****************CyaSSL version 0.5.0 (03/27/2006)
  275. This release of CyaSSL adds AES support and minor bug fixes.
  276. See notes below (0.2.0) for build instructions.
  277. *****************CyaSSL version 0.4.0 (03/15/2006)
  278. This release of CyaSSL adds TLSv1 client/server support and libtool.
  279. See notes below for build instructions.
  280. *****************CyaSSL version 0.3.0 (02/26/2006)
  281. This release of CyaSSL adds SSLv3 server support and session resumption.
  282. See notes below for build instructions.
  283. *****************CyaSSL version 0.2.0 (02/19/2006)
  284. This is the first release of CyaSSL and its crypt brother, CTaoCrypt. CyaSSL
  285. is written in ANSI C with the idea of a small code size, footprint, and memory
  286. usage in mind. CTaoCrypt can be as small as 32K, and the current client
  287. version of CyaSSL can be as small as 12K.
  288. The first release of CTaoCrypt supports MD5, SHA-1, 3DES, ARC4, Big Integer
  289. Support, RSA, ASN parsing, and basic x509 (en/de)coding.
  290. The first release of CyaSSL supports normal client RSA mode SSLv3 connections
  291. with support for SHA-1 and MD5 digests. Ciphers include 3DES and RC4.
  292. --To build on Linux, Solaris, *BSD, Mac OS X, or Cygwin:
  293. ./configure
  294. make
  295. from the ./testsuite/ directory run ./testsuite
  296. to make a debug build:
  297. ./configure --enable-debug --disable-shared
  298. make
  299. --To build on Win32
  300. Choose (Re)Build All from the project workspace
  301. Run the testsuite program
  302. *** The next release of CyaSSL will support a server and more OpenSSL
  303. compatibility functions.
  304. Please send questions or comments to todd@yassl.com