~samwhited/xmpp

a7a2a791620b918ad895af497aa0b8ec2acacb4e — Sam Whited 4 years ago 8a875cf
I can't spell

[ci skip]
3 files changed, 4 insertions(+), 4 deletions(-)

M ibr2/challenge.go
M iq.go
M sasl.go
M ibr2/challenge.go => ibr2/challenge.go +1 -1
@@ 18,7 18,7 @@ type Challenge struct {
	// Send is used by the server to send the challenge to the client.
	Send func(ctx context.Context, e *xml.Encoder) error

	// Respond is used by the client to send a reponse or reply to the challenge.
	// Respond is used by the client to send a response or reply to the challenge.
	Respond func(context.Context, *xml.Encoder) error

	// Receive is used by the client to receive and decode the server's challenge

M iq.go => iq.go +1 -1
@@ 42,7 42,7 @@ const (
	// ResultIQ is sent in response to a successful get or set IQ.
	ResultIQ

	// ErrorIQ is sent to report that an error occured during the delivery or
	// ErrorIQ is sent to report that an error occurred during the delivery or
	// processing of a get or set IQ.
	ErrorIQ
)

M sasl.go => sasl.go +2 -2
@@ 23,7 23,7 @@ import (
// SASL returns a stream feature for performing authentication using the Simple
// Authentication and Security Layer (SASL) as defined in RFC 4422. It panics if
// no mechanisms are specified. The order in which mechanisms are specified will
// be the prefered order, so stronger mechanisms should be listed first.
// be the preferred order, so stronger mechanisms should be listed first.
func SASL(mechanisms ...sasl.Mechanism) StreamFeature {
	if len(mechanisms) == 0 {
		panic("xmpp: Must specify at least 1 SASL mechanism")


@@ 74,7 74,7 @@ func SASL(mechanisms ...sasl.Mechanism) StreamFeature {
			conn := session.Conn()

			var selected sasl.Mechanism
			// Select a mechanism, prefering the client order.
			// Select a mechanism, preferring the client order.
		selectmechanism:
			for _, m := range mechanisms {
				for _, name := range data.([]string) {