From a10661dd0a44abcdf594ef91224e65d7785dfabe Mon Sep 17 00:00:00 2001
From: Garrett Gutierrez <31981920+GarrettGutierrez1@users.noreply.github.com>
Date: Fri, 14 Feb 2020 10:10:00 -0800
Subject: [PATCH] credentials: deprecate ProtocolInfo.SecurityVersion (#3372)

credentials: deprecate ProtocolInfo.SecurityVersion (#3372)
---
 credentials/credentials.go | 6 +++++-
 vet.sh                     | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/credentials/credentials.go b/credentials/credentials.go
index 845ce5d2..e438fda2 100644
--- a/credentials/credentials.go
+++ b/credentials/credentials.go
@@ -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
diff --git a/vet.sh b/vet.sh
index 0e737072..73402735 100755
--- a/vet.sh
+++ b/vet.sh
@@ -151,6 +151,7 @@ grpc.WithMaxMsgSize
 grpc.WithServiceConfig
 grpc.WithTimeout
 http.CloseNotifier
+info.SecurityVersion
 naming.Resolver
 naming.Update
 naming.Watcher