~samwhited/xmpp

af5b4891e07eb51ec5562669935fd6285c7aa965 — Sam Whited 3 years ago 223a562
xmpp: remove unused starttls error

[ci skip]
1 files changed, 0 insertions(+), 6 deletions(-)

M starttls.go
M starttls.go => starttls.go +0 -6
@@ 8,7 8,6 @@ import (
	"context"
	"crypto/tls"
	"encoding/xml"
	"errors"
	"fmt"
	"io"



@@ 19,11 18,6 @@ import (

// BUG(ssw): STARTTLS feature does not have security layer byte precision.

// Errors used by STARTTLS.
var (
	ErrTLSUpgradeFailed = errors.New("The underlying connection cannot be upgraded to TLS")
)

// StartTLS returns a new stream feature that can be used for negotiating TLS.
// For StartTLS to work, the underlying connection must support TLS (it must
// implement net.Conn).