Add tool to check XMPP certificate on starttls

Minor refactoring
This commit is contained in:
Mickael Remond
2019-05-16 17:46:36 +02:00
committed by Mickaël Rémond
parent c642ad79fc
commit f45829916c
8 changed files with 222 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ import (
"io"
)
func authSASL(socket io.ReadWriter, decoder *xml.Decoder, f streamFeatures, user string, password string) (err error) {
func authSASL(socket io.ReadWriter, decoder *xml.Decoder, f StreamFeatures, user string, password string) (err error) {
// TODO: Implement other type of SASL Authentication
havePlain := false
for _, m := range f.Mechanisms.Mechanism {