<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" xml:lang="en" id="eed98562-6d2e-43c7-b058-86741cfbfad0" version="1.0" from="tls-required.com" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='TLS Required 2 (c2s)'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/><register xmlns="http://jabber.org/features/iq-register"/><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" xml:lang="en" id="eed98562-6d2e-43c7-b058-86741cfbfad0" version="1.0" from="tls-required.com" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='TLS Required 2 (c2s)'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/></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>