rename newly added function
This commit is contained in:
@ -90,8 +90,8 @@ type TransportAuthenticator interface {
|
|||||||
// NewListener creates a listener which accepts connections with requested
|
// NewListener creates a listener which accepts connections with requested
|
||||||
// authentication handshake.
|
// authentication handshake.
|
||||||
NewListener(lis net.Listener) net.Listener
|
NewListener(lis net.Listener) net.Listener
|
||||||
// ProtocolInfo provides the ProtocolInfo of this TransportAuthenticator.
|
// Info provides the ProtocolInfo of this TransportAuthenticator.
|
||||||
ProtocolInfo() ProtocolInfo
|
Info() ProtocolInfo
|
||||||
Credentials
|
Credentials
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ type tlsCreds struct {
|
|||||||
config tls.Config
|
config tls.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *tlsCreds) ProtocolInfo() ProtocolInfo {
|
func (c *tlsCreds) Info() ProtocolInfo {
|
||||||
return ProtocolInfo{
|
return ProtocolInfo{
|
||||||
SecurityProtocol: "tls",
|
SecurityProtocol: "tls",
|
||||||
SecurityVersion: "1.2",
|
SecurityVersion: "1.2",
|
||||||
|
Reference in New Issue
Block a user