- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for WrapSession (0.16 sec)
-
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)