Author: Alexander Ksenofontov
License: MIT
All right reserved
You may use openssl with libev (minimalistic idea)
See example folder.
Project is using some socket wrapper only to simplify unitests and examples.
You may use your own wrapers for your projects.
-
Use git to clone.
-
Load submodules
'git submodule init'
'git submodule update' -
Build 3th libraries
a. cd 3th/
b. run ./build_openssl.bash ( ATT! you need to enter root password to install 'libtext-template-perl')
You may install it outside script by running sudo apt-get install libtext-template-perl and commenting appropriate string in script
c. run ./build_googletest.bash to build google test
d. run ./build_libev.bash to build libev -
Use cmake to build
a. run mkdir any_location_you_want
b. run cd any_location_you_want
c. run cmake absolute_or_relative_path_to_source_location
d. run make
You will get two libraries
libsparrow-base.a - basic classes
libsparrow-ssl.a - ssl classes
for server
./server -c absolute_or_relative_path_to_source_location/.rsa/server.crt -k absolute_or_relative_path_to_source_location/.rsa/server.key
( see file example/main_server.cpp for detail)
for client
./client
src/base - basic classes
src/ssl - ssl wrappers
utest/base - unitests for basic classes
utest/ssl - unitests for ssl wrappers
ftest/auxillary - auxillary classes for funtional tests (tcp,.. etc)
ftest - funtional tests itself(client and server modules)
example/auxillary - auxillary classes for samples (tcp,.. etc)
ftest - example itself(client and server modules)