Skip to content

Botan::TLS::Server, TLS::Client VS. boost::asio, boost::beast #2994

Answered by randombit
fasxmut asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not familiar with the Beast library so cannot comment there.

With regards to TLS Botan does not implement the network layer. The TLS::Server and TLS::Client classes provide a wrapper around some other network API which you as the application developer must provide. This is done by implementing various functions in TLS::Callbacks for example tls_emit_data is called when the TLS layer needs to send something to the network. At that point it is up to the application and it might well use something like asio to accomplish that.

It may clear things up to look at some of the command line utility implementations like tls_http_server which use asio to access the network layer.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@reneme
Comment options

reneme Jul 20, 2022
Collaborator

@reneme
Comment options

reneme Nov 5, 2023
Collaborator

Answer selected by fasxmut
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants