Sha256: 3d0449ee99185ac94556f68d1154c798c27435cfcbe2b7d8b9e768932f4b13ec
Contents?: true
Size: 548 Bytes
Versions: 24
Compression:
Stored size: 548 Bytes
Contents
module Blather # :nodoc: class Stream # :nodoc: class TLS < Features # :nodoc: class TLSFailure < BlatherError register :tls_failure end TLS_NS = 'urn:ietf:params:xml:ns:xmpp-tls'.freeze register TLS_NS def receive_data(stanza) case stanza.element_name when 'starttls' @stream.send "<starttls xmlns='#{TLS_NS}'/>" when 'proceed' @stream.start_tls @stream.start # succeed! else fail! TLSFailure.new end end end #TLS end #Stream end #Blather
Version data entries
24 entries across 24 versions & 3 rubygems