Skip to content

Commit 188bbcc

Browse files
committed
add comments
1 parent 54a29d7 commit 188bbcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

security/advancedtls/advancedtls.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ func (c *advancedTLSCreds) ClientHandshake(ctx context.Context, authority string
509509
},
510510
}
511511
info.SPIFFEID = credinternal.SPIFFEIDFromState(conn.ConnectionState())
512+
// set the VerifiedChains
512513
info.State.VerifiedChains = peerVerifiedChains
513514
return credinternal.WrapSyscallConn(rawConn, conn), info, nil
514515
}
@@ -529,6 +530,7 @@ func (c *advancedTLSCreds) ServerHandshake(rawConn net.Conn) (net.Conn, credenti
529530
},
530531
}
531532
info.SPIFFEID = credinternal.SPIFFEIDFromState(conn.ConnectionState())
533+
// set the VerifiedChains
532534
info.State.VerifiedChains = peerVerifiedChains
533535
return credinternal.WrapSyscallConn(rawConn, conn), info, nil
534536
}

0 commit comments

Comments
 (0)