- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for WrapSession (0.26 sec)
-
src/crypto/tls/ticket_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tls var _ = &Config{WrapSession: (&Config{}).EncryptTicket}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 26 15:24:38 UTC 2023 - 287 bytes - Viewed (0) -
src/crypto/tls/ticket.go
// }; // } SessionState; // // Extra is ignored by crypto/tls, but is encoded by [SessionState.Bytes] // and parsed by [ParseSessionState]. // // This allows [Config.UnwrapSession]/[Config.WrapSession] and // [ClientSessionCache] implementations to store and retrieve additional // data alongside this session. // // To allow different layers in a protocol stack to share this field,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 12.6K bytes - Viewed (0) -
src/crypto/tls/common.go
// WrapSession is called on the server to produce a session ticket/identity. // // WrapSession must serialize the session state with [SessionState.Bytes]. // It may then encrypt the serialized state (for example with // [Config.DecryptTicket]) and use it as the ticket, or store the state and // return a handle for it. // // If WrapSession returns an error, the connection is terminated. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 59.1K bytes - Viewed (0) -
src/crypto/tls/handshake_server.go
if hs.sessionState != nil { // If this is re-wrapping an old key, then keep // the original time it was created. state.createdAt = hs.sessionState.createdAt } if c.config.WrapSession != nil { var err error m.ticket, err = c.config.WrapSession(c.connectionStateLocked(), state) if err != nil { return err } } else { stateBytes, err := state.Bytes() if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 27.6K bytes - Viewed (0) -
src/crypto/tls/handshake_server_tls13.go
m := new(newSessionTicketMsgTLS13) state := c.sessionState() state.secret = psk state.EarlyData = earlyData state.Extra = extra if c.config.WrapSession != nil { var err error m.label, err = c.config.WrapSession(c.connectionStateLocked(), state) if err != nil { return err } } else { stateBytes, err := state.Bytes() if err != nil { c.sendAlert(alertInternalError)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 30.5K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
called |= 1 << 5 return nil }, UnwrapSession: func(identity []byte, cs ConnectionState) (*SessionState, error) { called |= 1 << 6 return nil, nil }, WrapSession: func(cs ConnectionState, ss *SessionState) ([]byte, error) { called |= 1 << 7 return nil, nil }, EncryptedClientHelloRejectionVerify: func(ConnectionState) error { called |= 1 << 8 return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
api/go1.21.txt
pkg crypto/tls, type AlertError uint8 #44886 pkg crypto/tls, type Config struct, UnwrapSession func([]uint8, ConnectionState) (*SessionState, error) #60105 pkg crypto/tls, type Config struct, WrapSession func(ConnectionState, *SessionState) ([]uint8, error) #60105 pkg crypto/tls, type QUICConfig struct #44886 pkg crypto/tls, type QUICConfig struct, TLSConfig *Config #44886 pkg crypto/tls, type QUICConn struct #44886
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 09:39:17 UTC 2023 - 25.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Config.SessionTicketsDisabled", Field, 1}, {"Config.Time", Field, 0}, {"Config.UnwrapSession", Field, 21}, {"Config.VerifyConnection", Field, 15}, {"Config.VerifyPeerCertificate", Field, 8}, {"Config.WrapSession", Field, 21}, {"Conn", Type, 0}, {"ConnectionState", Type, 0}, {"ConnectionState.CipherSuite", Field, 0}, {"ConnectionState.DidResume", Field, 1}, {"ConnectionState.HandshakeComplete", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)