mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 01:52:01 -08:00
Do not expect authentication when client forbid insecure auth
This commit is contained in:
parent
1154df3f97
commit
083b9c7755
@ -81,11 +81,8 @@ func handlerConnectSuccess(t *testing.T, c net.Conn) {
|
|||||||
// We expect client will abort on TLS
|
// We expect client will abort on TLS
|
||||||
func handlerAbortTLS(t *testing.T, c net.Conn) {
|
func handlerAbortTLS(t *testing.T, c net.Conn) {
|
||||||
decoder := xml.NewDecoder(c)
|
decoder := xml.NewDecoder(c)
|
||||||
|
|
||||||
checkOpenStream(t, c, decoder)
|
checkOpenStream(t, c, decoder)
|
||||||
|
|
||||||
sendStreamFeatures(t, c, decoder) // Send initial features
|
sendStreamFeatures(t, c, decoder) // Send initial features
|
||||||
readAuth(t, decoder)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkOpenStream(t *testing.T, c net.Conn, decoder *xml.Decoder) {
|
func checkOpenStream(t *testing.T, c net.Conn, decoder *xml.Decoder) {
|
||||||
|
Loading…
Reference in New Issue
Block a user