shanemhansen / gossl

Go bindings to the openssl library
MIT License
33 stars 5 forks source link

add http/tls skeleton pkgs #18

Closed runcom closed 9 years ago

runcom commented 9 years ago

This PR adds two new pkgs: http and tls

http contains a basic POC of an http.RoundTripper implementation backed by OpenSSL. It's mean just as a poc because I plan to implement and abstract a new SSLConn which will implement Go's net.Conn interface by using an SSL BIO object which will include a net.Conn (for this I moved bio files to its own pkg)

tls is just a skeleton to guide me though the implementation and abstraction of all dependent objects (C.SSL_CTX, C.SSL, C.BIO etc etc) of a new SSLConn net.Conn implementation.

/cc @vbatts

feedback always welcome