Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Botan SSL/TLS example or starting point

Tags:

c++

ssl

botan

I am experimenting with the Botan library to establish a SSL/TLS connection with a private certificate. Unfortunately I cannot found any actual sample code using the new TLS::Client class. The documentation is barely some more text to the doxygen doc. Is there any project out there using Botan where I can see, how a connection can established? I am agnostic to which compiler or OS is used as my project has to be platform independent anyway.

like image 721
Martin Schlott Avatar asked Apr 28 '15 17:04

Martin Schlott


1 Answers

The best open source examples for using the api at this point are probably the uses by the botan command line tool in src/cmd/tls_client.cpp, and also src/cmd/tls_proxy.cpp which is server side but additionally demonstrates how to tie into asio.

like image 57
Jack Lloyd Avatar answered Oct 13 '22 00:10

Jack Lloyd