Skip to content

Commit

Permalink
credentials: deprecate ProtocolInfo.SecurityVersion (#3372)
Browse files Browse the repository at this point in the history
credentials: deprecate ProtocolInfo.SecurityVersion (#3372)
  • Loading branch information
GarrettGutierrez1 authored Feb 14, 2020
1 parent 6b9bf42 commit a10661d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion credentials/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ type ProtocolInfo struct {
ProtocolVersion string
// SecurityProtocol is the security protocol in use.
SecurityProtocol string
// SecurityVersion is the security protocol version.
// SecurityVersion is the security protocol version. It is a static version string from the
// credentials, not a value that reflects per-connection protocol negotiation. To retrieve
// details about the credentials used for a connection, use the Peer's AuthInfo field instead.
//
// Deprecated: please use Peer.AuthInfo.
SecurityVersion string
// ServerName is the user-configured server name.
ServerName string
Expand Down
1 change: 1 addition & 0 deletions vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ grpc.WithMaxMsgSize
grpc.WithServiceConfig
grpc.WithTimeout
http.CloseNotifier
info.SecurityVersion
naming.Resolver
naming.Update
naming.Watcher
Expand Down

0 comments on commit a10661d

Please sign in to comment.