When one wants to write an application that uses some of the features of Tor in a secure manner it would be helpful if there was a library to do so.
I wonder if there is a library that provides features like the ones the Tor Browser Bundle implements, such as:
- Only connect through Tor (no way of connecting through other means and thereby leaking data)
- Using Unix Sockets instead of TCP for added security
- Providing an interface to Tor's feature to create individual circuits on demand (like Tor Browsers does with tabs)
Maybe some more things, especially in regards to Hidden Services (like setting them up) or the Control Port (directly accessing its functionality). I know there is Stem, but it is written in Python and I think a C library would allow more users to actually make use of it, be it via language bindings or directly.