Last active
September 26, 2018 21:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tcp = TCPSocket.new(host, port) | |
entropy = PolarSSL::Entropy.new | |
ctr_drbg = PolarSSL::CtrDrbg.new entropy | |
s_ssl = PolarSSL::SSL.new | |
s_ssl.set_endpoint PolarSSL::SSL::SSL_IS_CLIENT | |
s_ssl.set_rng ctr_drbg | |
s_ssl.set_socket tcp | |
s_ssl.handshake | |
http = SimpleHttp.new("https", endpoint) | |
http.socket = s_ssl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment