I have a library that handles the connection between an http client and the webserver.
I would like to intercept the http connections to see the server the user is trying to reach.
In many situations the clients tries to connect to an https servers/resources, so I would like to intercept the stream and inspect the interior to extract the server the user is trying to access. There is an extension in the tls protocol v1.2 that allows this.
So the questions, is there any library (including openssl) that allows tls parsing without using any socket at all? I would like to use just the parser to extract the information, pretty much in a similar way wireshark does.
Thanks in advance. Martin
EDIT I have found a proxy implementation that does exactly what I wanted to do.