lib/ronin/network/extensions/ssl/net.rb in ronin-support-0.1.0 vs lib/ronin/network/extensions/ssl/net.rb in ronin-support-0.2.0.rc1

- old
+ new

@@ -63,10 +63,12 @@ # the new SSL Socket. # # @example # socket = Net.ssl_connect('twitter.com',443) # + # @api public + # def Net.ssl_connect(host,port,options={}) local_host = options[:local_host] local_port = options[:local_port] socket = Net.tcp_connect(host,port,local_host,local_port) @@ -131,9 +133,11 @@ # Net.ssl_session('twitter.com',443) do |sock| # sock.write("GET /\n\n") # # sock.each_line { |line| puts line } # end + # + # @api public # def Net.ssl_session(host,port) ssl_socket = Net.ssl_connect(host,port) yield ssl_socket if block_given?