mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-09 19:41:37 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
22 lines
578 B
Go
22 lines
578 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package logical
|
|
|
|
import (
|
|
"crypto/tls"
|
|
)
|
|
|
|
// Connection represents the connection information for a request. This
|
|
// is present on the Request structure for credential backends.
|
|
type Connection struct {
|
|
// RemoteAddr is the network address that sent the request.
|
|
RemoteAddr string `json:"remote_addr"`
|
|
|
|
// RemotePort is the network port that sent the request.
|
|
RemotePort int `json:"remote_port"`
|
|
|
|
// ConnState is the TLS connection state if applicable.
|
|
ConnState *tls.ConnectionState `sentinel:""`
|
|
}
|