<test-history test='TLS Required 2 (c2s)'>
<OUTPUT test='TLS Required 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='tls-required.com' version='1.0'/>
</OUTPUT>
<INPUT test='TLS Required 2 (c2s)'>
<stream:stream xmlns="jabber:client" version="1.0" xml:lang="en" id="20912946-2956-499e-b1b9-bc7d5ee9ee15" xmlns:stream="http://etherx.jabber.org/streams" from="tls-required.com"/>
</INPUT>
<INPUT test='TLS Required 2 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
</INPUT>
<OUTPUT test='TLS Required 2 (c2s)'>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
</OUTPUT>
<INPUT test='TLS Required 2 (c2s)'>
<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
</INPUT>
<OUTPUT test='TLS Required 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='tls-required.com' version='1.0'>
</OUTPUT>
<INPUT test='TLS Required 2 (c2s)'>
<stream:stream xmlns="jabber:client" version="1.0" xml:lang="en" id="20912946-2956-499e-b1b9-bc7d5ee9ee15" xmlns:stream="http://etherx.jabber.org/streams" from="tls-required.com"/>
</INPUT>
<INPUT test='TLS Required 2 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
</INPUT>
<OUTPUT test='TLS Required 2 (c2s)'>
<iq type="get" id="reg-tls1">
<query xmlns="jabber:iq:register"/></iq>
</OUTPUT>
<INPUT test='TLS Required 2 (c2s)'>
<iq xmlns="jabber:client" type="result" id="reg-tls1"><query xmlns="jabber:iq:register"><instructions>Choose a user name and password for use with this service.Please provide also your e-mail address.</instructions><username/><password/><email/></query></iq>
</INPUT>
<OUTPUT test='TLS Required 2 (c2s)'>
<iq type="set" id="reg-tls2">
<query xmlns="jabber:iq:register">
<username>user1</username><password>pass1</password><email>user1@example.com</email></query></iq>
</OUTPUT>
<INPUT test='TLS Required 2 (c2s)'>
<iq xmlns="jabber:client" type="result" id="reg-tls2"/>
</INPUT>

</test-history>